6 [
Attribute(
desc:
"The budget Value if in Multiplayer when budget is enabled")]
7 protected int m_iBudgetValueMP;
9 [
Attribute(
desc:
"The budget Value if in Singleplayer when budget is enabled")]
10 protected int m_iBudgetValueSP;
14 protected void SetEditorManager(Managed item)
18 SCR_EditablePlayerDelegateComponent delegate = SCR_EditablePlayerDelegateComponent.Cast(item);
31 SetEditorManager(item);
40 budgetComponent.GetMaxBudgetValue(GetBudgetType(), maxBudget);
45 override void WriteVariable(Managed item,
SCR_BaseEditorAttributeVar var, SCR_AttributesManagerEditorComponent manager,
int playerID)
51 SetEditorManager(item);
53 SCR_EditablePlayerDelegateComponent delegate = SCR_EditablePlayerDelegateComponent.Cast(item);
68 if (Replication.IsRunning())
69 budgetValue = m_iBudgetValueMP;
71 budgetValue = m_iBudgetValueSP;
73 budgetComponent.SetMaxBudgetValue(GetBudgetType(), budgetValue);
74 SCR_NotificationsComponent.SendToUnlimitedEditorPlayersAndPlayer(playerID, GetEnableNotification(), playerID, delegate.GetPlayerID());
78 budgetComponent.SetMaxBudgetValue(GetBudgetType(), 0);
79 SCR_NotificationsComponent.SendToUnlimitedEditorPlayersAndPlayer(playerID, GetDisableNotification(), playerID, delegate.GetPlayerID());