static int _m_sendRequest_xlua_st_(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); { Request request = (Request)translator.GetObject(L, 1, typeof(Request)); NetWorkClient.sendRequest(request); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
/// <summary> /// 发送数据给服务器 /// </summary> /// <param name="request"></param> protected static void SendMessage(Request request) { Debug.Log("发送消息:" + request); NetWorkClient.sendRequest(request); }