6 protected SCR_ESupportStationResupplyType GetSupportStationType()
8 Print(
"SCR_BaseSupportStationEnableEditorAttribute should never be used. Inherit instead!", LogLevel.ERROR);
9 return SCR_ESupportStationResupplyType.NONE;
16 if (!editableEntity || !editableEntity.GetOwner())
19 SCR_BaseSupportStationComponent supportStation = SCR_BaseSupportStationComponent.FindSupportStation(editableEntity.GetOwner(), GetSupportStationType());
27 override void WriteVariable(Managed item,
SCR_BaseEditorAttributeVar var, SCR_AttributesManagerEditorComponent manager,
int playerID)
33 if (!editableEntity || !editableEntity.GetOwner())
36 SCR_BaseSupportStationComponent supportStation = SCR_BaseSupportStationComponent.FindSupportStation(editableEntity.GetOwner(), GetSupportStationType());
40 supportStation.SetEnabled(var.GetBool());