예제 #1
0
            //-------------------------------------------------------------------------------------------------------------------------------------------------

            public StateTransition(
                TransientStateMachine <TState, TTrigger> ownerMachine,
                MachineState ownerState,
                TTrigger trigger)
            {
                _ownerMachine = ownerMachine;
                _ownerState   = ownerState;
                _trigger      = trigger;
            }
예제 #2
0
            //-------------------------------------------------------------------------------------------------------------------------------------------------

            public MachineState(TransientStateMachine <TState, TTrigger> ownerMachine, TState value)
            {
                _value        = value;
                _ownerMachine = ownerMachine;
                _transitions  = new Dictionary <TTrigger, StateTransition>();
            }