//! send data to the server private void SendData() { if (m_statDateList.Count <= 0) { return; } sg.C2GS_Statistics_Client_Req req = new sg.C2GS_Statistics_Client_Req(); req.requestTime = HelpUtil.CurrTimeStamp(); foreach (StatData data in m_statDateList) { req.clientAction.Add(data.ToString()); //m_statDateListResend.Add(data); } m_statDateList.Clear(); Packet pak = new Packet(); pak.m_object = req; pak.m_packetType = PacketOpcode.C2GS_STATISTICS_CLIENT_REQ; //Globals.Instance.MGSNetManager.Send(pak); }
public StatData(string _data, StatType _type) { m_data = _data; m_type = _type; m_tickTime = HelpUtil.CurrTimeStamp(); }