Inheritance: global::ProtoBuf.IExtensible
 internal void DiscardItem(ulong itemGuid)
 {
     try {
         NodeMessage msg = new NodeMessage(LobbyMessageDefine.Msg_CL_DiscardItem);
         msg.SetHeaderWithGuid(m_Guid);
         Msg_CL_DiscardItem protoData = new Msg_CL_DiscardItem();
         protoData.ItemGuid = itemGuid;
         msg.m_ProtoData = protoData;
         SendMessage(msg);
     } catch (Exception ex) {
         LogSystem.Error("Exception:{0}\n{1}", ex.Message, ex.StackTrace);
     }
 }
Exemple #2
0
 private void HandleDiscardItem(NodeMessage msg, int handle, uint seq)
 {
     GameFrameworkMessage.NodeMessageWithGuid nodeMsg = msg.m_NodeHeader as GameFrameworkMessage.NodeMessageWithGuid;
     if (null != nodeMsg)
     {
         GameFrameworkMessage.Msg_CL_DiscardItem protoData = msg.m_ProtoData as GameFrameworkMessage.Msg_CL_DiscardItem;
         if (null != protoData)
         {
             UserThread userThread = m_UserProcessScheduler.GetUserThread(nodeMsg.m_Guid);
             if (null != userThread)
             {
                 userThread.QueueAction(userThread.DiscardItem, nodeMsg.m_Guid, protoData);
             }
         }
     }
 }
        internal void DiscardItem(ulong guid, Msg_CL_DiscardItem msg)
        {
            UserInfo userInfo = GetUserInfo(guid);
            if (null != userInfo) {

                SyncItems(guid);
            }
        }