mirror of
https://github.com/Relintai/entity_spell_system.git
synced 2025-02-24 17:24:57 +01:00
29 lines
731 B
C
29 lines
731 B
C
|
#ifndef EFFECT_LOADER_H
|
||
|
#define EFFECT_LOADER_H
|
||
|
|
||
|
#include "EffectLoaderHelper.h"
|
||
|
|
||
|
class EffectLoader
|
||
|
{
|
||
|
private:
|
||
|
static EffectLoader* self;
|
||
|
Dictionary_T<int, EffectLoaderHelper>* assetDict;
|
||
|
void OnDestroy();
|
||
|
|
||
|
|
||
|
public:
|
||
|
List_T<EffectLoaderHelper>* assets;
|
||
|
static EffectLoader* getInstance();
|
||
|
EffectLoaderHelper* GetData(int id);
|
||
|
List_T<EffectLoaderHelper>* getAllAssets();
|
||
|
virtual void Start();
|
||
|
void AddData(int id, String* bundle, String* file);
|
||
|
bool Contains(String* iconBundle, String* iconFile);
|
||
|
int Find(String* iconBundle, String* iconFile);
|
||
|
void RefreshDict();
|
||
|
void LoadIcons();
|
||
|
EffectLoader();
|
||
|
};
|
||
|
|
||
|
#endif
|