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_GlobalDeployableRadioSettingEditorAttribute.c
Go to the documentation of this file.
1
[
BaseContainerProps
(),
SCR_BaseEditorAttributeCustomTitle
()]
2
class
SCR_GlobalDeployableRadioSettingEditorAttribute
:
SCR_BaseFloatValueHolderEditorAttribute
3
{
4
//------------------------------------------------------------------------------------------------
5
override
SCR_BaseEditorAttributeVar
ReadVariable(Managed item, SCR_AttributesManagerEditorComponent manager)
6
{
7
BaseGameMode gameMode = BaseGameMode.Cast(item);
8
if
(!gameMode)
9
return
null;
10
11
SCR_PlayerSpawnPointManagerComponent
playerSpawnPointManager =
SCR_PlayerSpawnPointManagerComponent
.Cast(gameMode.FindComponent(
SCR_PlayerSpawnPointManagerComponent
));
12
if
(!playerSpawnPointManager)
13
return
null;
14
15
return
SCR_BaseEditorAttributeVar
.
CreateInt
(playerSpawnPointManager.
GetDeployableSpawnPointBudgetType
());
16
}
17
18
//------------------------------------------------------------------------------------------------
19
override
void
WriteVariable(Managed item,
SCR_BaseEditorAttributeVar
var, SCR_AttributesManagerEditorComponent manager,
int
playerID)
20
{
21
if
(!var)
22
return
;
23
24
BaseGameMode gameMode = BaseGameMode.Cast(item);
25
if
(!gameMode)
26
return
;
27
28
SCR_PlayerSpawnPointManagerComponent
playerSpawnPointManager =
SCR_PlayerSpawnPointManagerComponent
.Cast(gameMode.FindComponent(
SCR_PlayerSpawnPointManagerComponent
));
29
if
(!playerSpawnPointManager)
30
return
;
31
32
return
playerSpawnPointManager.
SetDeployableSpawnPointBudgetType
(var.
GetInt
(), playerID);
33
}
34
35
//------------------------------------------------------------------------------------------------
36
override
void
UpdateInterlinkedVariables(
SCR_BaseEditorAttributeVar
var, SCR_AttributesManagerEditorComponent manager,
bool
isInit =
false
)
37
{
38
//Set sub labels
39
if
(isInit)
40
manager.SetAttributeAsSubAttribute(
SCR_DeployableRadioTicketEditorAttribute
);
41
42
SCR_BaseEditorAttributeVar
enabledVar;
43
bool
enabled;
44
45
manager.GetAttributeVariable(
SCR_EnableDeployableSpawnPointsEditorAttribute
, enabledVar);
46
if
(enabledVar)
47
enabled = enabledVar.
GetBool
();
48
49
manager.SetAttributeEnabled(
SCR_DeployableRadioTicketEditorAttribute
, enabled && var && var.
GetInt
() == 2);
50
}
51
}
BaseContainerProps
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Definition
SCR_AIAnimationWaypoint.c:14
SCR_BaseEditorAttributeCustomTitle
Definition
SCR_BaseEditorAttribute.c:876
SCR_BaseEditorAttributeVar
Definition
SCR_BaseEditorAttributeVar.c:2
SCR_BaseEditorAttributeVar::GetBool
bool GetBool()
Definition
SCR_BaseEditorAttributeVar.c:56
SCR_BaseEditorAttributeVar::CreateInt
static SCR_BaseEditorAttributeVar CreateInt(int value)
Definition
SCR_BaseEditorAttributeVar.c:107
SCR_BaseEditorAttributeVar::GetInt
int GetInt()
Definition
SCR_BaseEditorAttributeVar.c:20
SCR_BaseFloatValueHolderEditorAttribute
Attribute base for Name, icon and float value for other attributes to inherent from.
Definition
SCR_BaseFloatValueHolderEditorAttribute.c:4
SCR_DeployableRadioTicketEditorAttribute
Definition
SCR_DeployableRadioTicketAttribute.c:3
SCR_EnableDeployableSpawnPointsEditorAttribute
Definition
SCR_EnableDeployableSpawnPointsEditorAttribute.c:3
SCR_GlobalDeployableRadioSettingEditorAttribute
Definition
SCR_GlobalDeployableRadioSettingEditorAttribute.c:3
SCR_PlayerSpawnPointManagerComponent
Definition
SCR_PlayerSpawnPointManagerComponent.c:11
SCR_PlayerSpawnPointManagerComponent::SetDeployableSpawnPointBudgetType
void SetDeployableSpawnPointBudgetType(SCR_ESpawnPointBudgetType budgetType, int notificationPlayerID=-1)
Definition
SCR_PlayerSpawnPointManagerComponent.c:224
SCR_PlayerSpawnPointManagerComponent::GetDeployableSpawnPointBudgetType
SCR_ESpawnPointBudgetType GetDeployableSpawnPointBudgetType()
Definition
SCR_PlayerSpawnPointManagerComponent.c:258
scripts
Game
Editor
Containers
Attributes
SCR_GlobalDeployableRadioSettingEditorAttribute.c
Generated by
1.17.0