Changes occuring as part of a quest
Пример #1
0
 /// <summary>
 /// Add an effect to be applied on map state change
 /// </summary>
 /// <param name="change"></param>
 /// <param name="type"></param>
 public void AddChange(MapChange change, ChangeType type)
 {
     switch(type){
     case ChangeType.Block:
     _blockeffect.Add(change);
         break;
     case ChangeType.Finish:
         _endeffect.Add(change);
         break;
     case ChangeType.Start:
         _blockeffect.Add(change);
         break;
     }
 }
Пример #2
0
 /// <summary>
 /// Remove a specific effect from the list of map state effects
 /// </summary>
 /// <param name="change"></param>
 /// <param name="type"></param>
 public void RemoveChange(MapChange change, ChangeType type)
 {
     switch(type){
     case ChangeType.Block:
         _blockeffect.Remove(change);
         break;
     case ChangeType.Finish:
     _endeffect.Remove(change);
         break;
     case ChangeType.Start:
         _starteffect.Remove(change);
         break;
     }
 }