public override void Process(AGE.Action _action, Track _track) { Track track = _action.GetTrack(this.trackId); if (track != null) { track.Stop(_action); } }
public bool CheckConditions(AGE.Action _action) { if (this.waitForConditions != null) { Dictionary <int, bool> .Enumerator enumerator = this.waitForConditions.GetEnumerator(); while (enumerator.MoveNext()) { KeyValuePair <int, bool> current = enumerator.Current; int key = current.Key; if ((key >= 0) && (key < _action.GetConditionCount())) { KeyValuePair <int, bool> pair2 = enumerator.Current; if (_action.GetCondition(_action.GetTrack(key)) != pair2.Value) { return(false); } } } } return(true); }