public void TryUnloadEquip(int tarPos) { if (GTItemHelper.CheckBagFull(1, EBagType.ITEM)) { return; } ReqUnloadEquip req = new ReqUnloadEquip(); req.TarPos = tarPos; NetworkManager.Instance.Send <ReqUnloadEquip>(MessageID.MSG_REQ_UNLOAD_EQUIP, req); }
private void OnReq_UnloadEquip(MessageRecv obj) { System.IO.MemoryStream ms = new System.IO.MemoryStream(obj.Data); ReqUnloadEquip req = Serializer.Deserialize <ReqUnloadEquip>(ms); AckUnloadEquip ack = new AckUnloadEquip(); ack.TarPos = req.TarPos; ack.NewPos = GTDataManager.Instance.GetNewPos(EBagType.ITEM); NetworkManager.Instance.Send(MessageID.MSG_ACK_UNLOAD_EQUIP, ack, 0, 0); }