MpInGameLobby class
In-game lobby screen for multiplayer.
Overlay shown while in a multiplayer session that lets the player pick a character from the server's allowed player types before (re)joining the game. It handles its own input and is shown or hidden on demand.
Base classes
- class Jazz2::UI::Canvas
- Canvas.
Constructors, destructors, conversion operators
-
MpInGameLobby(Jazz2::
Multiplayer:: MpLevelHandler* levelHandler) - Creates a new instance.
- ~MpInGameLobby()
Public functions
- void OnUpdate(float timeMult) override
- Called every frame to update the node state.
- auto OnDraw(RenderQueue& renderQueue) -> bool override
- Called when the node needs to be drawn, returning
trueif a command was added. -
void OnTouchEvent(const nCine::
TouchEvent& event) - Called when a touch event is triggered.
- auto IsVisible() const -> bool
- Returns
trueif the lobby screen is visible. - void Show()
- Shows the lobby screen.
- void Hide()
- Hides the lobby screen.
-
void SetAllowedPlayerTypes(std::
uint8_t playerTypes) - Sets allowed player types as bitmask of PlayerType.