ace/Source/ACE.DatLoader/Entity/LightInfo.cs
gmriggs b215a34ce7
Improving DatLoader for third-party apps (#1092)
* Improving DatLoader for third-party apps

* Adding some missing filetypes (thanks OptimShi!)

* Adding more enums, using SmartArray

* Re-adding loadCell

* Reverting to UInt32
2018-11-22 01:33:17 -05:00

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();
}
}
}