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