[Repositories] Cleanup and Convert Character Creation to Repositories (#4053)

* [Repositories] Cleanup and Convert Character Creation to Repositories

# Notes
- Converts `Database::GetCharacterID()`, `Database::SaveCharacterCreate()`, and `Client::OPCharCreate` to repositories.
- Cleanup a spot we were doing a queries in a loop.

* Cleanup

* Update database.cpp

* Update database.cpp
This commit is contained in:
Alex King
2024-02-19 21:45:18 -05:00
committed by GitHub
parent d182fc3613
commit c13ec5a06d
10 changed files with 303 additions and 491 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ void command_summon(Client *c, const Seperator *sep)
if (arguments == 1) {
std::string character_name = sep->arg[1];
auto character_id = database.GetCharacterID(character_name.c_str());
auto character_id = database.GetCharacterID(character_name);
if (!character_id) {
c->Message(
Chat::White,