Arma Reforger Explorer
1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_GlobalFuelConsumptionScaleEditorAttribute.c
Go to the documentation of this file.
1
4
[
BaseContainerProps
(),
SCR_BaseEditorAttributeCustomTitle
()]
5
class
SCR_GlobalFuelConsumptionScaleEditorAttribute
:
SCR_BaseValueListEditorAttribute
6
{
7
//------------------------------------------------------------------------------------------------
8
override
SCR_BaseEditorAttributeVar
ReadVariable(Managed item, SCR_AttributesManagerEditorComponent manager)
9
{
10
if
(!IsGameMode(item))
11
return
null
;
12
13
return
SCR_BaseEditorAttributeVar
.CreateFloat(SCR_FuelConsumptionComponent.GetGlobalFuelConsumptionScale());
14
}
15
16
//------------------------------------------------------------------------------------------------
17
override
void
WriteVariable(Managed item,
SCR_BaseEditorAttributeVar
var, SCR_AttributesManagerEditorComponent manager,
int
playerID)
18
{
19
if
(!var)
20
return
;
21
22
if
(!IsGameMode(item))
23
return
;
24
25
SCR_FuelConsumptionComponent.SetGlobalFuelConsumptionScale(var.GetFloat(), playerID);
26
}
27
};
SCR_GlobalFuelConsumptionScaleEditorAttribute
Definition:
SCR_GlobalFuelConsumptionScaleEditorAttribute.c:5
SCR_BaseEditorAttributeCustomTitle
Definition:
SCR_BaseEditorAttribute.c:868
SCR_BaseEditorAttributeVar
Definition:
SCR_BaseEditorAttributeVar.c:1
SCR_BaseValueListEditorAttribute
Definition:
SCR_BaseValueListEditorAttribute.c:5
BaseContainerProps
SCR_AIGoalReaction_Follow BaseContainerProps
Handles insects that are supposed to be spawned around selected prefabs defined in prefab names array...
Definition:
SCR_AIGoalReaction.c:468
scripts_Arma_Reforger_v1.1.0.42
scripts
Game
Editor
Containers
Attributes
SCR_GlobalFuelConsumptionScaleEditorAttribute.c
Generated by
1.8.17