public static Coroutine StartCoroutine(this MonoBehaviour behaviour, CoroutineMethod method) { if (behaviour == null) throw new System.ArgumentNullException("behaviour"); if (method == null) throw new System.ArgumentNullException("method"); return behaviour.StartCoroutine(method()); }
public SymbolStringTuple(int result, string str, CoroutineMethod coroutineName, bool ignorable = false) { this.result = result; this.str = str; this.coroutineName = coroutineName; this.ignorable = ignorable; }
/// <summary> /// Create a processed token for a Terminal /// </summary> /// <param name="tokenSymbol"></param> /// <param name="rule"></param> /// <param name="rhs"></param> public ProcessedToken(int tokenSymbolLocation, CoroutineMethod rule, object data) { this.rhs = null; this.terminal = true; this.tokenSymbolLocation = tokenSymbolLocation; this.rule = rule; this.data = data; }
/// <summary> /// Create a processed token for a NonTerminal /// </summary> /// <param name="tokenSymbol"></param> /// <param name="rule"></param> /// <param name="rhs"></param> public ProcessedToken(int tokenSymbolLocation, CoroutineMethod rule, List <ProcessedToken> rhs) { this.rhs = rhs; this.terminal = false; this.tokenSymbolLocation = tokenSymbolLocation; this.rule = rule; this.data = null; }
public void CoroutineRunner(CoroutineMethod toBeRun) { StartCoroutine(toBeRun()); }
public Coroutine(CoroutineMethod coroutineMethod, string coroutineName) { Method = coroutineMethod; Name = coroutineName; }
public static RadicalCoroutine StartRadicalCoroutine(this MonoBehaviour behaviour, CoroutineMethod method) { if (behaviour == null) throw new System.ArgumentNullException("behaviour"); if (method == null) throw new System.ArgumentNullException("routine"); var co = new RadicalCoroutine(method().GetEnumerator()); co.Start(behaviour); return co; }
public RadicalCoroutine Schedule(MonoBehaviour behaviour, CoroutineMethod routine, RadicalCoroutineDisableMode disableMode = RadicalCoroutineDisableMode.Default) { if (behaviour == null) throw new System.ArgumentNullException("behaviour"); if (routine == null) throw new System.ArgumentNullException("routine"); var co = new RadicalCoroutine(routine().GetEnumerator()); this.OnComplete += (s, e) => { if (co._state == RadicalCoroutineOperatingState.Inactive) co.Start(behaviour, disableMode); }; return co; }
public RadicalCoroutine StartRadicalCoroutine(CoroutineMethod routine, RadicalCoroutineDisableMode disableMode = RadicalCoroutineDisableMode.Default) { if (routine == null) throw new System.ArgumentNullException("routine"); var co = new RadicalCoroutine(routine().GetEnumerator()); co.Start(this, disableMode); return co; }
/// <summary> /// Runs a coroutine sent from /// a non-mono behavior /// </summary> /// <param name="coroutineMethod"></param> /// <returns></returns> IEnumerator RunCoroutine(CoroutineMethod coroutineMethod) { return(coroutineMethod()); }
public ProductionRule(int result, int rhsSize, CoroutineMethod coroutineName) { this.result = result; this.rhsSize = rhsSize; this.coroutineName = coroutineName; }
IEnumerator RunCoroutine(CoroutineMethod _method) { return _method(); }
public Coroutine StartCoroutineDelegate(CoroutineMethod _method) { return StartCoroutine("RunCoroutine", _method); }
public IEnumerator RunCoroutine(CoroutineMethod method) { return(method()); }
public void StartCoroutineDelegate(CoroutineMethod method) { StartCoroutine("RunCoroutine", method); }