ace/Source/ACE.DatLoader/Entity/BuildInfo.cs

40 lines
949 B
C#
Raw Permalink Normal View History

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