ace/Source/ACE.DatLoader/Entity/HairStyleCG.cs
Mag-nus 6fe177a600
ACE.DatLoader refactoring (#594)
* Change >> 1) & 1 to & 2

Cosmetic change pointed out by Rawaho.

* Better fix of the Portal Flags in the dat code

* ACE.DatLoader refactoring

This new code format uses extention methods to re-use code. It allows decouples object unpacking from DatReader and reduces the dependancy to a simple BinaryReader.

* Forgot to remove the temp StarterAreas code from the transition

* Some files were ignored, not sure why. This should fix
2018-01-23 04:02:39 -06:00

21 lines
585 B
C#

using System.IO;
namespace ACE.DatLoader.Entity
{
public class HairStyleCG : IUnpackable
{
public uint IconImage { get; private set; }
public bool Bald { get; private set; }
public uint AlternateSetup { get; private set; }
public ObjDesc ObjDesc { get; } = new ObjDesc();
public void Unpack(BinaryReader reader)
{
IconImage = reader.ReadUInt32();
Bald = (reader.ReadByte() == 1);
AlternateSetup = reader.ReadUInt32();
ObjDesc.Unpack(reader);
}
}
}