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:
Kayne Ruse
2015-02-21 21:46:22 +11:00
parent 6a999a8a72
commit ddedc06e47
4 changed files with 85 additions and 11 deletions
+5
View File
@@ -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>;