2018-07-05 05:50:42 -07:00
|
|
|
using System.IO;
|
2019-04-28 01:30:45 -04:00
|
|
|
using ACE.Entity.Enum.Properties;
|
2018-07-05 05:50:42 -07:00
|
|
|
|
|
|
|
|
namespace ACE.DatLoader.Entity
|
|
|
|
|
{
|
|
|
|
|
public class SkillFormula : IUnpackable
|
|
|
|
|
{
|
|
|
|
|
public uint W;
|
|
|
|
|
public uint X;
|
|
|
|
|
public uint Y;
|
|
|
|
|
public uint Z;
|
|
|
|
|
public uint Attr1;
|
|
|
|
|
public uint Attr2;
|
|
|
|
|
|
|
|
|
|
public void Unpack(BinaryReader reader)
|
|
|
|
|
{
|
|
|
|
|
W = reader.ReadUInt32();
|
|
|
|
|
X = reader.ReadUInt32();
|
|
|
|
|
Y = reader.ReadUInt32();
|
|
|
|
|
Z = reader.ReadUInt32();
|
|
|
|
|
|
|
|
|
|
Attr1 = reader.ReadUInt32();
|
|
|
|
|
Attr2 = reader.ReadUInt32();
|
|
|
|
|
}
|
2019-04-28 01:30:45 -04:00
|
|
|
|
|
|
|
|
public SkillFormula() { }
|
|
|
|
|
|
|
|
|
|
public SkillFormula(PropertyAttribute attr1, PropertyAttribute attr2, uint divisor)
|
|
|
|
|
{
|
|
|
|
|
Attr1 = (uint)attr1;
|
|
|
|
|
Attr2 = (uint)attr2;
|
|
|
|
|
Z = divisor;
|
|
|
|
|
X = 1;
|
|
|
|
|
}
|
2018-07-05 05:50:42 -07:00
|
|
|
}
|
|
|
|
|
}
|