2017-04-24 13:23:05 +02:00
|
|
|
using System.Collections.Generic;
|
2018-02-04 11:16:30 -06:00
|
|
|
using System.IO;
|
2017-04-24 13:23:05 +02:00
|
|
|
|
|
|
|
|
namespace ACE.DatLoader.Entity
|
|
|
|
|
{
|
2018-02-04 11:16:30 -06:00
|
|
|
public class Generator : IUnpackable
|
2017-04-24 13:23:05 +02:00
|
|
|
{
|
2018-02-04 11:16:30 -06:00
|
|
|
public string Name { get; private set; }
|
|
|
|
|
public uint Id { get; private set; }
|
|
|
|
|
public List<Generator> Items { get; } = new List<Generator>();
|
2017-04-24 13:23:05 +02:00
|
|
|
|
2018-02-04 11:16:30 -06:00
|
|
|
public void Unpack(BinaryReader reader)
|
2017-04-24 13:23:05 +02:00
|
|
|
{
|
2018-02-04 11:16:30 -06:00
|
|
|
Name = reader.ReadObfuscatedString();
|
|
|
|
|
reader.AlignBoundary();
|
2017-04-24 13:23:05 +02:00
|
|
|
|
2018-02-04 11:16:30 -06:00
|
|
|
Id = reader.ReadUInt32();
|
2017-04-24 13:23:05 +02:00
|
|
|
|
2018-02-04 11:16:30 -06:00
|
|
|
Items.Unpack(reader);
|
2017-04-24 13:23:05 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|