Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_BaseGameModeStateComponent.c
Go to the documentation of this file.
1 [ComponentEditorProps(category: "GameScripted/GameMode/Components", description: "Base for game mode state component handlers.", visible: false)]
3 {
4 }
5 
7 class SCR_BaseGameModeStateComponent : SCR_BaseGameModeComponent
8 {
9  //------------------------------------------------------------------------------------------------
12  {
13  return true;
14  }
15 
16  //------------------------------------------------------------------------------------------------
18  float GetDuration()
19  {
20  return 0;
21  }
22 
23  //------------------------------------------------------------------------------------------------
27  {
28  return true;
29  }
30 
31  //------------------------------------------------------------------------------------------------
33  protected void OnStateEntered();
34 
35  //------------------------------------------------------------------------------------------------
39  {
40  super.OnGameStateChanged(state);
41 
42  if (state == GetAffiliatedState())
44  }
45 
46  //------------------------------------------------------------------------------------------------
49  {
50  Debug.Error("Not implemented!");
51  return -1;
52  }
53 }
ComponentEditorProps
SCR_FragmentEntityClass ComponentEditorProps
OnStateEntered
protected void OnStateEntered()
Called when game mode transitions into the state this component represents.
OnGameStateChanged
override void OnGameStateChanged(SCR_EGameModeState state)
Definition: SCR_BaseGameModeStateComponent.c:38
GetDuration
float GetDuration()
Definition: SCR_BaseGameModeStateComponent.c:18
SCR_BaseGameModeStateComponentClass
Definition: SCR_BaseGameModeStateComponent.c:2
CanAdvanceState
bool CanAdvanceState(SCR_EGameModeState nextState)
Definition: SCR_BaseGameModeStateComponent.c:26
GetAffiliatedState
SCR_EGameModeState GetAffiliatedState()
Called on the authority when created to assign state this component belongs to.
Definition: SCR_BaseGameModeStateComponent.c:48
GetAllowControls
SCR_BaseGameModeStateComponentClass SCR_BaseGameModeComponentClass GetAllowControls()
Base component for handling game mode states.
Definition: SCR_BaseGameModeStateComponent.c:11
SCR_EGameModeState
SCR_EGameModeState
Definition: SCR_EGameModeState.c:4
SCR_BaseGameModeComponentClass
Definition: SCR_BaseGameModeComponent.c:2
category
params category
Definition: SCR_VehicleDamageManagerComponent.c:180
SCR_BaseGameModeComponent
void SCR_BaseGameModeComponent(IEntityComponentSource src, IEntity ent, IEntity parent)
Definition: SCR_BaseGameModeComponent.c:199