added a sanity check for entering invalid characters

This commit is contained in:
Kamil
2020-11-17 03:21:41 +01:00
committed by Gent S
parent 4760d91ccd
commit 5c6d7d6055
3 changed files with 34 additions and 9 deletions

View File

@@ -119,6 +119,7 @@ namespace Database {
int addAccount(std::string login, std::string password);
void updateSelected(int accountId, int playerId);
std::unique_ptr<Account> findAccount(std::string login);
bool validateCharacter(int characterID, int userID);
bool isNameFree(sP_CL2LS_REQ_CHECK_CHAR_NAME* nameCheck);
// called after chosing name, returns ID
int createCharacter(sP_CL2LS_REQ_SAVE_CHAR_NAME* save, int AccountID);