mirror of
https://github.com/ACEmulator/ACE
synced 2026-08-17 12:26:06 -04:00
33 lines
933 B
C#
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();
|
|
}
|
|
}
|
|
}
|