ace/Source/ACE.DatLoader/Entity/AttackCone.cs

33 lines
933 B
C#

using System.IO;
namespace ACE.DatLoader.Entity
{
public class AttackCone : IUnpackable
{
public uint PartIndex { get; set; }
// these Left and Right are technically Vec2D types
public float LeftX { get; private set; }
public float LeftY { get; private set; }
public float RightX { get; private set; }
public float RightY { get; private set; }
public float Radius { get; private set; }
public float Height { get; private set; }
public void Unpack(BinaryReader reader)
{
PartIndex = reader.ReadUInt32();
LeftX = reader.ReadSingle();
LeftY = reader.ReadSingle();
RightX = reader.ReadSingle();
RightY = reader.ReadSingle();
Radius = reader.ReadSingle();
Height = reader.ReadSingle();
}
}
}