Наследование: global::ProtoBuf.IExtensible
Пример #1
0
 private void HandleReadMail(NodeMessage msg, int handle, uint seq)
 {
     GameFrameworkMessage.NodeMessageWithGuid readMailMsg = msg.m_NodeHeader as GameFrameworkMessage.NodeMessageWithGuid;
     if (null != readMailMsg)
     {
         GameFrameworkMessage.Msg_CL_ReadMail protoData = msg.m_ProtoData as GameFrameworkMessage.Msg_CL_ReadMail;
         if (null != protoData)
         {
             m_GlobalProcessThread.QueueAction(m_GlobalProcessThread.ReadMail, readMailMsg.m_Guid, protoData.m_MailGuid);
         }
     }
 }
 internal void ReadMail(ulong mailGuid)
 {
     try {
         NodeMessage msg = new NodeMessage(LobbyMessageDefine.Msg_CL_ReadMail);
         msg.SetHeaderWithGuid(m_Guid);
         Msg_CL_ReadMail protoData = new Msg_CL_ReadMail();
         protoData.m_MailGuid = mailGuid;
         msg.m_ProtoData = protoData;
         SendMessage(msg);
     } catch (Exception ex) {
         LogSystem.Error("Exception:{0}\n{1}", ex.Message, ex.StackTrace);
     }
 }