cache: add 197 opcodes

This commit is contained in:
Max Weber
2021-06-10 12:55:14 -06:00
parent 5260ccc78c
commit f1fc3ccb5c
4 changed files with 16 additions and 0 deletions

View File

@@ -33,6 +33,7 @@ public class ItemDefinition
public final int id;
public String name = "null";
public String unknown1;
public int resizeX = 128;
public int resizeY = 128;
@@ -87,6 +88,8 @@ public class ItemDefinition
public int femaleHeadModel = -1;
public int femaleHeadModel2 = -1;
public int category;
public int notedID = -1;
public int notedTemplate = -1;

View File

@@ -68,6 +68,7 @@ public class ObjectDefinition
private int contouredGround = -1;
private int supportsItems = -1;
private int[] configChangeDest;
private int category;
private boolean isRotated = false;
private int varpID = -1;
private int ambientSoundId = -1;

View File

@@ -93,6 +93,10 @@ public class ItemLoader
def.yOffset2d -= 65536;
}
}
else if (opcode == 9)
{
def.unknown1 = stream.readString();
}
else if (opcode == 11)
{
def.stackable = 1;
@@ -193,6 +197,10 @@ public class ItemLoader
{
def.femaleHeadModel2 = stream.readUnsignedShort();
}
else if (opcode == 94)
{
def.category = stream.readUnsignedShort();
}
else if (opcode == 95)
{
def.zan2d = stream.readUnsignedShort();

View File

@@ -194,6 +194,10 @@ public class ObjectLoader
def.setRetextureToFind(retextureToFind);
def.setTextureToReplace(textureToReplace);
}
else if (opcode == 61)
{
def.setCategory(is.readUnsignedShort());
}
else if (opcode == 62)
{
def.setRotated(true);