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_FactionCommanderCommandConflictMenuHandler.c
Go to the documentation of this file.
1
[
BaseContainerProps
()]
2
class
SCR_FactionCommanderCommandConflictMenuHandler
:
SCR_FactionCommanderConflictBaseMenuHandler
3
{
4
//------------------------------------------------------------------------------------------------
5
override
bool
CanQuickEntryBeShown(notnull
Faction
commanderFaction,
int
playerId,
vector
position
,
IEntity
hoveredEntity)
6
{
7
if
(!super.CanQuickEntryBeShown(commanderFaction, playerId,
position
, hoveredEntity))
8
return
false
;
9
10
return
IsTaskValid
(hoveredEntity);
11
}
12
13
//------------------------------------------------------------------------------------------------
14
override
bool
CanEntryBeShown(notnull
Faction
commanderFaction,
int
playerId,
vector
position
,
IEntity
hoveredEntity)
15
{
16
SCR_Task
task
=
GetTask
(hoveredEntity, commanderFaction,
GetTaskPrefabClassTypename
());
17
if
(!
m_bIsObjectiveCreationEnabled
&& !
task
)
18
return
false
;
19
20
return
true
;
21
}
22
23
//------------------------------------------------------------------------------------------------
24
override
bool
CanEntryBeSelected(notnull
Faction
commanderFaction,
int
playerId,
vector
position
,
IEntity
hoveredEntity, out
string
disabledText =
""
)
25
{
26
if
(
GetHoveredBase
())
27
return
false
;
28
29
return
true
;
30
}
31
32
//------------------------------------------------------------------------------------------------
33
override
bool
CanGroupEntryBeSelected(notnull
Faction
commanderFaction,
int
playerId,
vector
position
,
IEntity
hoveredEntity,
SCR_AIGroup
group, out
string
disabledText =
""
)
34
{
35
if
(!super.CanGroupEntryBeSelected(commanderFaction, playerId,
position
, hoveredEntity, group))
36
return
false
;
37
38
return
CanCampaignGroupEntryBeSelected
(commanderFaction, hoveredEntity, group,
GetTaskPrefabClassTypename
());
39
}
40
41
//------------------------------------------------------------------------------------------------
42
override
void
OnCommandIssued(notnull
Faction
commanderFaction,
int
playerId,
vector
position
,
IEntity
hoveredEntity,
SCR_AIGroup
group)
43
{
44
SCR_FactionCommanderPlayerComponent comp =
GetLocalCommanderComponent
();
45
if
(!comp)
46
return
;
47
48
if
(!
IsTaskValid
(hoveredEntity))
49
{
50
comp.CreateTask(
GetTaskPrefab
(),
position
, group, playerId);
51
return
;
52
}
53
54
SCR_Task
task
=
SCR_Task
.Cast(hoveredEntity);
55
if
(group)
56
comp.AssignGroupToTask(group.
GetGroupID
(),
task
.GetTaskID());
57
}
58
}
BaseContainerProps
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Definition
SCR_AIAnimationWaypoint.c:14
position
vector position
Definition
SCR_DestructibleTreeV2.c:30
GetTask
SCR_ScenarioFrameworkTask GetTask()
Definition
SCR_ScenarioFrameworkLayerTask.c:131
SCR_Task
void SCR_Task(IEntitySource src, IEntity parent)
Definition
SCR_Task.c:1938
task
from task
Definition
SCR_TaskNotificationConfigs.c:12
Faction
Definition
Faction.c:13
IEntity
Definition
IEntity.c:13
SCR_AIGroup
Definition
SCR_AIGroup.c:75
SCR_AIGroup::GetGroupID
int GetGroupID()
Definition
SCR_AIGroup.c:935
SCR_FactionCommanderBaseMenuHandler::GetLocalCommanderComponent
SCR_FactionCommanderPlayerComponent GetLocalCommanderComponent()
Definition
SCR_FactionCommanderBaseMenuHandler.c:19
SCR_FactionCommanderBaseTaskMenuHandler::GetTaskPrefab
ResourceName GetTaskPrefab()
Definition
SCR_FactionCommanderBaseTaskMenuHandler.c:5
SCR_FactionCommanderBaseTaskMenuHandler::IsTaskValid
bool IsTaskValid(IEntity hoveredEntity)
Definition
SCR_FactionCommanderBaseTaskMenuHandler.c:18
SCR_FactionCommanderBaseTaskMenuHandler::GetTaskPrefabClassTypename
GetTaskPrefabClassTypename()
Definition
SCR_FactionCommanderBaseTaskMenuHandler.c:36
SCR_FactionCommanderCommandConflictMenuHandler
Definition
SCR_FactionCommanderCommandConflictMenuHandler.c:3
SCR_FactionCommanderConflictBaseMenuHandler
Definition
SCR_FactionCommanderConflictBaseMenuHandler.c:3
SCR_FactionCommanderConflictBaseMenuHandler::CanCampaignGroupEntryBeSelected
bool CanCampaignGroupEntryBeSelected(notnull Faction faction, IEntity hoveredEntity, notnull SCR_AIGroup group, typename taskClass)
Definition
SCR_FactionCommanderConflictBaseMenuHandler.c:115
SCR_FactionCommanderConflictBaseMenuHandler::m_bIsObjectiveCreationEnabled
bool m_bIsObjectiveCreationEnabled
Definition
SCR_FactionCommanderConflictBaseMenuHandler.c:5
SCR_FactionCommanderConflictBaseMenuHandler::GetHoveredBase
SCR_CampaignMilitaryBaseComponent GetHoveredBase()
Definition
SCR_FactionCommanderConflictBaseMenuHandler.c:53
vector
Definition
vector.c:13
scripts
Game
FactionCommander
MenuHandlers
SCR_FactionCommanderCommandConflictMenuHandler.c
Generated by
1.17.0