void handlePassives() { foreach (string attributeName in AttributesPassives.Keys) { IamAttribute temp; AttributesPassives.TryGetValue(attributeName, out temp); AttributeState state = temp.UpdateLogic(this); switch (state) { case AttributeState.Done: { removalListForPassives.Add(attributeName); break; } case AttributeState.InProgress: { break; } case AttributeState.Loop: { break; } default: break; } } foreach (string name in removalListForPassives) { AttributesPassives.Remove(name); } }
void handleActives() { if (Commands.Count > 0) { AttributesActives.TryGetValue(Commands.Peek(), out IamAttribute attribute); AttributeState state = attribute.UpdateLogic(this); switch (state) { case AttributeState.Done: { Commands.Dequeue(); break; } case AttributeState.InProgress: { break; } case AttributeState.Loop: { break; } default: break; } } }