wavelength 1.0.0
Loading...
Searching...
No Matches
netswitchlobbyscreen.h
Go to the documentation of this file.
1#pragma once
2
3#include "met/freqscreen.h"
5#include "script/dataarray.h"
7
16public:
23 ~NetSwitchLobbyScreen() override = default;
24
33
44 static UIScreen *New(DataArray *pData) {
45 return new NetSwitchLobbyScreen(pData);
46 }
47
56 bool DispatchPriv(Message *pMsg) override;
57
65 const char *Title() override {
66 return "";
67 }
68
78
89
91 void SetChatroomId(int nChatroomId) {
92 mChatroomId = nChatroomId;
93 }
94
95private:
96 int mChatroomId;
97};
Reference-counted array of script data nodes.
Definition dataarray.h:20
FreqScreen(DataArray *pData)
Construct a screen from its script description.
Message that reports the result of joining a chat room of the online lobby.
Definition joinchatroomresultmsg.h:21
Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:40
bool DispatchPriv(Message *pMsg) override
Route the result of the join and the end of the entry, and pass on every other message.
const char * Title() override
Report the empty title of the screen.
Definition netswitchlobbyscreen.h:65
NetSwitchLobbyScreen(DataArray *pData)
Construct the screen from its script description, with no room chosen.
~NetSwitchLobbyScreen() override=default
Destroy the object.
bool HandleJoinResult(JoinChatroomResultMsg *pMsg)
Clear the lobby chat and record the room on success, then go to the success or the error screen.
static UIScreen * New(DataArray *pData)
Create a screen from its script description.
Definition netswitchlobbyscreen.h:44
bool HandleTransitionComplete(UITransitionCompleteMsg *pMsg)
Clear the focus of the lobby panel and join mChatroomId once the screen has entered.
void SetChatroomId(int nChatroomId)
Definition netswitchlobbyscreen.h:91
UIScreen(DataArray *pData)
Construct a screen from its script description.
Message a screen sends itself once its panels have finished their entry animations.
Definition uitransitioncompletemsg.h:23