MessageMgr::EndGame
Defined in:
Tells the Message Manager that a game has ended so it can clean up.
C4Messages.h
Prototype
void EndGame(void);
Description
Calling the EndGame
function tells the Message Manager that the current game has ended so it can clean up. This function should be called when a game ends to close network connections and release Message Manager resources. All Player
objects are destroyed when EndGame
is called.After calling
EndGame
, subsequent calls to MessageMgr::GetMultiplayerFlag
return false
, and subsequent calls to MessageMgr::GetServerFlag
return true
.
See Also
MessageMgr::BeginSinglePlayerGame
MessageMgr::BeginMultiplayerGame