mirror of
https://github.com/ACEmulator/ACE
synced 2026-08-17 12:26:06 -04:00
* Improving DatLoader for third-party apps * Adding some missing filetypes (thanks OptimShi!) * Adding more enums, using SmartArray * Re-adding loadCell * Reverting to UInt32
23 lines
782 B
C#
23 lines
782 B
C#
using System.IO;
|
|
|
|
namespace ACE.DatLoader.Entity
|
|
{
|
|
public class LightInfo : IUnpackable
|
|
{
|
|
public Frame ViewerSpaceLocation { get; } = new Frame();
|
|
public uint Color { get; private set; } // _RGB Color. Red is bytes 3-4, Green is bytes 5-6, Blue is bytes 7-8. Bytes 1-2 are always FF (?)
|
|
public float Intensity { get; private set; }
|
|
public float Falloff { get; private set; }
|
|
public float ConeAngle { get; private set; }
|
|
|
|
public void Unpack(BinaryReader reader)
|
|
{
|
|
ViewerSpaceLocation.Unpack(reader);
|
|
|
|
Color = reader.ReadUInt32();
|
|
Intensity = reader.ReadSingle();
|
|
Falloff = reader.ReadSingle();
|
|
ConeAngle = reader.ReadSingle();
|
|
}
|
|
}
|
|
}
|