ace/Source/ACE.DatLoader/Entity/BSPTree.cs
Mag-nus bacd751d8a
ACE.DatLoader more IUnpackable work (#610)
* ACE.DatLoader: XpTable updated

* ACE.DatLoader physics and environment using new unpack pattern
2018-01-31 21:09:08 -06:00

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