public void SetFrom(BotNeeds newNeeds) { foreach (Object fi in GetNeeds()) { SetNeed(fi, newNeeds.GetNeed(fi)); } }
public void AddFrom(BotNeeds needsDiff) { foreach (Object fi in GetNeeds()) { SetNeed(fi, GetNeed(fi) + needsDiff.GetNeed(fi)); } }
public BotNeeds Minus(BotNeeds needsBefore) { BotNeeds copy = Copy(); foreach (Object need in copy.GetNeeds()) { copy.SetNeed(need, copy.GetNeed(need) - needsBefore.GetNeed(need)); } return(copy); }
public BotNeeds Minus(BotNeeds needsBefore) { BotNeeds copy = Copy(); foreach (Object need in copy.GetNeeds()) { copy.SetNeed(need, copy.GetNeed(need) - needsBefore.GetNeed(need)); } return copy; }