Merge branch 'pr/19' into upsteam3

This commit is contained in:
xKylee
2020-02-20 17:57:43 +00:00
17 changed files with 271 additions and 212 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);