moved name checks to name save and name change packets

added a TODO

Formatting + sizeof in login server
This commit is contained in:
Gent S
2020-11-25 18:39:41 -05:00
parent d85d9d4b12
commit ea5b7104be
3 changed files with 78 additions and 59 deletions

View File

@@ -120,7 +120,7 @@ namespace Database {
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);
bool isNameFree(std::string firstName, std::string lastName);
// called after chosing name, returns ID
int createCharacter(sP_CL2LS_REQ_SAVE_CHAR_NAME* save, int AccountID);
// called after finishing creation