static int _g_get_lIDToBSInfos(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); CentralServer.CS __cl_gen_to_be_invoked = (CentralServer.CS)translator.FastGetCSObj(L, 1); translator.Push(L, __cl_gen_to_be_invoked.lIDToBSInfos); } 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) { CentralServer.CS __cl_gen_ret = new CentralServer.CS(); 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 CentralServer.CS constructor!")); }
static int _m_LoadGoods(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); CentralServer.CS __cl_gen_to_be_invoked = (CentralServer.CS)translator.FastGetCSObj(L, 1); { __cl_gen_to_be_invoked.LoadGoods( ); 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); CentralServer.CS __cl_gen_to_be_invoked = (CentralServer.CS)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); CentralServer.CS __cl_gen_to_be_invoked = (CentralServer.CS)translator.FastGetCSObj(L, 1); { CentralServer.Options opts = (CentralServer.Options)translator.GetObject(L, 2, typeof(CentralServer.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); CentralServer.CS __cl_gen_to_be_invoked = (CentralServer.CS)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)); } }