Example #1
0
        public static StateMachineGraphData GetGraphData <T>(this T stateMachine)
            where T : StateMachine <T>
        {
            var visitor = new GraphStateMachineVisitor <T>();

            stateMachine.Inspect(visitor);

            return(visitor.GetGraphData());
        }
Example #2
0
        StateMachineGraphData CreateStateMachineGraph <T>(T machine)
            where T : StateMachine <T>
        {
            var visitor = new GraphStateMachineVisitor <T>();

            machine.Inspect(visitor);

            return(visitor.GetGraphData());
        }