Example #1
0
        static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    BehaviorDesigner.Runtime.Tasks.UntilFailure gen_ret = new BehaviorDesigner.Runtime.Tasks.UntilFailure();
                    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.UntilFailure constructor!"));
        }
Example #2
0
        static int _m_OnEnd(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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



                {
                    gen_to_be_invoked.OnEnd(  );



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


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



                {
                    bool gen_ret = gen_to_be_invoked.CanExecute(  );
                    LuaAPI.lua_pushboolean(L, gen_ret);



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