14 SCR_ResourceComponent resourceComponent = SCR_ResourceComponent.Cast(
SCR_EntityHelper.FindComponent(editableEntity.GetOwner(), SCR_ResourceComponent));
15 if (!resourceComponent || !resourceComponent.CanResourceTypeEnabledBeChanged(m_eResourceToSetEnabled))
19 float availableResources;
28 override void UpdateInterlinkedVariables(
SCR_BaseEditorAttributeVar var, SCR_AttributesManagerEditorComponent manager,
bool isInit =
false)
35 override void WriteVariable(Managed item,
SCR_BaseEditorAttributeVar var, SCR_AttributesManagerEditorComponent manager,
int playerID)
44 SCR_ResourceComponent resourceComponent = SCR_ResourceComponent.Cast(
SCR_EntityHelper.FindComponent(editableEntity.GetOwner(), SCR_ResourceComponent));
45 if (!resourceComponent || !resourceComponent.CanResourceTypeEnabledBeChanged(m_eResourceToSetEnabled))
49 float availableResources;
54 resourceComponent.SetResourceTypeEnabled(var.GetBool(), m_eResourceToSetEnabled);