[Strings] Refactor Strings Usage (#2305)

* Initial commit checkpoint

* More functions converted

* Commify

* More functions

* Fin

* Sort declarations

* Split functions between files

* Bots

* Update strings.h

* Split

* Revert find replaces

* Repository template

* Money

* Misc function

* Update CMakeLists.txt

* Saylink

* Update strings.cpp

* Swap Strings::Saylink for Saylink::Create since saylink is coupled to zone database

* API casings
This commit is contained in:
Chris Miles
2022-07-14 02:10:52 -05:00
committed by GitHub
parent 44c85a0dd7
commit dfd8f84cac
573 changed files with 5197 additions and 5137 deletions
+4 -4
View File
@@ -635,7 +635,7 @@ void WorldServer::HandleMessage(uint16 opcode, const EQ::Net::Packet &p)
} else if (client->GetAnon() == 1 && client->Admin() > szp->adminrank) {
break;
} else {
std::string name = str_tolower(szp->name);
std::string name = Strings::ToLower(szp->name);
name[0] = toupper(name[0]);
SendEmoteMessage(
@@ -823,7 +823,7 @@ void WorldServer::HandleMessage(uint16 opcode, const EQ::Net::Packet &p)
}
ServerUptime_Struct* sus = (ServerUptime_Struct*)pack->pBuffer;
uint32 ms = Timer::GetCurrentTime();
std::string time_string = ConvertMillisecondsToTime(ms);
std::string time_string = Strings::MillisecondsToTime(ms);
SendEmoteMessage(
sus->adminname,
0,
@@ -3138,12 +3138,12 @@ void WorldServer::HandleMessage(uint16 opcode, const EQ::Net::Packet &p)
if (request_zone_short_name == local_zone_short_name || can_reload_global_script) {
zone->SetQuestHotReloadQueued(true);
} else if (request_zone_short_name == "all") {
std::string reload_quest_saylink = EQ::SayLinkEngine::GenerateQuestSaylink(
std::string reload_quest_saylink = Saylink::Create(
"#reload quest",
false,
"Locally"
);
std::string reload_world_saylink = EQ::SayLinkEngine::GenerateQuestSaylink(
std::string reload_world_saylink = Saylink::Create(
"#reload world",
false,
"Globally"