mirror of
https://github.com/ACEmulator/ACE
synced 2026-08-17 12:26:06 -04:00
* ACE.DatLoader.Tests fix for Animation. Also includes some ACE.Entity.Position replacements with ACE.DatLoader.Entity.Frame * ACE.DatLoader Scene converted Also made all the ReadFromDat code more generic/copyable * ACE.DatLoader Palette converted * ACE.DatLoader: PaletteSet converted * ACE.DatLoader: CombatManeuverTable converted * ACE.DatLoader PhysicsScriptTable converted * ACE.DatLoader SpellComponentTable converted * ACE.DatLoader misc cleanups * ACE.DatLoader Surface converted * ACE.DatLoader much more progress
30 lines
1 KiB
C#
30 lines
1 KiB
C#
using System.IO;
|
|
|
|
namespace ACE.DatLoader.Entity
|
|
{
|
|
public class SpellComponentBase : IUnpackable
|
|
{
|
|
public string Name { get; private set; }
|
|
public uint Category { get; private set; }
|
|
public uint Icon { get; private set; }
|
|
public uint Type { get; private set; }
|
|
public uint Gesture { get; private set; }
|
|
public float Time { get; private set; }
|
|
public string Text { get; private set; }
|
|
public float CDM { get; private set; } // Unsure what this is
|
|
|
|
public void Unpack(BinaryReader reader)
|
|
{
|
|
Name = reader.ReadObfuscatedString();
|
|
reader.AlignBoundary();
|
|
Category = reader.ReadUInt32();
|
|
Icon = reader.ReadUInt32();
|
|
Type = reader.ReadUInt32();
|
|
Gesture = reader.ReadUInt32();
|
|
Time = reader.ReadSingle();
|
|
Text = reader.ReadObfuscatedString();
|
|
reader.AlignBoundary();
|
|
CDM = reader.ReadSingle();
|
|
}
|
|
}
|
|
}
|