Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
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 ScriptInvokerInt m_OnPlayerReconnect = new ScriptInvokerInt(); // param is SCR_EReconnectState
13 
14  //------------------------------------------------------------------------------------------------
18  {
19  return m_OnPlayerReconnect;
20  }
21 
22  //------------------------------------------------------------------------------------------------
25  void CreateReconnectDialog(SCR_EReconnectState reconState)
26  {
27  Rpc(RPC_DoSendReconnectState, reconState);
28  }
29 
30  //------------------------------------------------------------------------------------------------
33  [RplRpc(RplChannel.Reliable, RplRcver.Owner)]
34  protected void RPC_DoSendReconnectState(int state)
35  {
36  m_OnPlayerReconnect.Invoke(state);
37 
38  if (state == SCR_EReconnectState.ENTITY_AVAILABLE)
40  else if (state == SCR_EReconnectState.ENTITY_DISCARDED)
42  }
43 }
ScriptComponent
SCR_SiteSlotEntityClass ScriptComponent
ScriptInvokerInt
ScriptInvokerBase< ScriptInvokerIntMethod > ScriptInvokerInt
Definition: SCR_ScriptInvokerHelper.c:24
SCR_CommonDialogs
Definition: CommonDialogs.c:5
RplRpc
SCR_AchievementsHandlerClass ScriptComponentClass RplRpc(RplChannel.Reliable, RplRcver.Owner)] void UnlockOnClient(AchievementId achievement)
Definition: SCR_AchievementsHandler.c:11
RPC_DoSendReconnectState
protected void RPC_DoSendReconnectState(int state)
Definition: SCR_ReconnectSynchronizationComponent.c:34
CreateReconnectDialog
void CreateReconnectDialog(SCR_EReconnectState reconState)
Definition: SCR_ReconnectSynchronizationComponent.c:25
SCR_ReconnectSynchronizationComponentClass
Definition: SCR_ReconnectSynchronizationComponent.c:1
DIALOG_RECON_DISCARD
const protected string DIALOG_RECON_DISCARD
Definition: SCR_ReconnectSynchronizationComponent.c:10
GetOnPlayerReconnect
ScriptInvokerInt GetOnPlayerReconnect()
Definition: SCR_ReconnectSynchronizationComponent.c:17
m_OnPlayerReconnect
protected ref ScriptInvokerInt m_OnPlayerReconnect
Definition: SCR_ReconnectSynchronizationComponent.c:12
DIALOG_RECON_RESTORE
SCR_ReconnectSynchronizationComponentClass DIALOG_RECON_RESTORE