GameModeFactory.h file
Namespaces
- namespace Jazz2
- Root namespace of Jazz² Resurrection.
- namespace Jazz2::Multiplayer
- Multiplayer-related classes, compiled only if
WITH_MULTIPLAYER. - namespace Jazz2::Multiplayer::GameModes
Functions
-
auto CreateGameMode(MpGameMode mode) -> std::
unique_ptr<IGameMode> - Creates the IGameMode implementation for the specified game mode.
Function documentation
std:: unique_ptr<IGameMode> CreateGameMode(MpGameMode mode)
Creates the IGameMode implementation for the specified game mode.
Returns the rules object a level handler should host for mode. Every game mode has an implementation; modes still in the staged migration own only their HUD and report IGameMode::false. Returns nullptr only for MpGameMode::