Account level changes

tied account levels to accounts instead of players. implemented account banning logic in db
This commit is contained in:
Kamil
2020-12-06 00:03:52 +01:00
committed by Gent S
parent 4dc48198ab
commit a12faac0e2
3 changed files with 42 additions and 12 deletions

View File

@@ -11,6 +11,7 @@ namespace Database {
int AccountID;
std::string Password;
int Selected;
time_t BannedUntil;
};
struct Buddyship {
int PlayerAId;
@@ -52,6 +53,7 @@ namespace Database {
void findAccount(Account* account, std::string login);
/// returns ID, 0 if something failed
int addAccount(std::string login, std::string password);
void banAccount(int accountId, int days);
void updateSelected(int accountId, int playerId);
bool validateCharacter(int characterID, int userID);