mirror of
https://github.com/ACEmulator/ACE
synced 2026-08-17 12:26:06 -04:00
* ACE.DatLoader: SpellTable converted to IUnpackable * ACE.DatLoader CellLandblock converted * ACE.DatLoader IUnpackable work completed
39 lines
949 B
C#
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);
|
|
}
|
|
}
|
|
}
|