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_AllowEntityRefundActionEditorAttribute.c
Go to the documentation of this file.
1
[
BaseContainerProps
(),
SCR_BaseEditorAttributeCustomTitle
()]
2
class
SCR_AllowEntityRefundActionEditorAttribute
:
SCR_BaseEditorAttribute
3
{
4
//------------------------------------------------------------------------------------------------
5
override
SCR_BaseEditorAttributeVar
ReadVariable(Managed item, SCR_AttributesManagerEditorComponent manager)
6
{
7
if
(!
IsGameMode
(item))
8
return
null;
9
10
SCR_AdditionalGameModeSettingsComponent
additionalGameSettings =
SCR_AdditionalGameModeSettingsComponent
.GetInstance();
11
if
(!additionalGameSettings)
12
return
null;
13
14
return
SCR_BaseEditorAttributeVar
.
CreateBool
(additionalGameSettings.IsEntityRefundingActionAllowed());
15
}
16
17
//------------------------------------------------------------------------------------------------
18
override
void
WriteVariable(Managed item,
SCR_BaseEditorAttributeVar
var, SCR_AttributesManagerEditorComponent manager,
int
playerID)
19
{
20
if
(!var)
21
return
;
22
23
SCR_AdditionalGameModeSettingsComponent
additionalGameSettings =
SCR_AdditionalGameModeSettingsComponent
.GetInstance();
24
if
(!additionalGameSettings)
25
return
;
26
27
additionalGameSettings.SetAllowEntityRefundingAction_S(var.
GetBool
(), playerID);
28
}
29
}
BaseContainerProps
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Definition
SCR_AIAnimationWaypoint.c:14
SCR_AdditionalGameModeSettingsComponent
void SCR_AdditionalGameModeSettingsComponent(IEntityComponentSource src, IEntity ent, IEntity parent)
Definition
SCR_AdditionalGameModeSettingsComponent.c:356
SCR_AllowEntityRefundActionEditorAttribute
Definition
SCR_AllowEntityRefundActionEditorAttribute.c:3
SCR_BaseEditorAttributeCustomTitle
Definition
SCR_BaseEditorAttribute.c:876
SCR_BaseEditorAttribute
Base Attribute Script for other attributes to inherent from to get and set varriables in Editor Attri...
Definition
SCR_BaseEditorAttribute.c:4
SCR_BaseEditorAttribute::IsGameMode
bool IsGameMode(Managed item)
Definition
SCR_BaseEditorAttribute.c:466
SCR_BaseEditorAttributeVar
Definition
SCR_BaseEditorAttributeVar.c:2
SCR_BaseEditorAttributeVar::CreateBool
static SCR_BaseEditorAttributeVar CreateBool(bool value)
Definition
SCR_BaseEditorAttributeVar.c:119
SCR_BaseEditorAttributeVar::GetBool
bool GetBool()
Definition
SCR_BaseEditorAttributeVar.c:56
scripts
Game
Editor
Containers
Attributes
SCR_AllowEntityRefundActionEditorAttribute.c
Generated by
1.17.0