mirror of
https://github.com/Relintai/entity_spell_system.git
synced 2025-02-24 17:24:57 +01:00
31 lines
731 B
C
31 lines
731 B
C
|
#ifndef ANIMATION_DATA_LOADER_H
|
||
|
#define ANIMATION_DATA_LOADER_H
|
||
|
|
||
|
#include "PAnimationData.h"
|
||
|
#include "AnimationData.h"
|
||
|
|
||
|
class AnimationDataLoader
|
||
|
{
|
||
|
private:
|
||
|
String* folder;
|
||
|
String* loadFile;
|
||
|
List_T<PAnimationData>* data;
|
||
|
static AnimationDataLoader* self;
|
||
|
void Start();
|
||
|
void SaveNow();
|
||
|
void RefreshList();
|
||
|
void OnAnimationDataLoaded(BaseAssetBundleHelper* h);
|
||
|
|
||
|
public:
|
||
|
bool load;
|
||
|
bool loadEditor;
|
||
|
static AnimationDataLoader* getInstance();
|
||
|
void Load();
|
||
|
void LoadEditor();
|
||
|
GameObject* getAnimationWithName(String* name);
|
||
|
GameObject* getAnimationWithId(int id);
|
||
|
AnimationDataLoader();
|
||
|
};
|
||
|
|
||
|
#endif
|