CreateServerOptionsSection class
Create server options menu section.
Lets the player configure the character and game mode for a hosted multiplayer server before starting it.
Base classes
- class MenuSection
- Base class of a menu section.
Public static variables
- static StringView FromPlaylist constexpr
- Special value for LevelName to create a server from configured playlist.
Constructors, destructors, conversion operators
- CreateServerOptionsSection(StringView levelName, StringView previousEpisodeName, bool privateServer)
- Creates a new instance.
Public functions
- void OnShow(IMenuContainer* root) override
- Called when the section is shown.
- void OnUpdate(float timeMult) override
- Called when the section should be updated.
- void OnDraw(Canvas* canvas) override
- Called when the section should be drawn — the bottom background layer.
- void OnDrawOverlay(Canvas* canvas) override
- Called when the section should be drawn — the top overlay layer.
-
void OnTouchEvent(const nCine::
TouchEvent& event, Vector2i viewSize) override - Called when a touch event is triggered.
-
auto GetGameMode() const -> Jazz2::
Multiplayer:: MpGameMode - Returns the selected multiplayer game mode.
-
void SetGameMode(Jazz2::
Multiplayer:: MpGameMode value) - Sets the selected multiplayer game mode.
Function documentation
Jazz2:: UI:: Menu:: CreateServerOptionsSection:: CreateServerOptionsSection(StringView levelName,
StringView previousEpisodeName,
bool privateServer)
Creates a new instance.
| Parameters | |
|---|---|
| levelName | Level to host, or FromPlaylist to use the configured playlist |
| previousEpisodeName | Name of the episode the level belongs to |
| privateServer | Whether the server should be private (not publicly listed) |