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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user