mirror of
https://github.com/Relintai/entity_spell_system.git
synced 2025-02-22 17:18:12 +01:00
28 lines
787 B
C
28 lines
787 B
C
|
#ifndef DUNGEON_DATA_LOADER_H
|
||
|
#define DUNGEON_DATA_LOADER_H
|
||
|
|
||
|
#include "DungeonDataLoaderHelper.h"
|
||
|
|
||
|
class DungeonDataLoader
|
||
|
{
|
||
|
private:
|
||
|
static DungeonDataLoader* self;
|
||
|
Dictionary_T<int, DungeonDataLoaderHelper>* assetDict;
|
||
|
void OnDestroy();
|
||
|
|
||
|
public:
|
||
|
List_T<DungeonDataLoaderHelper>* assets;
|
||
|
static DungeonDataLoader* getInstance();
|
||
|
DungeonDataLoaderHelper* GetData(int id);
|
||
|
List_T<DungeonDataLoaderHelper>* 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();
|
||
|
DungeonDataLoader();
|
||
|
};
|
||
|
|
||
|
#endif
|