Exemple #1
0
 public override void Serialize(IDataWriter writer)
 {
     base.Serialize(writer);
     writer.WriteVarShort((int)this.objectGID);
     writer.WriteShort((short)((int)this.effects.Length));
     ObjectEffect[] objectEffectArray = this.effects;
     for (int i = 0; i < (int)objectEffectArray.Length; i++)
     {
         ObjectEffect objectEffect = objectEffectArray[i];
         writer.WriteShort(objectEffect.TypeId);
         objectEffect.Serialize(writer);
     }
 }
 public virtual void Serialize(IDataWriter writer)
 {
     writer.WriteVarInt((int)this.objectUID);
     writer.WriteShort((short)((int)this.effects.Length));
     ObjectEffect[] objectEffectArray = this.effects;
     for (int i = 0; i < (int)objectEffectArray.Length; i++)
     {
         ObjectEffect objectEffect = objectEffectArray[i];
         writer.WriteShort(objectEffect.TypeId);
         objectEffect.Serialize(writer);
     }
     writer.WriteShort((short)((int)this.prices.Length));
     int[] numArray = this.prices;
     for (int j = 0; j < (int)numArray.Length; j++)
     {
         writer.WriteInt(numArray[j]);
     }
 }