mirror of
https://github.com/Relintai/entity_spell_system.git
synced 2025-02-22 17:18:12 +01:00
38 lines
1.1 KiB
C++
38 lines
1.1 KiB
C++
#pragma once
|
|
#include <System/System.h>
|
|
#include "MonoBehaviour.h"
|
|
#include "GameObject.h"
|
|
#include "AnimSpriteSet.h"
|
|
#include "SpriteRenderer.h"
|
|
#include "WaitForSeconds.h"
|
|
#include <System/Collections/IEnumeratorCXX.h>
|
|
|
|
using namespace UnityEngine;
|
|
using namespace System::Runtime::CompilerServices;
|
|
using namespace System::Collections;
|
|
using namespace System;
|
|
class SpriteAnim : public virtual MonoBehaviour, public virtual Object
|
|
{
|
|
public:
|
|
GameObject* AnimatedGameObject;
|
|
public:
|
|
Array<AnimSpriteSet>* AnimationSets;
|
|
private:
|
|
int Cur_SpriteID;
|
|
public:
|
|
float SecsPerFrame;
|
|
private:
|
|
SpriteRenderer* spriteRenderer;
|
|
private:
|
|
WaitForSeconds* waitForSeconds;
|
|
private:
|
|
void Awake();
|
|
public:
|
|
void PlayAnimation(int ID, float secPerFrame);
|
|
//Attribute: IteratorStateMachine*(/*ERROR: Cannot translate: System.NotImplementedException: typeOfExpression: --> TODO: --> http://www.boost.org/doc/libs/1_55_0/doc/html/typeof/tuto.html. Node: ICSharpCode.NRefactory.CSharp.TypeOfExpression*/)
|
|
private:
|
|
IEnumerator* AnimateSprite(int ID);
|
|
public:
|
|
SpriteAnim();
|
|
};
|