Exemplo n.º 1
0
    public static SCarryShopUnLock_SC ParsePackage(byte[] dataBuffer)
    {
        SCarryShopUnLock_SC sCarryShopUnLock_SC = new SCarryShopUnLock_SC();
        int offset = 0;

        offset += PackageHelper.ReadData(dataBuffer.Skip(offset).ToArray(), out sCarryShopUnLock_SC.byIndex);
        offset += PackageHelper.ReadData(dataBuffer.Skip(offset).ToArray(), out sCarryShopUnLock_SC.bySucess);
        sCarryShopUnLock_SC.dCarryShopUint = DCarryShopUint.ParsePackage(dataBuffer, ref offset);
        return(sCarryShopUnLock_SC);
    }
Exemplo n.º 2
0
    public static SCarryShopOpenUI_SC ParsePackage(byte[] dataBuffer)
    {
        SCarryShopOpenUI_SC sCarryShopOpenUI_SC = new SCarryShopOpenUI_SC();
        int offset = 0;

        offset += PackageHelper.ReadData(dataBuffer.Skip(offset).ToArray(), out sCarryShopOpenUI_SC.TimeInterval);
        offset += PackageHelper.ReadData(dataBuffer.Skip(offset).ToArray(), out sCarryShopOpenUI_SC.byUintNum);
        sCarryShopOpenUI_SC.shopUintMap = new List <DCarryShopUint> ();
        for (int i = 0; i < sCarryShopOpenUI_SC.byUintNum; i++)
        {
            DCarryShopUint dCarryShopUint = DCarryShopUint.ParsePackage(dataBuffer, ref offset);
            sCarryShopOpenUI_SC.shopUintMap.Add(dCarryShopUint);
        }
        return(sCarryShopOpenUI_SC);
    }