Inheritance: IRunnableState, ISequenceInstance
        public IRunnableState For(T state)
        {
            Sequence.SequenceJob stateConfig;
            if (!this.stateConfigs.TryGetValue(state, out stateConfig))
            {
                stateConfig = new Sequence.SequenceJob(this.log, this.name);
                this.stateConfigs.Add(state, stateConfig);
            }

            return(stateConfig);
        }
Example #2
0
        public IRunnableState For(int state)
        {
            Sequence.SequenceJob stateConfig;
            if (!this.stateConfigs.TryGetValue(state, out stateConfig))
            {
                stateConfig = new Sequence.SequenceJob(this.name);
                this.stateConfigs.Add(state, stateConfig);
            }

            if (state > length - 1)
                length = state + 1;

            return stateConfig;
        }