/// <summary> /// Deregisters the specfied mechanic. /// The mechanic must have been previously registered with <see cref="RegisterMechanic(BehaviourModelMechanic)"/>. /// </summary> public void DeregisterMechanic(BehaviourModelMechanic mechanic) { this.mechanics.Remove(mechanic.GetType()); }
/// <summary> /// Registers the specified mechanic. /// </summary> public void RegisterMechanic(BehaviourModelMechanic mechanic) { this.mechanics.Add(mechanic.GetType(), mechanic); }