static int _g_get_state(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); GateServer.GS __cl_gen_to_be_invoked = (GateServer.GS)translator.FastGetCSObj(L, 1); translator.Push(L, __cl_gen_to_be_invoked.state); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(1); }
static int _s_set_state(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); GateServer.GS __cl_gen_to_be_invoked = (GateServer.GS)translator.FastGetCSObj(L, 1); GateServer.GSConfig.State __cl_gen_value; translator.Get(L, 2, out __cl_gen_value); __cl_gen_to_be_invoked.state = __cl_gen_value; } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(0); }
static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 1) { GateServer.GS __cl_gen_ret = new GateServer.GS(); translator.Push(L, __cl_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 GateServer.GS constructor!")); }
static int _m_ReloadDefs(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); GateServer.GS __cl_gen_to_be_invoked = (GateServer.GS)translator.FastGetCSObj(L, 1); { __cl_gen_to_be_invoked.ReloadDefs( ); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_Start(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); GateServer.GS __cl_gen_to_be_invoked = (GateServer.GS)translator.FastGetCSObj(L, 1); { Shared.ErrorCode __cl_gen_ret = __cl_gen_to_be_invoked.Start( ); translator.Push(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_Initialize(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); GateServer.GS __cl_gen_to_be_invoked = (GateServer.GS)translator.FastGetCSObj(L, 1); { GateServer.Options opts = (GateServer.Options)translator.GetObject(L, 2, typeof(GateServer.Options)); Shared.ErrorCode __cl_gen_ret = __cl_gen_to_be_invoked.Initialize(opts); translator.Push(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_Update(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); GateServer.GS __cl_gen_to_be_invoked = (GateServer.GS)translator.FastGetCSObj(L, 1); { long elapsed = LuaAPI.lua_toint64(L, 2); long dt = LuaAPI.lua_toint64(L, 3); __cl_gen_to_be_invoked.Update(elapsed, dt); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }