using System.Collections.Generic;
using System.IO;
namespace ACE.DatLoader.Entity
{
public class BuildInfo : IUnpackable
{
///
/// 0x01 or 0x02 model of the building
///
public uint ModelId { get; set; }
///
/// specific @loc of the model
///
public Frame Frame { get; } = new Frame();
///
/// unsure what this is used for
///
public uint NumLeaves { get; set; }
///
/// portals are things like doors, windows, etc.
///
public List Portals { get; } = new List();
public void Unpack(BinaryReader reader)
{
ModelId = reader.ReadUInt32();
Frame.Unpack(reader);
NumLeaves = reader.ReadUInt32();
Portals.Unpack(reader);
}
}
}