Esempio n. 1
0
 public Preset(sbyte presetId, sbyte symbolId, bool mount, PresetItem[] objects)
 {
     PresetId = presetId;
     SymbolId = symbolId;
     Mount = mount;
     Objects = objects;
 }
Esempio n. 2
0
 public virtual void Deserialize(BigEndianReader reader)
 {
     PresetId = reader.ReadSByte();
     SymbolId = reader.ReadSByte();
     Mount = reader.ReadBoolean();
     var limit = reader.ReadUShort();
     Objects = new PresetItem[limit];
     for (int i = 0; i < limit; i++)
     {
         Objects[i] = new PresetItem();
         Objects[i].Deserialize(reader);
     }
 }
 public override void Deserialize(BigEndianReader reader)
 {
     PresetId = reader.ReadSByte();
     PresetItem = new PresetItem();
     PresetItem.Deserialize(reader);
 }
 public InventoryPresetItemUpdateMessage(sbyte presetId, PresetItem presetItem)
 {
     PresetId = presetId;
     PresetItem = presetItem;
 }