C4 Engine Terathon Software C4 Engine API Documentation

• Message Manager

API Links
Developer Links

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::Multiplayer return false, and subsequent calls to MessageMgr::Server return true.
See Also

MessageMgr::BeginSinglePlayerGame

MessageMgr::BeginMultiplayerGame

MessageMgr::Multiplayer

MessageMgr::Server