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
)]
2
class
SCR_BaseGameModeStateComponentClass
:
SCR_BaseGameModeComponentClass
3
{
4
}
5
7
class
SCR_BaseGameModeStateComponent :
SCR_BaseGameModeComponent
8
{
9
//------------------------------------------------------------------------------------------------
11
bool
GetAllowControls
()
12
{
13
return
true
;
14
}
15
16
//------------------------------------------------------------------------------------------------
18
float
GetDuration
()
19
{
20
return
0;
21
}
22
23
//------------------------------------------------------------------------------------------------
26
bool
CanAdvanceState
(
SCR_EGameModeState
nextState)
27
{
28
return
true
;
29
}
30
31
//------------------------------------------------------------------------------------------------
33
protected
void
OnStateEntered
();
34
35
//------------------------------------------------------------------------------------------------
38
override
void
OnGameStateChanged
(
SCR_EGameModeState
state)
39
{
40
super.OnGameStateChanged(state);
41
42
if
(state ==
GetAffiliatedState
())
43
OnStateEntered
();
44
}
45
46
//------------------------------------------------------------------------------------------------
48
SCR_EGameModeState
GetAffiliatedState
()
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
scripts_Arma_Reforger_v1.1.0.42
scripts
Game
GameMode
SCR_BaseGameModeStateComponent.c
Generated by
1.8.17