mirror of
https://github.com/ACEmulator/ACE
synced 2026-08-17 12:26:06 -04:00
* ACE.DatLoader: XpTable updated * ACE.DatLoader physics and environment using new unpack pattern
26 lines
738 B
C#
26 lines
738 B
C#
using System;
|
|
using System.IO;
|
|
|
|
using ACE.Entity.Enum;
|
|
|
|
namespace ACE.DatLoader.Entity
|
|
{
|
|
public class BSPTree : IUnpackable
|
|
{
|
|
public BSPNode RootNode { get; private set; } = new BSPNode();
|
|
|
|
/// <summary>
|
|
/// You must use the Unpack(BinaryReader reader, BSPType treeType) method.
|
|
/// </summary>
|
|
/// <exception cref="NotSupportedException">You must use the Unpack(BinaryReader reader, BSPType treeType) method.</exception>
|
|
public void Unpack(BinaryReader reader)
|
|
{
|
|
throw new NotSupportedException();
|
|
}
|
|
|
|
public void Unpack(BinaryReader reader, BSPType treeType)
|
|
{
|
|
RootNode = BSPNode.ReadNode(reader, treeType);
|
|
}
|
|
}
|
|
}
|