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_EndGameToolbarAction.c
Go to the documentation of this file.
1
[
BaseContainerProps
(),
SCR_BaseContainerCustomTitleUIInfo
(
"m_Info"
)]
2
class
SCR_EndGameToolbarAction
:
SCR_EditorToolbarAction
3
{
4
override
bool
IsServer
()
5
{
6
return
false
;
7
}
8
9
override
bool
CanBeShown(
SCR_EditableEntityComponent
hoveredEntity, notnull set<SCR_EditableEntityComponent> selectedEntities,
vector
cursorWorldPosition,
int
flags
)
10
{
11
if
(!
Replication
.IsRunning())
12
return
false
;
13
14
SCR_EditorManagerEntity
editorManager =
SCR_EditorManagerEntity
.GetInstance();
15
if
(!editorManager)
16
return
false
;
17
18
SCR_RespawnComponent
respawnComponent =
SCR_RespawnComponent
.GetInstance();
19
if
(!respawnComponent)
20
return
false
;
21
22
SCR_BaseGameMode
gameMode =
SCR_BaseGameMode
.Cast(
GetGame
().
GetGameMode
());
23
24
if
(gameMode.
GetState
() !=
SCR_EGameModeState
.GAME)
25
return
false
;
26
27
return
!editorManager.IsLimited();
28
}
29
override
bool
CanBePerformed(
SCR_EditableEntityComponent
hoveredEntity, notnull set<SCR_EditableEntityComponent> selectedEntities,
vector
cursorWorldPosition,
int
flags
)
30
{
31
if
(!
Replication
.IsRunning())
32
return
false
;
33
34
SCR_BaseGameMode
gameMode =
SCR_BaseGameMode
.Cast(
GetGame
().
GetGameMode
());
35
if
(gameMode.
GetState
() !=
SCR_EGameModeState
.GAME)
36
return
false
;
37
38
return
true
;
39
}
40
override
void
Perform(
SCR_EditableEntityComponent
hoveredEntity, notnull set<SCR_EditableEntityComponent> selectedEntities,
vector
cursorWorldPosition,
int
flags
,
int
param = -1)
41
{
42
SCR_PlayerController
playerController =
SCR_PlayerController
.Cast(
GetGame
().
GetPlayerController
());
43
int
PlayerID = -1;
44
45
if
(playerController)
46
PlayerID = playerController.GetPlayerId();
47
48
SCR_EditorManagerEntity
editorManager =
SCR_EditorManagerEntity
.GetInstance();
49
if
(!editorManager)
50
return
;
51
52
if
(editorManager.IsLimited())
53
return
;
54
55
SCR_RespawnComponent
respawnComponent =
SCR_RespawnComponent
.GetInstance();
56
if
(!respawnComponent)
57
return
;
58
59
SCR_AttributesManagerEditorComponent attributeManager = SCR_AttributesManagerEditorComponent.Cast(SCR_AttributesManagerEditorComponent.GetInstance(SCR_AttributesManagerEditorComponent));
60
if
(!attributeManager)
61
return
;
62
63
SCR_BaseGameMode
gameMode =
SCR_BaseGameMode
.Cast(
GetGame
().
GetGameMode
());
64
if
(gameMode.
GetState
() !=
SCR_EGameModeState
.GAME)
65
return
;
66
67
attributeManager.StartEditing(respawnComponent);
68
}
69
};
flags
SCR_EAIThreatSectorFlags flags
Definition
AIControlComponentSerializer.c:16
GetGame
ArmaReforgerScripted GetGame()
Definition
game.c:1398
BaseContainerProps
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Definition
SCR_AIAnimationWaypoint.c:14
SCR_BaseContainerCustomTitleUIInfo
class SCR_ArsenalGameModeUIDataHolder SCR_BaseContainerCustomTitleUIInfo("m_UIInfo")
Definition
SCR_ArsenalManagerComponent.c:1752
GetGameMode
SCR_BaseGameMode GetGameMode()
Definition
SCR_BaseGameModeComponent.c:15
SCR_EGameModeState
SCR_EGameModeState
Definition
SCR_EGameModeState.c:5
SCR_EditorManagerEntity
void SCR_EditorManagerEntity(IEntitySource src, IEntity parent)
Definition
SCR_EditorManagerEntity.c:2211
SCR_RespawnComponent
void SCR_RespawnComponent(IEntityComponentSource src, IEntity ent, IEntity parent)
Definition
SCR_RespawnComponent.c:565
Replication
Main replication API.
Definition
Replication.c:14
SCR_BaseEditorAction::IsServer
bool IsServer()
Definition
SCR_BaseEditorAction.c:160
SCR_BaseGameMode
Definition
SCR_BaseGameMode.c:139
SCR_BaseGameMode::GetState
SCR_EGameModeState GetState()
Definition
SCR_BaseGameMode.c:358
SCR_EditableEntityComponent
Definition
SCR_EditableEntityComponent.c:14
SCR_EditorToolbarAction
Definition
SCR_EditorToolbarAction.c:4
SCR_EndGameToolbarAction
Definition
SCR_EndGameToolbarAction.c:3
SCR_PlayerController
Definition
SCR_PlayerController.c:31
vector
Definition
vector.c:13
GetPlayerController
proto external PlayerController GetPlayerController()
Definition
SCR_PlayerDeployMenuHandlerComponent.c:307
scripts
Game
Editor
Containers
Actions
ToolbarActions
SCR_EndGameToolbarAction.c
Generated by
1.17.0