Example #1
0
    private void OnUnloadItem(SocketModel model)
    {
        RespUnloadItem resp = SerializeUtil.Deserialize <RespUnloadItem>(model.message);

        InventoryWnd invWnd = WindowManager.instance.Get <InventoryWnd>();

        invWnd.UpdateEquip(resp.equip);
        invWnd.UpdateInv(resp.inv);

        WindowManager.instance.Close <InventoryEquipWnd>();
    }
Example #2
0
    // 删除物品的应答
    private void OnDeleteItem(SocketModel model)
    {
        RespDeleteItem resp   = SerializeUtil.Deserialize <RespDeleteItem>(model.message);
        InventoryWnd   invWnd = WindowManager.instance.Get <InventoryWnd>();

        if (resp.deleteType == DeleteType.Equip)
        {
            invWnd.UpdateEquip(resp.dto);
        }
        else
        {
            invWnd.UpdateInv(resp.dto);
        }

        WindowManager.instance.Close <InventoryEquipWnd>();
    }