cache: add blocking mask to object definition
This commit is contained in:
@@ -55,6 +55,7 @@ public class ObjectDefinition
|
|||||||
private String[] actions = new String[5];
|
private String[] actions = new String[5];
|
||||||
private int interactType = 2;
|
private int interactType = 2;
|
||||||
private int mapSceneID = -1;
|
private int mapSceneID = -1;
|
||||||
|
private int blockingMask = 0;
|
||||||
private short[] recolorToReplace;
|
private short[] recolorToReplace;
|
||||||
private boolean shadow = true;
|
private boolean shadow = true;
|
||||||
private int modelSizeX = 128;
|
private int modelSizeX = 128;
|
||||||
|
|||||||
@@ -220,7 +220,7 @@ public class ObjectLoader
|
|||||||
}
|
}
|
||||||
else if (opcode == 69)
|
else if (opcode == 69)
|
||||||
{
|
{
|
||||||
is.readByte();
|
def.setBlockingMask(is.readByte());
|
||||||
}
|
}
|
||||||
else if (opcode == 70)
|
else if (opcode == 70)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -146,6 +146,11 @@ public class ObjectSaver
|
|||||||
out.writeByte(68);
|
out.writeByte(68);
|
||||||
out.writeShort(obj.getMapSceneID());
|
out.writeShort(obj.getMapSceneID());
|
||||||
}
|
}
|
||||||
|
if (obj.getBlockingMask() != 0)
|
||||||
|
{
|
||||||
|
out.writeByte(69);
|
||||||
|
out.writeByte(obj.getBlockingMask());
|
||||||
|
}
|
||||||
out.writeByte(70);
|
out.writeByte(70);
|
||||||
out.writeShort(obj.getOffsetX());
|
out.writeShort(obj.getOffsetX());
|
||||||
out.writeByte(71);
|
out.writeByte(71);
|
||||||
|
|||||||
Reference in New Issue
Block a user