示例#1
0
        public override void Deserialize(ICustomDataReader reader)
        {
            base.Deserialize(reader);
            int ItemsLen = reader.ReadShort();

            Items = new ItemForPreset[ItemsLen];
            for (int i = 0; i < ItemsLen; i++)
            {
                this.Items[i] = new ItemForPreset();
                this.Items[i].Deserialize(reader);
            }
            this.MountEquipped = reader.ReadBoolean();
            this.Look          = new EntityLook();
            this.Look.Deserialize(reader);
        }
 public override void Deserialize(ICustomDataReader reader)
 {
     this.PresetId   = reader.ReadShort();
     this.PresetItem = new ItemForPreset();
     this.PresetItem.Deserialize(reader);
 }
 public ItemForPresetUpdateMessage InitItemForPresetUpdateMessage(short PresetId, ItemForPreset PresetItem)
 {
     this.PresetId   = PresetId;
     this.PresetItem = PresetItem;
     return(this);
 }