cache: add blocking mask to object definition

This commit is contained in:
Adam
2020-02-16 19:13:40 -05:00
parent 5fc4e1bd69
commit 2ee6c9a7c0
3 changed files with 7 additions and 1 deletions

View File

@@ -55,6 +55,7 @@ public class ObjectDefinition
private String[] actions = new String[5];
private int interactType = 2;
private int mapSceneID = -1;
private int blockingMask = 0;
private short[] recolorToReplace;
private boolean shadow = true;
private int modelSizeX = 128;

View File

@@ -220,7 +220,7 @@ public class ObjectLoader
}
else if (opcode == 69)
{
is.readByte();
def.setBlockingMask(is.readByte());
}
else if (opcode == 70)
{

View File

@@ -146,6 +146,11 @@ public class ObjectSaver
out.writeByte(68);
out.writeShort(obj.getMapSceneID());
}
if (obj.getBlockingMask() != 0)
{
out.writeByte(69);
out.writeByte(obj.getBlockingMask());
}
out.writeByte(70);
out.writeShort(obj.getOffsetX());
out.writeByte(71);