// Token: 0x060021FB RID: 8699 RVA: 0x000B83A8 File Offset: 0x000B67A8
        public void rebuildState()
        {
            if (this.items == null)
            {
                return;
            }
            SteamPacker.openWrite(0);
            SteamPacker.write(this.owner, this.group, this.items.getItemCount());
            for (byte b = 0; b < this.items.getItemCount(); b += 1)
            {
                ItemJar item = this.items.getItem(b);
                SteamPacker.write(item.x, item.y, item.rot, item.item.id, item.item.amount, item.item.quality, item.item.state);
            }
            if (this.isDisplay)
            {
                SteamPacker.write(this.displaySkin);
                SteamPacker.write(this.displayMythic);
                SteamPacker.write((!string.IsNullOrEmpty(this.displayTags)) ? this.displayTags : string.Empty);
                SteamPacker.write((!string.IsNullOrEmpty(this.displayDynamicProps)) ? this.displayDynamicProps : string.Empty);
                SteamPacker.write(this.rot_comp);
            }
            int size;

            byte[] state = SteamPacker.closeWrite(out size);
            BarricadeManager.updateState(base.transform, state, size);
        }
        // Token: 0x06002134 RID: 8500 RVA: 0x000B4C14 File Offset: 0x000B3014
        public void rebuildState()
        {
            Block block = new Block();

            block.write(this.owner, this.group);
            block.writeInt32(this.visualShirt);
            block.writeInt32(this.visualPants);
            block.writeInt32(this.visualHat);
            block.writeInt32(this.visualBackpack);
            block.writeInt32(this.visualVest);
            block.writeInt32(this.visualMask);
            block.writeInt32(this.visualGlasses);
            block.writeUInt16(this.clothes.shirt);
            block.writeByte(this.shirtQuality);
            block.writeUInt16(this.clothes.pants);
            block.writeByte(this.pantsQuality);
            block.writeUInt16(this.clothes.hat);
            block.writeByte(this.hatQuality);
            block.writeUInt16(this.clothes.backpack);
            block.writeByte(this.backpackQuality);
            block.writeUInt16(this.clothes.vest);
            block.writeByte(this.vestQuality);
            block.writeUInt16(this.clothes.mask);
            block.writeByte(this.maskQuality);
            block.writeUInt16(this.clothes.glasses);
            block.writeByte(this.glassesQuality);
            block.writeByteArray(this.shirtState);
            block.writeByteArray(this.pantsState);
            block.writeByteArray(this.hatState);
            block.writeByteArray(this.backpackState);
            block.writeByteArray(this.vestState);
            block.writeByteArray(this.maskState);
            block.writeByteArray(this.glassesState);
            block.writeByte(this.pose_comp);
            int size;

            byte[] bytes = block.getBytes(out size);
            BarricadeManager.updateState(base.transform, bytes, size);
            this.updated = Time.realtimeSinceStartup;
        }