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 _g_get_TimerShaft(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

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


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



                {
                    gen_to_be_invoked.Close(  );



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
        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!"));
        }