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

                BehaviorDesigner.Runtime.Tasks.RandomSelector gen_to_be_invoked = (BehaviorDesigner.Runtime.Tasks.RandomSelector)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.useSeed = LuaAPI.lua_toboolean(L, 2);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
        static int _g_get_seed(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                BehaviorDesigner.Runtime.Tasks.RandomSelector gen_to_be_invoked = (BehaviorDesigner.Runtime.Tasks.RandomSelector)translator.FastGetCSObj(L, 1);
                LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.seed);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(1);
        }
        static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    BehaviorDesigner.Runtime.Tasks.RandomSelector gen_ret = new BehaviorDesigner.Runtime.Tasks.RandomSelector();
                    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.RandomSelector constructor!"));
        }
        static int _m_OnAwake(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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



                {
                    gen_to_be_invoked.OnAwake(  );



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


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



                {
                    int _childIndex = LuaAPI.xlua_tointeger(L, 2);

                    gen_to_be_invoked.OnConditionalAbort(_childIndex);



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


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



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

                    gen_to_be_invoked.OnChildExecuted(_childStatus);



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