예제 #1
0
        public static DrawState GetFsmStateDrawState(Skill fsm, SkillState state, bool selected)
        {
            bool active       = fsm.get_ActiveState() == state && fsm.get_Active();
            bool isBreakpoint = Skill.get_BreakAtState() == state;

            return(FsmDrawState.GetDrawState(fsm, selected, active, isBreakpoint, false));
        }
예제 #2
0
 public static DrawState GetDrawState(Skill fsm)
 {
     if (fsm == null || !fsm.get_Active() || fsm.get_Finished())
     {
         return(DrawState.Normal);
     }
     return(FsmDrawState.GetDrawState(fsm, false, fsm.get_Active(), Skill.get_BreakAtFsm() == fsm, false));
 }
예제 #3
0
        public static DrawState GetFsmTransitionDrawState(Skill fsm, SkillTransition transition, bool selected)
        {
            bool active = false;

            if (fsm.get_SwitchedState() || Skill.get_BreakAtFsm() == fsm)
            {
                active = (fsm.get_LastTransition() == transition && fsm.get_Active());
            }
            return(FsmDrawState.GetDrawState(fsm, selected, active, false, false));
        }