using System.Collections.Generic; using System.IO; using ACE.DatLoader.Entity; namespace ACE.DatLoader.FileTypes { /// /// Class for reading the File 0x0E00000D from the portal.dat. /// Thanks alot Widgeon of Leafcull for his ACDataTools which helped understanding this structure. /// And thanks alot to Pea as well whos hard work surely helped in the creation of those Tools too. /// [DatFileType(DatFileType.ObjectHierarchy)] public class GeneratorTable : FileType { internal const uint FILE_ID = 0x0E00000D; public Generator Generators { get; } = new Generator(); /// /// This is just a shortcut to Generators.Items[0].Items /// public List PlayDayItems { get; private set; } = new List(); /// /// This is just a shortcut to Generators.Items[1].Items /// public List WeenieObjectsItems { get; private set; } = new List(); public override void Unpack(BinaryReader reader) { Id = reader.ReadUInt32(); Generators.Unpack(reader); PlayDayItems = Generators.Items[0].Items; WeenieObjectsItems = Generators.Items[1].Items; } } }