/// <summary>
 /// Adds the logic to the entity's list of objects.
 /// </summary>
 /// <param name="id">The logic's identifier.</param>
 /// <param name="logic">The logic to add.</param>
 public void AddLogic(string id, Logic logic)
 {
     Logics.Add(id, logic);
     logic.Owner = this;
 }
 /// <summary>
 /// Adds the logic to the entity's list of objects.
 /// </summary>
 /// <param name="logic">The logic to add.</param>
 public void AddLogic(Logic logic)
 {
     AddLogic(logic.GetType().Name, logic);
 }