Merge pull request #2014 from Abextm/object-varname
cache: Name ObjectDefiniton's varpID and configID correctly
This commit is contained in:
@@ -49,7 +49,7 @@ public class ObjectDefinition
|
|||||||
private boolean nonFlatShading = false;
|
private boolean nonFlatShading = false;
|
||||||
private int anInt2088 = -1;
|
private int anInt2088 = -1;
|
||||||
private int animationID = -1;
|
private int animationID = -1;
|
||||||
private int varpID = -1;
|
private int varbitID = -1;
|
||||||
private int ambient = 0;
|
private int ambient = 0;
|
||||||
private int contrast = 0;
|
private int contrast = 0;
|
||||||
private String[] actions = new String[5];
|
private String[] actions = new String[5];
|
||||||
@@ -68,7 +68,7 @@ public class ObjectDefinition
|
|||||||
private int anInt2106 = -1;
|
private int anInt2106 = -1;
|
||||||
private int[] configChangeDest;
|
private int[] configChangeDest;
|
||||||
private boolean isRotated = false;
|
private boolean isRotated = false;
|
||||||
private int configId = -1;
|
private int varpID = -1;
|
||||||
private int anInt2110 = -1;
|
private int anInt2110 = -1;
|
||||||
private boolean aBool2111 = false;
|
private boolean aBool2111 = false;
|
||||||
private int anInt2112 = 0;
|
private int anInt2112 = 0;
|
||||||
|
|||||||
@@ -253,14 +253,14 @@ public class ObjectLoader
|
|||||||
{
|
{
|
||||||
varpID = -1;
|
varpID = -1;
|
||||||
}
|
}
|
||||||
def.setVarpID(varpID);
|
def.setVarbitID(varpID);
|
||||||
|
|
||||||
int configId = is.readUnsignedShort();
|
int configId = is.readUnsignedShort();
|
||||||
if (configId == 0xFFFF)
|
if (configId == 0xFFFF)
|
||||||
{
|
{
|
||||||
configId = -1;
|
configId = -1;
|
||||||
}
|
}
|
||||||
def.setConfigId(configId);
|
def.setVarpID(configId);
|
||||||
|
|
||||||
int length = is.readUnsignedByte();
|
int length = is.readUnsignedByte();
|
||||||
int[] configChangeDest = new int[length + 2];
|
int[] configChangeDest = new int[length + 2];
|
||||||
@@ -313,14 +313,14 @@ public class ObjectLoader
|
|||||||
{
|
{
|
||||||
varpID = -1;
|
varpID = -1;
|
||||||
}
|
}
|
||||||
def.setVarpID(varpID);
|
def.setVarbitID(varpID);
|
||||||
|
|
||||||
int configId = is.readUnsignedShort();
|
int configId = is.readUnsignedShort();
|
||||||
if (configId == 0xFFFF)
|
if (configId == 0xFFFF)
|
||||||
{
|
{
|
||||||
configId = -1;
|
configId = -1;
|
||||||
}
|
}
|
||||||
def.setConfigId(configId);
|
def.setVarpID(configId);
|
||||||
|
|
||||||
|
|
||||||
int var = is.readUnsignedShort();
|
int var = is.readUnsignedShort();
|
||||||
|
|||||||
@@ -196,8 +196,8 @@ public class ObjectSaver
|
|||||||
if (obj.getConfigChangeDest() != null)
|
if (obj.getConfigChangeDest() != null)
|
||||||
{
|
{
|
||||||
out.writeByte(92);
|
out.writeByte(92);
|
||||||
|
out.writeShort(obj.getVarbitID());
|
||||||
out.writeShort(obj.getVarpID());
|
out.writeShort(obj.getVarpID());
|
||||||
out.writeShort(obj.getConfigId());
|
|
||||||
|
|
||||||
int[] c = obj.getConfigChangeDest();
|
int[] c = obj.getConfigChangeDest();
|
||||||
out.writeShort(c[c.length - 1]);
|
out.writeShort(c[c.length - 1]);
|
||||||
|
|||||||
Reference in New Issue
Block a user