Example #1
0
    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);
    }
Example #2
0
    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);
    }