2017-06-17 15:23:31 -07:00
|
|
|
using System.Collections.Generic;
|
2018-02-05 11:17:57 -06:00
|
|
|
using System.IO;
|
2017-06-17 15:23:31 -07:00
|
|
|
|
|
|
|
|
namespace ACE.DatLoader.Entity
|
|
|
|
|
{
|
2018-02-05 11:17:57 -06:00
|
|
|
public class BuildInfo : IUnpackable
|
2017-06-17 15:23:31 -07:00
|
|
|
{
|
2018-02-05 11:17:57 -06:00
|
|
|
/// <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);
|
|
|
|
|
}
|
2017-06-17 15:23:31 -07:00
|
|
|
}
|
|
|
|
|
}
|