Exemple #1
0
 ///<summary>
 ///this is used to register triggers with the <see cref="TriggerSystem"/>
 ///which will take care of tidying up memory used by a trigger
 ///</summary>
 ///<param name="trigger"></param>
 public void Register(Trigger trigger)
 {
     Triggers.Add(trigger);
 }
Exemple #2
0
 /// <summary>
 /// Add a new trigger to the list
 /// </summary>
 /// <param name="foundTrigger">newly found trigger</param>
 public void AddFoundItem(Trigger foundTrigger)
 {
     if (IsAddableType(foundTrigger.EntityType) && !_triggerList.Contains(foundTrigger))
     {
         _triggerList.Add(foundTrigger);
         countListItems();
     }
 }