Arma Reforger Explorer
1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Toggle main menu visibility
Loading...
Searching...
No Matches
SCR_ReconnectSynchronizationComponent.c
Go to the documentation of this file.
1
class
SCR_ReconnectSynchronizationComponentClass
:
ScriptComponentClass
2
{
3
}
4
7
class
SCR_ReconnectSynchronizationComponent :
ScriptComponent
8
{
9
protected
const
string
DIALOG_RECON_RESTORE
=
"reconnect_restored"
;
10
protected
const
string
DIALOG_RECON_DISCARD
=
"reconnect_discarded"
;
11
12
protected
ref
ScriptInvokerVoid
m_OnPlayerReconnect
;
13
14
//------------------------------------------------------------------------------------------------
16
ScriptInvokerVoid
GetOnPlayerReconnect
()
17
{
18
if
(!
m_OnPlayerReconnect
)
19
m_OnPlayerReconnect
=
new
ScriptInvokerVoid
();
20
21
return
m_OnPlayerReconnect
;
22
}
23
24
//------------------------------------------------------------------------------------------------
26
void
CreateReconnectDialog
()
27
{
28
Rpc
(
RPC_DoSendReconnectState
);
29
}
30
31
//------------------------------------------------------------------------------------------------
33
[
RplRpc
(
RplChannel
.Reliable,
RplRcver
.Owner)]
34
protected
void
RPC_DoSendReconnectState
()
35
{
36
SCR_CommonDialogs
.CreateDialog(
DIALOG_RECON_RESTORE
);
37
38
SCR_RespawnSystemComponent respawnSystem = SCR_RespawnSystemComponent.GetInstance();
39
if
(respawnSystem)
40
respawnSystem.DestroyLoadingPlaceholder();
41
42
if
(
m_OnPlayerReconnect
)
43
m_OnPlayerReconnect
.Invoke();
44
}
45
}
m_OnPlayerReconnect
ref ScriptInvokerVoid m_OnPlayerReconnect
Definition
SCR_ReconnectSynchronizationComponent.c:12
DIALOG_RECON_DISCARD
const string DIALOG_RECON_DISCARD
Definition
SCR_ReconnectSynchronizationComponent.c:10
DIALOG_RECON_RESTORE
SCR_ReconnectSynchronizationComponentClass DIALOG_RECON_RESTORE
CreateReconnectDialog
void CreateReconnectDialog()
Call RPC with reconnect state to controller owner.
Definition
SCR_ReconnectSynchronizationComponent.c:26
GetOnPlayerReconnect
ScriptInvokerVoid GetOnPlayerReconnect()
Triggers for this SCR_PlayerController's client only.
Definition
SCR_ReconnectSynchronizationComponent.c:16
RPC_DoSendReconnectState
void RPC_DoSendReconnectState()
Do RPC from server with reconnect state.
Definition
SCR_ReconnectSynchronizationComponent.c:34
ScriptInvokerVoid
ScriptInvokerBase< ScriptInvokerVoidMethod > ScriptInvokerVoid
Definition
SCR_ScriptInvokerHelper.c:9
GenericComponent::Rpc
void Rpc(func method, void p0=NULL, void p1=NULL, void p2=NULL, void p3=NULL, void p4=NULL, void p5=NULL, void p6=NULL, void p7=NULL)
SCR_CommonDialogs
Definition
CommonDialogs.c:6
SCR_ReconnectSynchronizationComponentClass
Definition
SCR_ReconnectSynchronizationComponent.c:2
ScriptComponentClass
Definition
ScriptComponentClass.c:8
ScriptComponent
Definition
ScriptComponent.c:24
RplRpc
void RplRpc(RplChannel channel, RplRcver rcver, RplCondition condition=RplCondition.None, string customConditionName="")
Definition
EnNetwork.c:95
RplRcver
RplRcver
Definition
RplRcver.c:59
RplChannel
RplChannel
Communication channel. Reliable is guaranteed to be delivered. Unreliable not.
Definition
RplChannel.c:14
scripts
Game
Components
SCR_ReconnectSynchronizationComponent.c
Generated by
1.17.0