C4 Engine
C4 Engine API Documentation

MessageMgr::EndGame

Defined in:  C4Messages.h
Tells the Message Manager that a game has ended so it can clean up.
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

MessageMgr::GetMultiplayerFlag

MessageMgr::GetServerFlag