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;
     }
 }