Exemplo n.º 1
0
    public virtual void ReturnState()
    {
        unchecked {
            if ((this.m_callstack_level <= 0))
            {
                global::haxe.Log.trace.__hx_invoke2_o(default(double), "CALL STACK UNDERFLOW", default(double), new global::haxe.lang.DynamicObject(new int[] { 302979532, 1547539107, 1648581351 }, new object[] { "ReturnState", "TestControl", "src/TestControl.hx" }, new int[] { 1981972957 }, new double[] { ((double)(95)) }));
                return;
            }

            this.m_callstack_level -= 1;
            global::TestControl_STATE nextstate = ((global::TestControl_STATE)(this.m_callstacks[this.m_callstack_level]));
            this.Goto(nextstate);
        }
    }
Exemplo n.º 2
0
    public virtual void GoSubState(global::TestControl_STATE nextstate, global::TestControl_STATE returnstate)
    {
        unchecked {
            if ((this.m_callstack_level >= (this.MAX_CALLSTACK - 1)))
            {
                global::haxe.Log.trace.__hx_invoke2_o(default(double), "CALL STACK OVERFLOW", default(double), new global::haxe.lang.DynamicObject(new int[] { 302979532, 1547539107, 1648581351 }, new object[] { "GoSubState", "TestControl", "src/TestControl.hx" }, new int[] { 1981972957 }, new double[] { ((double)(85)) }));
                return;
            }

            this.m_callstacks[this.m_callstack_level] = returnstate;
            this.m_callstack_level += 1;
            this.Goto(nextstate);
        }
    }
Exemplo n.º 3
0
    public virtual void Update()
    {
        while (true)
        {
            bool bFirst = false;
            if ((this.m_nextfunc != global::TestControl_STATE.none))
            {
                this.m_curfunc  = this.m_nextfunc;
                this.m_nextfunc = global::TestControl_STATE.none;
                bFirst          = true;
            }

            this.m_noWait = false;
            if ((this.m_curfunc != global::TestControl_STATE.none))
            {
                ((global::haxe.lang.Function)((((global::haxe.ds.EnumValueMap <object, object>)(global::haxe.ds.EnumValueMap <object, object> .__hx_cast <object, object>(((global::haxe.ds.EnumValueMap)(((global::haxe.IMap <object, object>)(this.m_funcmap))))))).@get(this.m_curfunc)).@value)).__hx_invoke1_o(default(double), bFirst);
            }

            if (!(this.m_noWait))
            {
                break;
            }
        }
    }
Exemplo n.º 4
0
    public override object __hx_setField(string field, int hash, object @value, bool handleProperties)
    {
        unchecked {
            switch (hash)
            {
            case 506919763:
            {
                this.m_S_WAIT1SEC = ((int)(global::haxe.lang.Runtime.toInt(@value)));
                return(@value);
            }


            case 1855943296:
            {
                this.m_index = ((int)(global::haxe.lang.Runtime.toInt(@value)));
                return(@value);
            }


            case 30564047:
            {
                this.m_val = ((int)(global::haxe.lang.Runtime.toInt(@value)));
                return(@value);
            }


            case 30120495:
            {
                this.m_msg = global::haxe.lang.Runtime.toString(@value);
                return(@value);
            }


            case 419997469:
            {
                this.m_callstack_level = ((int)(global::haxe.lang.Runtime.toInt(@value)));
                return(@value);
            }


            case 1301665051:
            {
                this.m_callstacks = ((global::Array <object>)(global::Array <object> .__hx_cast <object>(((global::Array)(@value)))));
                return(@value);
            }


            case 1292742927:
            {
                this.MAX_CALLSTACK = ((int)(global::haxe.lang.Runtime.toInt(@value)));
                return(@value);
            }


            case 2074579142:
            {
                this.m_funcmap = ((global::haxe.ds.EnumValueMap <object, object>)(global::haxe.ds.EnumValueMap <object, object> .__hx_cast <object, object>(((global::haxe.ds.EnumValueMap)(@value)))));
                return(@value);
            }


            case 1736000552:
            {
                this.m_noWait = global::haxe.lang.Runtime.toBool(@value);
                return(@value);
            }


            case 738420489:
            {
                this.m_nextfunc = ((global::TestControl_STATE)(@value));
                return(@value);
            }


            case 1317224370:
            {
                this.m_curfunc = ((global::TestControl_STATE)(@value));
                return(@value);
            }


            default:
            {
                return(base.__hx_setField(field, hash, @value, handleProperties));
            }
            }
        }
    }
Exemplo n.º 5
0
 public virtual bool CheckState(global::TestControl_STATE func)
 {
     return(this.m_curfunc == func);
 }
Exemplo n.º 6
0
 public virtual void Goto(global::TestControl_STATE func)
 {
     this.m_nextfunc = func;
 }