Example #1
0
 public override void Serialize(ICustomDataWriter writer)
 {
     writer.WriteVarInt(this.ObjectUID);
     writer.WriteFloat(this.BonusMin);
     writer.WriteFloat(this.BonusMax);
     writer.WriteShort(this.RunesId.Length);
     foreach (short item in this.RunesId)
     {
         writer.WriteVarShort(item);
     }
     writer.WriteShort(this.RunesQty.Length);
     foreach (int item in this.RunesQty)
     {
         writer.WriteVarInt(item);
     }
 }
 public override void Serialize(ICustomDataWriter writer)
 {
     writer.WriteShort(this.Quantities.Length);
     foreach (int item in this.Quantities)
     {
         writer.WriteVarInt(item);
     }
     writer.WriteShort(this.Types.Length);
     foreach (int item in this.Types)
     {
         writer.WriteVarInt(item);
     }
     writer.WriteFloat(this.TaxPercentage);
     writer.WriteFloat(this.TaxModificationPercentage);
     writer.WriteByte(this.MaxItemLevel);
     writer.WriteVarInt(this.MaxItemPerAccount);
     writer.WriteInt(this.NpcContextualId);
     writer.WriteVarShort(this.UnsoldDelay);
 }