Arma Reforger Explorer
1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Toggle main menu visibility
Loading...
Searching...
No Matches
ServerBrowserMenuCallbacks.c
Go to the documentation of this file.
1
/*
2
File for various server browser callbacks to keep ServerBrowserMenuUI clean.
3
*/
4
5
//------------------------------------------------------------------------------------------------
6
enum
EServerBrowserRequestResult
7
{
8
SUCCESS
= 0,
9
ERROR
= 1,
10
TIMEOUT
= 2,
11
};
12
13
//------------------------------------------------------------------------------------------------
15
class
SCR_RoomCallback
:
BackendCallback
16
{
17
protected
Room
m_Room
;
18
19
//------------------------------------------------------------------------------------------------
20
void
SetRoom
(
Room
room)
21
{
22
m_Room
= room;
23
}
24
25
//------------------------------------------------------------------------------------------------
26
Room
GetRoom
()
27
{
28
return
m_Room
;
29
}
30
}
31
32
//------------------------------------------------------------------------------------------------
34
class
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
};
SUCCESS
@ SUCCESS
Definition
SCR_AICombatMoveState.c:5
OnPack
override void OnPack()
Definition
SCR_ContentBrowser_AddonsSubMenu.c:1677
type
EDamageType type
Definition
SCR_DestructibleTreeV2.c:32
issuer
string issuer
Definition
ServerBrowserMenuCallbacks.c:42
scope
string scope
Definition
ServerBrowserMenuCallbacks.c:39
reason
string reason
Definition
ServerBrowserMenuCallbacks.c:41
createdAt
int createdAt
Definition
ServerBrowserMenuCallbacks.c:44
OnExpand
override void OnExpand()
Definition
ServerBrowserMenuCallbacks.c:60
EServerBrowserRequestResult
EServerBrowserRequestResult
Definition
ServerBrowserMenuCallbacks.c:7
SetPassword
void SetPassword(string password)
Definition
ServerBrowserMenuCallbacks.c:71
expiresAt
int expiresAt
Definition
ServerBrowserMenuCallbacks.c:43
m_Password
SCR_RoomCallback m_Password
Parameters for joining server.
BackendCallback
Definition
Backend_Storage.c:5
JsonApiStruct
base classes for filtering in server browser
Definition
SCR_FeedbackDialogUI.c:3
Room
Definition
Room.c:13
SCR_RoomCallback
Scripted room callback specific for single room.
Definition
ServerBrowserMenuCallbacks.c:16
SCR_RoomCallback::m_Room
Room m_Room
Definition
ServerBrowserMenuCallbacks.c:17
SCR_RoomCallback::SetRoom
void SetRoom(Room room)
Definition
ServerBrowserMenuCallbacks.c:20
SCR_RoomCallback::GetRoom
Room GetRoom()
Definition
ServerBrowserMenuCallbacks.c:26
ERROR
@ ERROR
Same as DELETE, but global error count for OnAfterLoad is affected.
Definition
LogLevel.c:20
TIMEOUT
@ TIMEOUT
Definition
RplError.c:17
scripts
Game
UI
Menu
ServerBrowser
ServerBrowserMenuCallbacks.c
Generated by
1.17.0