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
19 lines
596 B
C#
19 lines
596 B
C#
using System.IO;
|
|
|
|
namespace ACE.DatLoader.Entity
|
|
{
|
|
// TODO: refactor to merge with existing TextureMapOverride object
|
|
public class TextureMapChange : IUnpackable
|
|
{
|
|
public byte PartIndex { get; private set; }
|
|
public uint OldTexture { get; private set; }
|
|
public uint NewTexture { get; private set; }
|
|
|
|
public void Unpack(BinaryReader reader)
|
|
{
|
|
PartIndex = reader.ReadByte();
|
|
OldTexture = reader.ReadAsDataIDOfKnownType(0x05000000);
|
|
NewTexture = reader.ReadAsDataIDOfKnownType(0x05000000);
|
|
}
|
|
}
|
|
}
|