Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
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)]
5
7class SCR_BaseGameModeStateComponent : SCR_BaseGameModeComponent
8{
9 //------------------------------------------------------------------------------------------------
11 bool GetAllowControls()
12 {
13 return true;
14 }
15
16 //------------------------------------------------------------------------------------------------
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}
enum EAIGroupCombatMode ComponentEditorProps(category:"GameScripted/AI", description:"Component for utility AI system for groups")
void OnGameStateChanged(SCR_EGameModeState state)
void SCR_BaseGameModeComponent(IEntityComponentSource src, IEntity ent, IEntity parent)
bool CanAdvanceState(SCR_EGameModeState nextState)
SCR_EGameModeState GetAffiliatedState()
Called on the authority when created to assign state this component belongs to.
void OnStateEntered()
Called when game mode transitions into the state this component represents.
SCR_BaseGameModeStateComponentClass SCR_BaseGameModeComponentClass GetAllowControls()
Base component for handling game mode states.
SCR_EGameModeState
Definition Debug.c:13