1
0

Api Documentation

Added API documentation for GetShutdownMessage.
Style fix in Root.cpp
This commit is contained in:
sweetgiorni 2017-01-03 12:18:53 -08:00
parent 25e4f15488
commit 78b6d54bf8
2 changed files with 11 additions and 1 deletions

View File

@ -13002,6 +13002,16 @@ end
},
Notes = "Returns the server description set in the settings.ini.",
},
GetShutdownMessage =
{
Returns =
{
{
Type = "string",
},
},
Notes = "Returns the shutdown message set in the settings.ini.",
},
GetMaxPlayers =
{
Returns =

View File

@ -343,7 +343,7 @@ void cRoot::StopServer()
}
public:
cPlayerCallback(AString a_ShutdownMessage) : m_ShutdownMessage(a_ShutdownMessage) {}
}PlayerCallback((m_Server->GetShutdownMessage()));
} PlayerCallback((m_Server->GetShutdownMessage()));
cRoot::Get()->ForEachPlayer(PlayerCallback);
// What's a better way to do this?