示例#1
0
 public virtual void Serialize(IDataWriter writer)
 {
     this.restrictions.Serialize(writer);
     writer.WriteBoolean(this.sex);
     writer.WriteShort((short)((int)this.options.Length));
     HumanOption[] humanOptionArray = this.options;
     for (int i = 0; i < (int)humanOptionArray.Length; i++)
     {
         HumanOption humanOption = humanOptionArray[i];
         writer.WriteShort(humanOption.TypeId);
         humanOption.Serialize(writer);
     }
 }
示例#2
0
 public override void Serialize(IDataWriter writer)
 {
     base.Serialize(writer);
     writer.WriteSByte(this.sellType);
     writer.WriteShort((short)((int)this.options.Length));
     HumanOption[] humanOptionArray = this.options;
     for (int i = 0; i < (int)humanOptionArray.Length; i++)
     {
         HumanOption humanOption = humanOptionArray[i];
         writer.WriteShort(humanOption.TypeId);
         humanOption.Serialize(writer);
     }
 }