2018-01-23 04:02:39 -06:00
|
|
|
using System.IO;
|
2017-05-05 10:26:35 -04:00
|
|
|
|
|
|
|
|
namespace ACE.DatLoader.Entity
|
|
|
|
|
{
|
|
|
|
|
// TODO: refactor to merge with existing TextureMapOverride object
|
2018-01-23 04:02:39 -06:00
|
|
|
public class TextureMapChange : IUnpackable
|
2017-05-05 10:26:35 -04:00
|
|
|
{
|
2019-07-11 09:15:44 -05:00
|
|
|
public byte PartIndex { get; set; }
|
|
|
|
|
public uint OldTexture { get; set; }
|
|
|
|
|
public uint NewTexture { get; set; }
|
2018-01-23 04:02:39 -06:00
|
|
|
|
|
|
|
|
public void Unpack(BinaryReader reader)
|
|
|
|
|
{
|
|
|
|
|
PartIndex = reader.ReadByte();
|
|
|
|
|
OldTexture = reader.ReadAsDataIDOfKnownType(0x05000000);
|
|
|
|
|
NewTexture = reader.ReadAsDataIDOfKnownType(0x05000000);
|
|
|
|
|
}
|
2017-05-05 10:26:35 -04:00
|
|
|
}
|
|
|
|
|
}
|