Implemented bare-bones character system API
I need to devise a way to update the clients about changes to their characters directly from the lua scripts. This isn't too important per se, but the pattern will be important for the monster and trigger systems.
This commit is contained in:
@@ -44,13 +44,18 @@ public:
|
||||
|
||||
//accessors and mutators
|
||||
CharacterData* Get(int uid);
|
||||
CharacterData* Get(std::string handle);
|
||||
int GetLoadedCount();
|
||||
int GetTotalCount();
|
||||
std::map<int, CharacterData>* GetContainer();
|
||||
|
||||
//API interface
|
||||
sqlite3* SetDatabase(sqlite3* db);
|
||||
sqlite3* GetDatabase();
|
||||
|
||||
//hooks
|
||||
//TODO: character hooks
|
||||
|
||||
private:
|
||||
friend Singleton<CharacterManager>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user