8 protected SCR_EFuelNodeTypeFlag GetFuelNodeFlags()
14 protected SCR_EFuelNodeTypeFlag GetFuelNodeIgnoreFlags()
16 return SCR_EFuelNodeTypeFlag.IS_FUEL_STORAGE;
26 IEntity owner = editableEntity.GetOwner();
32 if (damageComponent && damageComponent.GetState() ==
EDamageState.DESTROYED)
36 array<SCR_FuelManagerComponent> fuelManagers = {};
38 if (fuelManagers.IsEmpty())
41 float totalFuel, maxFuel, fuelPercentage;
42 SCR_FuelManagerComponent.GetTotalValuesOfFuelNodesOfFuelManagers(fuelManagers, totalFuel, maxFuel, fuelPercentage, GetFuelNodeFlags(), GetFuelNodeIgnoreFlags());
50 override void WriteVariable(Managed item,
SCR_BaseEditorAttributeVar var, SCR_AttributesManagerEditorComponent manager,
int playerID)
56 IEntity owner = editableEntity.GetOwner();
61 if (damageComponent && damageComponent.GetState() ==
EDamageState.DESTROYED)
64 array<SCR_FuelManagerComponent> fuelManagers = {};
66 if (fuelManagers.IsEmpty())
69 SCR_FuelManagerComponent.SetTotalFuelPercentageOfFuelManagers(fuelManagers, var.GetFloat() * 0.01, GetFuelNodeFlags(), GetFuelNodeIgnoreFlags());