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


                Casinos.TimerShaft gen_to_be_invoked = (Casinos.TimerShaft)translator.FastGetCSObj(L, 1);



                {
                    Casinos.EbTimeEvent _time_event = (Casinos.EbTimeEvent)translator.GetObject(L, 2, typeof(Casinos.EbTimeEvent));
                    ulong _expires = LuaAPI.lua_touint64(L, 3);

                    int gen_ret = gen_to_be_invoked.ModTimer(_time_event, _expires);
                    LuaAPI.xlua_pushinteger(L, gen_ret);



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


                Casinos.TimerShaft gen_to_be_invoked = (Casinos.TimerShaft)translator.FastGetCSObj(L, 1);



                {
                    ulong                _tm        = LuaAPI.lua_touint64(L, 2);
                    XLua.LuaTable        _lua_table = (XLua.LuaTable)translator.GetObject(L, 3, typeof(XLua.LuaTable));
                    Casinos.DelegateLua2 _cb        = translator.GetDelegate <Casinos.DelegateLua2>(L, 4);

                    Casinos.EbTimer gen_ret = gen_to_be_invoked.RegisterTimer(_tm, _lua_table, _cb);
                    translator.Push(L, gen_ret);



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

                Casinos.TimerShaft gen_to_be_invoked = (Casinos.TimerShaft)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.mLastJeffies = LuaAPI.lua_touint64(L, 2);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
        static int _s_set_mWheel5(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                Casinos.TimerShaft gen_to_be_invoked = (Casinos.TimerShaft)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.mWheel5 = (Casinos.EbTimeWheel)translator.GetObject(L, 2, typeof(Casinos.EbTimeWheel));
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
        static int _g_get_mWheel5(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                Casinos.TimerShaft gen_to_be_invoked = (Casinos.TimerShaft)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.mWheel5);
            } 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)
                {
                    Casinos.TimerShaft gen_ret = new Casinos.TimerShaft();
                    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 Casinos.TimerShaft constructor!"));
        }
        static int _m_Destroy(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                Casinos.TimerShaft gen_to_be_invoked = (Casinos.TimerShaft)translator.FastGetCSObj(L, 1);



                {
                    gen_to_be_invoked.Destroy(  );



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
Exemplo n.º 8
0
        static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 5 && translator.Assignable <Casinos.TimerShaft>(L, 2) && (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) || LuaAPI.lua_isuint64(L, 3)) && (LuaAPI.lua_isnil(L, 4) || LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TTABLE) && translator.Assignable <Casinos.DelegateLua2>(L, 5))
                {
                    Casinos.TimerShaft _timer_shaft = (Casinos.TimerShaft)translator.GetObject(L, 2, typeof(Casinos.TimerShaft));
                    ulong                _tm        = LuaAPI.lua_touint64(L, 3);
                    XLua.LuaTable        _lua_table = (XLua.LuaTable)translator.GetObject(L, 4, typeof(XLua.LuaTable));
                    Casinos.DelegateLua2 _cb        = translator.GetDelegate <Casinos.DelegateLua2>(L, 5);

                    Casinos.EbTimer gen_ret = new Casinos.EbTimer(_timer_shaft, _tm, _lua_table, _cb);
                    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 Casinos.EbTimer constructor!"));
        }
        static int _m_GetTimeJeffies(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                Casinos.TimerShaft gen_to_be_invoked = (Casinos.TimerShaft)translator.FastGetCSObj(L, 1);



                {
                    ulong gen_ret = gen_to_be_invoked.GetTimeJeffies(  );
                    LuaAPI.lua_pushuint64(L, gen_ret);



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


                Casinos.TimerShaft gen_to_be_invoked = (Casinos.TimerShaft)translator.FastGetCSObj(L, 1);



                {
                    Casinos.EbTimeEvent _time_event = (Casinos.EbTimeEvent)translator.GetObject(L, 2, typeof(Casinos.EbTimeEvent));

                    gen_to_be_invoked.AddTimer(_time_event);



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