ace/Source/ACE.DatLoader/Entity/DayGroup.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

23 lines
687 B
C#

using System.Collections.Generic;
using System.IO;
namespace ACE.DatLoader.Entity
{
public class DayGroup : IUnpackable
{
public float ChanceOfOccur { get; private set; }
public string DayName { get; private set; }
public List<SkyObject> SkyObjects { get; } = new List<SkyObject>();
public List<SkyTimeOfDay> SkyTime { get; } = new List<SkyTimeOfDay>();
public void Unpack(BinaryReader reader)
{
ChanceOfOccur = reader.ReadSingle();
DayName = reader.ReadPString();
reader.AlignBoundary();
SkyObjects.Unpack(reader);
SkyTime.Unpack(reader);
}
}
}