// 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);
        }
Exemplo n.º 2
0
 public void getPacket(ESteamPacket type, int index, out int size, out byte[] packet)
 {
     packet    = SteamPacker.closeWrite(out size);
     packet[0] = (byte)type;
     packet[1] = (byte)index;
 }