Ejemplo n.º 1
0
 /// <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());
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Registers the specified mechanic.
 /// </summary>
 public void RegisterMechanic(BehaviourModelMechanic mechanic)
 {
     this.mechanics.Add(mechanic.GetType(), mechanic);
 }