예제 #1
0
    public void TrySortBag(EBagType bagType)
    {
        ReqSortBag req = new ReqSortBag();

        req.BagType = (int)bagType;
        NetworkManager.Instance.Send <ReqSortBag>(MessageID.MSG_REQ_SORTBAG, req);
    }
예제 #2
0
    private void OnReq_SortBag(MessageRecv obj)
    {
        System.IO.MemoryStream ms  = new System.IO.MemoryStream(obj.Data);
        ReqSortBag             req = Serializer.Deserialize <ReqSortBag>(ms);

        AckSortBag ack = new AckSortBag();

        ack.BagType = req.BagType;
        NetworkManager.Instance.Send(MessageID.MSG_ACK_SORTBAG, ack, 0, 0);
    }