20 void SetBudgetValue(
int newValue)
27 if (entityBudgetValue.GetBudgetType() == GetBudgetType())
29 m_Value += entityBudgetValue.GetBudgetValue();
35 static void MergeBudgetCosts(out notnull array<ref SCR_EntityBudgetValue> outExistingBudgets, array<ref SCR_EntityBudgetValue> newBudgetCosts)
39 bool budgetExists =
false;
42 if (existingBudget.AddBudgetValue(newBudgetCost))
50 outExistingBudgets.Insert(newBudgetCost);
55 static void AddBudgetValueToBudgetArray(out notnull array<ref SCR_EntityBudgetValue> budgets,
EEditableEntityBudget budgetType,
int value)
59 if (budgetValue.GetBudgetType() == budgetType)
61 budgetValue.SetBudgetValue(budgetValue.GetBudgetValue() + value);
71 if (budgetValue == -1)
return;