Implemented saving of user accounts (read more)
To modify an existing user account, change the in memory copy and then call the function SaveUserAccount(uid), where uid is the index of the modified account. If the save function is not called immediately, then the behaviour of the server is undefined.
This commit is contained in:
@@ -79,9 +79,9 @@ private:
|
||||
//TODO: manage the database
|
||||
int CreateUserAccount(std::string username, int clientIndex);
|
||||
int LoadUserAccount(std::string username, int clientIndex);
|
||||
void SaveUserAccount(std::string username);
|
||||
void UnloadUserAccount(std::string username);
|
||||
void DeleteUserAccount(std::string username);
|
||||
int SaveUserAccount(int uid);
|
||||
void UnloadUserAccount(int uid);
|
||||
void DeleteUserAccount(int uid);
|
||||
|
||||
//TODO: combat systems
|
||||
|
||||
|
||||
Reference in New Issue
Block a user