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
23 lines
601 B
C#
23 lines
601 B
C#
using System.IO;
|
|
using System.Numerics;
|
|
|
|
namespace ACE.DatLoader.Entity
|
|
{
|
|
public class CylSphere : IUnpackable
|
|
{
|
|
public Vector3 Origin { get; private set; }
|
|
public float Radius { get; private set; }
|
|
public float Height { get; private set; }
|
|
|
|
public void Unpack(BinaryReader reader)
|
|
{
|
|
var x = reader.ReadSingle();
|
|
var y = reader.ReadSingle();
|
|
var z = reader.ReadSingle();
|
|
Origin = new Vector3(x, y, z);
|
|
|
|
Radius = reader.ReadSingle();
|
|
Height = reader.ReadSingle();
|
|
}
|
|
}
|
|
}
|