MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / ChatShowServerGreeting

Function ChatShowServerGreeting

src/openrct2/network/NetworkBase.cpp:3588–3598  ·  view source on GitHub ↗

Display server greeting if one exists

Source from the content-addressed store, hash-verified

3586
3587 // Display server greeting if one exists
3588 void ChatShowServerGreeting()
3589 {
3590 const auto& greeting = GetServerGreeting();
3591 if (!greeting.empty())
3592 {
3593 thread_local std::string greeting_formatted;
3594 greeting_formatted.assign("{OUTLINE}{GREEN}");
3595 greeting_formatted += greeting;
3596 ChatAddHistory(greeting_formatted);
3597 }
3598 }
3599
3600 GameActions::Result SetPlayerGroup(PlayerId_t actionPlayerId, PlayerId_t playerId, uint8_t groupId, bool isExecuting)
3601 {

Callers 2

BeginServerMethod · 0.85

Calls 3

GetServerGreetingFunction · 0.85
ChatAddHistoryFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected