Implemented CreateCharacter() and LoadCharacter() (read more)

There are issues with the indexes. That is, the accounts and the
characters need each other's indexes upon creation. I'll need to rectify
this now.
This commit is contained in:
Kayne Ruse
2014-05-09 21:33:22 +10:00
parent 688d064085
commit b7877962f1
3 changed files with 170 additions and 0 deletions
+6
View File
@@ -49,6 +49,7 @@
//STL
#include <map>
#include <string>
//The main application class
class ServerApplication {
@@ -84,6 +85,11 @@ private:
void DeleteUserAccount(int uid);
//TODO: character management
int CreateCharacter(int owner, std::string handle, std::string avatar);
int LoadCharacter(int owner, std::string handle, std::string avatar);
void SaveCharacter();
void UnloadCharacter();
void DeleteCharacter();
//TODO: combat systems