mirror of
https://github.com/ACEmulator/ACE
synced 2026-08-17 12:26:06 -04:00
* 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
37 lines
1.4 KiB
C#
37 lines
1.4 KiB
C#
using System.Collections.Generic;
|
|
using System.IO;
|
|
|
|
namespace ACE.DatLoader.Entity
|
|
{
|
|
public class TemplateCG : IUnpackable
|
|
{
|
|
public string Name { get; private set; }
|
|
public uint IconImage { get; private set; }
|
|
public uint Title { get; private set; }
|
|
public uint Strength { get; private set; }
|
|
public uint Endurance { get; private set; }
|
|
public uint Coordination { get; private set; }
|
|
public uint Quickness { get; private set; }
|
|
public uint Focus { get; private set; }
|
|
public uint Self { get; private set; }
|
|
public List<uint> NormalSkillsList { get; } = new List<uint>();
|
|
public List<uint> PrimarySkillsList { get; } = new List<uint>();
|
|
|
|
public void Unpack(BinaryReader reader)
|
|
{
|
|
Name = reader.ReadString();
|
|
IconImage = reader.ReadUInt32();
|
|
Title = reader.ReadUInt32();
|
|
// Attributes
|
|
Strength = reader.ReadUInt32();
|
|
Endurance = reader.ReadUInt32();
|
|
Coordination = reader.ReadUInt32();
|
|
Quickness = reader.ReadUInt32();
|
|
Focus = reader.ReadUInt32();
|
|
Self = reader.ReadUInt32();
|
|
|
|
NormalSkillsList.UnpackSmartArray(reader);
|
|
PrimarySkillsList.UnpackSmartArray(reader);
|
|
}
|
|
}
|
|
}
|