public byte[] write()
        {
            var param1 = new ByteArray(ID);

            param1.writeBoolean(this.buyable);
            param1.writeDouble(this.counterValue);
            param1.writeShort(5539);
            param1.writeBoolean(this.blocked);
            param1.writeUTF(this.var_1474);
            param1.writeBoolean(this.available);
            param1.writeBoolean(this.activatable);
            param1.writeShort(this.counterStyle);
            param1.write(toolTipItemBar.write());
            param1.writeShort(12379);
            param1.write(toolTipSlotBar.write());
            param1.writeDouble(this.maxCounterValue);
            param1.writeBoolean(this.selected);
            param1.writeUTF(this.iconLootId);
            param1.writeBoolean(this.visible);
            return(param1.Message.ToArray());
        }
        public static byte[] write(int assetId, short state, bool activatable, ClientUITooltipsCommand toolTip, class_h45 param5)
        {
            ByteArray param1 = new ByteArray(ID);

            param1.write(param5.write());
            param1.writeShort(state);
            param1.writeInt(assetId << 6 | assetId >> 26);
            param1.writeBoolean(activatable);
            param1.write(toolTip.write());
            param1.writeShort(-10810);
            param1.writeShort(19301);
            return(param1.ToByteArray());
        }