static int _m_GetConnector(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); JW.Framework.Network.NetworkService __cl_gen_to_be_invoked = (JW.Framework.Network.NetworkService)translator.FastGetCSObj(L, 1); { string gateIp = LuaAPI.lua_tostring(L, 2); int gatePort = LuaAPI.xlua_tointeger(L, 3); string gateQueryRoute = LuaAPI.lua_tostring(L, 4); JW.Framework.Network.NetConnector __cl_gen_ret = __cl_gen_to_be_invoked.GetConnector(gateIp, gatePort, gateQueryRoute); translator.Push(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _s_set_ConnectHook(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); JW.Framework.Network.NetConnector __cl_gen_to_be_invoked = (JW.Framework.Network.NetConnector)translator.FastGetCSObj(L, 1); __cl_gen_to_be_invoked.ConnectHook = translator.GetDelegate <System.Action <int> >(L, 2); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(0); }
static int _g_get_CurSessionState(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); JW.Framework.Network.NetConnector __cl_gen_to_be_invoked = (JW.Framework.Network.NetConnector)translator.FastGetCSObj(L, 1); translator.Push(L, __cl_gen_to_be_invoked.CurSessionState); } 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) { JW.Framework.Network.NetConnector __cl_gen_ret = new JW.Framework.Network.NetConnector(); 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 JW.Framework.Network.NetConnector constructor!")); }
static int _m_CloseConnect(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); JW.Framework.Network.NetConnector __cl_gen_to_be_invoked = (JW.Framework.Network.NetConnector)translator.FastGetCSObj(L, 1); { __cl_gen_to_be_invoked.CloseConnect( ); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_DestroyConnector(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); JW.Framework.Network.NetworkService __cl_gen_to_be_invoked = (JW.Framework.Network.NetworkService)translator.FastGetCSObj(L, 1); { JW.Framework.Network.NetConnector con = (JW.Framework.Network.NetConnector)translator.GetObject(L, 2, typeof(JW.Framework.Network.NetConnector)); __cl_gen_to_be_invoked.DestroyConnector(con); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_LogicUpdate(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); JW.Framework.Network.NetConnector __cl_gen_to_be_invoked = (JW.Framework.Network.NetConnector)translator.FastGetCSObj(L, 1); { float deltaTime = (float)LuaAPI.lua_tonumber(L, 2); __cl_gen_to_be_invoked.LogicUpdate(deltaTime); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_SendJsonMsg(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); JW.Framework.Network.NetConnector __cl_gen_to_be_invoked = (JW.Framework.Network.NetConnector)translator.FastGetCSObj(L, 1); { string route = LuaAPI.lua_tostring(L, 2); SimpleJson.JsonObject data = (SimpleJson.JsonObject)translator.GetObject(L, 3, typeof(SimpleJson.JsonObject)); __cl_gen_to_be_invoked.SendJsonMsg(route, data); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_SendMsg(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); JW.Framework.Network.NetConnector __cl_gen_to_be_invoked = (JW.Framework.Network.NetConnector)translator.FastGetCSObj(L, 1); { string route = LuaAPI.lua_tostring(L, 2); string msg = LuaAPI.lua_tostring(L, 3); __cl_gen_to_be_invoked.SendMsg(route, msg); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }