Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
ServerBrowserMenuCallbacks.c
Go to the documentation of this file.
1/*
2File for various server browser callbacks to keep ServerBrowserMenuUI clean.
3*/
4
5//------------------------------------------------------------------------------------------------
12
13//------------------------------------------------------------------------------------------------
16{
17 protected Room m_Room;
18
19 //------------------------------------------------------------------------------------------------
20 void SetRoom(Room room)
21 {
22 m_Room = room;
23 }
24
25 //------------------------------------------------------------------------------------------------
27 {
28 return m_Room;
29 }
30}
31
32//------------------------------------------------------------------------------------------------
34class RoomJoinData extends JsonApiStruct
35{
36 string m_Password = "";
37
38 // Ban related data
39 string scope = "";
40 string type = "";
41 string reason = "";
42 string issuer = "";
43 int expiresAt = 0;
44 int createdAt = 0;
45
46 //------------------------------------------------------------------------------------------------
47 override void OnPack()
48 {
49 UnregV("scope");
50 UnregV("type");
51 UnregV("reason");
52 UnregV("issuer");
53 UnregV("expiresAt");
54 UnregV("createdAt");
55
56 if (!m_Password.IsEmpty())
57 StoreString("password", m_Password);
58 }
59
60 override void OnExpand()
61 {
62 RegV("scope");
63 RegV("type");
64 RegV("reason");
65 RegV("issuer");
66 RegV("expiresAt");
67 RegV("createdAt");
68 }
69
70 //------------------------------------------------------------------------------------------------
71 void SetPassword(string password) { m_Password = password; }
72};
override void OnPack()
EDamageType type
override void OnExpand()
EServerBrowserRequestResult
void SetPassword(string password)
SCR_RoomCallback m_Password
Parameters for joining server.
base classes for filtering in server browser
Definition Room.c:13
Scripted room callback specific for single room.
@ ERROR
Same as DELETE, but global error count for OnAfterLoad is affected.
Definition LogLevel.c:20
@ TIMEOUT
Definition RplError.c:17