static int _m_OverrideStatus(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                BehaviorDesigner.Runtime.Tasks.UtilitySelector gen_to_be_invoked = (BehaviorDesigner.Runtime.Tasks.UtilitySelector)translator.FastGetCSObj(L, 1);



                {
                    BehaviorDesigner.Runtime.Tasks.TaskStatus _status; translator.Get(L, 2, out _status);

                    BehaviorDesigner.Runtime.Tasks.TaskStatus gen_ret = gen_to_be_invoked.OverrideStatus(
                        _status);
                    translator.Push(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
        static int _m_OnChildExecuted(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                BehaviorDesigner.Runtime.Tasks.UtilitySelector gen_to_be_invoked = (BehaviorDesigner.Runtime.Tasks.UtilitySelector)translator.FastGetCSObj(L, 1);



                {
                    int _childIndex = LuaAPI.xlua_tointeger(L, 2);
                    BehaviorDesigner.Runtime.Tasks.TaskStatus _childStatus; translator.Get(L, 3, out _childStatus);

                    gen_to_be_invoked.OnChildExecuted(
                        _childIndex,
                        _childStatus);



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
Beispiel #3
0
        static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    BehaviorDesigner.Runtime.Tasks.UtilitySelector gen_ret = new BehaviorDesigner.Runtime.Tasks.UtilitySelector();
                    translator.Push(L, gen_ret);

                    return(1);
                }
            }
            catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(LuaAPI.luaL_error(L, "invalid arguments to BehaviorDesigner.Runtime.Tasks.UtilitySelector constructor!"));
        }
Beispiel #4
0
        static int _m_OnStart(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                BehaviorDesigner.Runtime.Tasks.UtilitySelector gen_to_be_invoked = (BehaviorDesigner.Runtime.Tasks.UtilitySelector)translator.FastGetCSObj(L, 1);



                {
                    gen_to_be_invoked.OnStart(  );



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
Beispiel #5
0
        static int _m_CurrentChildIndex(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                BehaviorDesigner.Runtime.Tasks.UtilitySelector gen_to_be_invoked = (BehaviorDesigner.Runtime.Tasks.UtilitySelector)translator.FastGetCSObj(L, 1);



                {
                    int gen_ret = gen_to_be_invoked.CurrentChildIndex(  );
                    LuaAPI.xlua_pushinteger(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }