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

24 lines
727 B
C#

using System.IO;
namespace ACE.DatLoader.Entity
{
public class AmbientSoundDesc : IUnpackable
{
public uint SType { get; private set; }
public float Volume { get; private set; }
public float BaseChance { get; private set; }
public float MinRate { get; private set; }
public float MaxRate { get; private set; }
public void Unpack(BinaryReader reader)
{
SType = reader.ReadUInt32();
Volume = reader.ReadSingle();
BaseChance = reader.ReadSingle();
MinRate = reader.ReadSingle();
MaxRate = reader.ReadSingle();
}
public bool IsContinuous => (BaseChance == 0);
}
}