ace/Source/ACE.DatLoader/Entity/TimeOfDay.cs
Mag-nus e5fb929f39
ACE.DatLoader RegionDesc updated to the new format w/bug fixes (#607)
* ACE.DatLoader RegionDesc updated to the new format w/bug fixes

* Missing file
2018-01-28 13:41:46 -06:00

19 lines
496 B
C#

using System.IO;
namespace ACE.DatLoader.Entity
{
public class TimeOfDay : IUnpackable
{
public float Start { get; private set; }
public bool IsNight { get; private set; }
public string Name { get; private set; }
public void Unpack(BinaryReader reader)
{
Start = reader.ReadSingle();
IsNight = (reader.ReadUInt32() == 1);
Name = reader.ReadPString();
reader.AlignBoundary();
}
}
}