ace/Source/ACE.DatLoader/Entity/BuildInfo.cs
Mag-nus a51a566199
ACE.DatLoader IUnpackable work completed (#621)
* ACE.DatLoader: SpellTable converted to IUnpackable

* ACE.DatLoader CellLandblock converted

* ACE.DatLoader IUnpackable work completed
2018-02-05 11:17:57 -06:00

39 lines
949 B
C#

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);
}
}
}