project: Rev 182
This commit is contained in:
@@ -4,257 +4,257 @@ import net.runelite.mapping.ObfuscatedGetter;
|
||||
import net.runelite.mapping.ObfuscatedName;
|
||||
import net.runelite.mapping.ObfuscatedSignature;
|
||||
|
||||
@ObfuscatedName("iy")
|
||||
@ObfuscatedName("ik")
|
||||
@Implements("ObjectDefinition")
|
||||
public class ObjectDefinition extends DualNode {
|
||||
@ObfuscatedName("q")
|
||||
@ObfuscatedName("s")
|
||||
@Export("ObjectDefinition_isLowDetail")
|
||||
public static boolean ObjectDefinition_isLowDetail;
|
||||
@ObfuscatedName("w")
|
||||
@ObfuscatedName("j")
|
||||
@ObfuscatedSignature(
|
||||
signature = "Lhp;"
|
||||
signature = "Lhz;"
|
||||
)
|
||||
@Export("ObjectDefinition_archive")
|
||||
public static AbstractArchive ObjectDefinition_archive;
|
||||
@ObfuscatedName("e")
|
||||
@ObfuscatedName("i")
|
||||
@ObfuscatedSignature(
|
||||
signature = "Lhp;"
|
||||
signature = "Lhz;"
|
||||
)
|
||||
@Export("ObjectDefinition_modelsArchive")
|
||||
public static AbstractArchive ObjectDefinition_modelsArchive;
|
||||
@ObfuscatedName("p")
|
||||
@ObfuscatedName("k")
|
||||
@ObfuscatedSignature(
|
||||
signature = "Lel;"
|
||||
signature = "Lep;"
|
||||
)
|
||||
@Export("ObjectDefinition_cached")
|
||||
static EvictingDualNodeHashTable ObjectDefinition_cached;
|
||||
@ObfuscatedName("k")
|
||||
@ObfuscatedName("u")
|
||||
@ObfuscatedSignature(
|
||||
signature = "Lel;"
|
||||
signature = "Lep;"
|
||||
)
|
||||
@Export("ObjectDefinition_cachedModelData")
|
||||
public static EvictingDualNodeHashTable ObjectDefinition_cachedModelData;
|
||||
@ObfuscatedName("l")
|
||||
@ObfuscatedName("n")
|
||||
@ObfuscatedSignature(
|
||||
signature = "Lel;"
|
||||
signature = "Lep;"
|
||||
)
|
||||
@Export("ObjectDefinition_cachedEntities")
|
||||
static EvictingDualNodeHashTable ObjectDefinition_cachedEntities;
|
||||
@ObfuscatedName("b")
|
||||
@ObfuscatedName("t")
|
||||
@ObfuscatedSignature(
|
||||
signature = "Lel;"
|
||||
signature = "Lep;"
|
||||
)
|
||||
@Export("ObjectDefinition_cachedModels")
|
||||
static EvictingDualNodeHashTable ObjectDefinition_cachedModels;
|
||||
@ObfuscatedName("i")
|
||||
@ObfuscatedName("q")
|
||||
@ObfuscatedSignature(
|
||||
signature = "[Lds;"
|
||||
signature = "[Ldq;"
|
||||
)
|
||||
static ModelData[] field3398;
|
||||
@ObfuscatedName("c")
|
||||
static ModelData[] field3364;
|
||||
@ObfuscatedName("x")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -2068374329
|
||||
intValue = -1417245107
|
||||
)
|
||||
@Export("id")
|
||||
public int id;
|
||||
@ObfuscatedName("f")
|
||||
@ObfuscatedName("d")
|
||||
@Export("modelIds")
|
||||
int[] modelIds;
|
||||
@ObfuscatedName("m")
|
||||
@ObfuscatedName("f")
|
||||
@Export("models")
|
||||
int[] models;
|
||||
@ObfuscatedName("u")
|
||||
@ObfuscatedName("c")
|
||||
@Export("name")
|
||||
public String name;
|
||||
@ObfuscatedName("x")
|
||||
@ObfuscatedName("r")
|
||||
@Export("recolorFrom")
|
||||
short[] recolorFrom;
|
||||
@ObfuscatedName("r")
|
||||
@ObfuscatedName("y")
|
||||
@Export("recolorTo")
|
||||
short[] recolorTo;
|
||||
@ObfuscatedName("v")
|
||||
@ObfuscatedName("p")
|
||||
@Export("retextureFrom")
|
||||
short[] retextureFrom;
|
||||
@ObfuscatedName("y")
|
||||
@ObfuscatedName("b")
|
||||
@Export("retextureTo")
|
||||
short[] retextureTo;
|
||||
@ObfuscatedName("g")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 212808303
|
||||
intValue = 950062565
|
||||
)
|
||||
@Export("sizeX")
|
||||
public int sizeX;
|
||||
@ObfuscatedName("a")
|
||||
@ObfuscatedName("e")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 421587309
|
||||
intValue = 1522492745
|
||||
)
|
||||
@Export("sizeY")
|
||||
public int sizeY;
|
||||
@ObfuscatedName("j")
|
||||
@ObfuscatedName("z")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 2015026185
|
||||
intValue = 1421419631
|
||||
)
|
||||
@Export("interactType")
|
||||
public int interactType;
|
||||
@ObfuscatedName("t")
|
||||
@ObfuscatedName("a")
|
||||
@Export("boolean1")
|
||||
public boolean boolean1;
|
||||
@ObfuscatedName("h")
|
||||
@ObfuscatedName("w")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -515360821
|
||||
intValue = -302869057
|
||||
)
|
||||
@Export("int1")
|
||||
public int int1;
|
||||
@ObfuscatedName("o")
|
||||
@ObfuscatedName("l")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -708119296
|
||||
intValue = 56177517
|
||||
)
|
||||
@Export("clipType")
|
||||
int clipType;
|
||||
@ObfuscatedName("n")
|
||||
@ObfuscatedName("h")
|
||||
@Export("nonFlatShading")
|
||||
boolean nonFlatShading;
|
||||
@ObfuscatedName("d")
|
||||
@ObfuscatedName("v")
|
||||
@Export("modelClipped")
|
||||
public boolean modelClipped;
|
||||
@ObfuscatedName("s")
|
||||
@ObfuscatedName("m")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -812430179
|
||||
intValue = -796877595
|
||||
)
|
||||
@Export("animationId")
|
||||
public int animationId;
|
||||
@ObfuscatedName("z")
|
||||
@ObfuscatedName("o")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -424786087
|
||||
intValue = -1920170119
|
||||
)
|
||||
@Export("int2")
|
||||
public int int2;
|
||||
@ObfuscatedName("al")
|
||||
@ObfuscatedName("av")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -521483261
|
||||
intValue = 1091050737
|
||||
)
|
||||
@Export("ambient")
|
||||
int ambient;
|
||||
@ObfuscatedName("av")
|
||||
@ObfuscatedName("am")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -785836155
|
||||
intValue = 147368649
|
||||
)
|
||||
@Export("contrast")
|
||||
int contrast;
|
||||
@ObfuscatedName("as")
|
||||
@ObfuscatedName("ai")
|
||||
@Export("actions")
|
||||
public String[] actions;
|
||||
@ObfuscatedName("aw")
|
||||
@ObfuscatedName("af")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 1327834339
|
||||
intValue = 2069147423
|
||||
)
|
||||
@Export("mapIconId")
|
||||
public int mapIconId;
|
||||
@ObfuscatedName("ad")
|
||||
@ObfuscatedName("az")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -118615167
|
||||
intValue = -1917085051
|
||||
)
|
||||
@Export("mapSceneId")
|
||||
public int mapSceneId;
|
||||
@ObfuscatedName("ag")
|
||||
@ObfuscatedName("aj")
|
||||
@Export("isRotated")
|
||||
boolean isRotated;
|
||||
@ObfuscatedName("ar")
|
||||
@ObfuscatedName("an")
|
||||
@Export("clipped")
|
||||
public boolean clipped;
|
||||
@ObfuscatedName("ax")
|
||||
@ObfuscatedName("at")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -106428285
|
||||
intValue = 260729967
|
||||
)
|
||||
@Export("modelSizeX")
|
||||
int modelSizeX;
|
||||
@ObfuscatedName("az")
|
||||
@ObfuscatedName("as")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -535612109
|
||||
intValue = -1929825155
|
||||
)
|
||||
@Export("modelHeight")
|
||||
int modelHeight;
|
||||
@ObfuscatedName("ae")
|
||||
@ObfuscatedName("ak")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -1113005599
|
||||
intValue = 1921180203
|
||||
)
|
||||
@Export("modelSizeY")
|
||||
int modelSizeY;
|
||||
@ObfuscatedName("ao")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -1159375361
|
||||
intValue = -487926215
|
||||
)
|
||||
@Export("offsetX")
|
||||
int offsetX;
|
||||
@ObfuscatedName("aj")
|
||||
@ObfuscatedName("ac")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 744922465
|
||||
intValue = 2096022607
|
||||
)
|
||||
@Export("offsetHeight")
|
||||
int offsetHeight;
|
||||
@ObfuscatedName("at")
|
||||
@ObfuscatedName("ar")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -1695338293
|
||||
intValue = 531318875
|
||||
)
|
||||
@Export("offsetY")
|
||||
int offsetY;
|
||||
@ObfuscatedName("ac")
|
||||
@ObfuscatedName("au")
|
||||
@Export("boolean2")
|
||||
public boolean boolean2;
|
||||
@ObfuscatedName("ap")
|
||||
@ObfuscatedName("ax")
|
||||
@Export("isSolid")
|
||||
boolean isSolid;
|
||||
@ObfuscatedName("aq")
|
||||
@ObfuscatedName("ag")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -509602785
|
||||
intValue = 1688064541
|
||||
)
|
||||
@Export("int3")
|
||||
public int int3;
|
||||
@ObfuscatedName("aa")
|
||||
@Export("transforms")
|
||||
public int[] transforms;
|
||||
@ObfuscatedName("an")
|
||||
@ObfuscatedName("ap")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -1303757557
|
||||
intValue = -338512887
|
||||
)
|
||||
@Export("transformVarbit")
|
||||
int transformVarbit;
|
||||
@ObfuscatedName("au")
|
||||
@ObfuscatedName("aq")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 1417540859
|
||||
intValue = 1932503727
|
||||
)
|
||||
@Export("transformVarp")
|
||||
int transformVarp;
|
||||
@ObfuscatedName("ai")
|
||||
@ObfuscatedName("ay")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 2125356431
|
||||
intValue = -2074842335
|
||||
)
|
||||
@Export("ambientSoundId")
|
||||
public int ambientSoundId;
|
||||
@ObfuscatedName("ak")
|
||||
@ObfuscatedName("ad")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -1963280521
|
||||
intValue = -595012719
|
||||
)
|
||||
@Export("int4")
|
||||
public int int4;
|
||||
@ObfuscatedName("ah")
|
||||
@ObfuscatedName("al")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 1234407491
|
||||
intValue = -1860442499
|
||||
)
|
||||
@Export("int5")
|
||||
public int int5;
|
||||
@ObfuscatedName("am")
|
||||
@ObfuscatedName("ah")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 69509337
|
||||
intValue = -1597544155
|
||||
)
|
||||
@Export("int6")
|
||||
public int int6;
|
||||
@ObfuscatedName("ay")
|
||||
@ObfuscatedName("ab")
|
||||
@Export("soundEffectIds")
|
||||
public int[] soundEffectIds;
|
||||
@ObfuscatedName("af")
|
||||
@ObfuscatedName("aw")
|
||||
@ObfuscatedSignature(
|
||||
signature = "Lla;"
|
||||
signature = "Lln;"
|
||||
)
|
||||
@Export("params")
|
||||
IterableNodeHashTable params;
|
||||
@@ -265,7 +265,7 @@ public class ObjectDefinition extends DualNode {
|
||||
ObjectDefinition_cachedModelData = new EvictingDualNodeHashTable(500);
|
||||
ObjectDefinition_cachedEntities = new EvictingDualNodeHashTable(30);
|
||||
ObjectDefinition_cachedModels = new EvictingDualNodeHashTable(30);
|
||||
field3398 = new ModelData[4];
|
||||
field3364 = new ModelData[4];
|
||||
}
|
||||
|
||||
ObjectDefinition() {
|
||||
@@ -275,7 +275,7 @@ public class ObjectDefinition extends DualNode {
|
||||
this.interactType = 2;
|
||||
this.boolean1 = true;
|
||||
this.int1 = -1;
|
||||
this.clipType = -256;
|
||||
this.clipType = -1;
|
||||
this.nonFlatShading = false;
|
||||
this.modelClipped = false;
|
||||
this.animationId = -1;
|
||||
@@ -304,10 +304,10 @@ public class ObjectDefinition extends DualNode {
|
||||
this.int6 = 0;
|
||||
}
|
||||
|
||||
@ObfuscatedName("w")
|
||||
@ObfuscatedName("j")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(I)V",
|
||||
garbageValue = "-583792962"
|
||||
garbageValue = "1177883713"
|
||||
)
|
||||
@Export("postDecode")
|
||||
void postDecode() {
|
||||
@@ -330,10 +330,10 @@ public class ObjectDefinition extends DualNode {
|
||||
|
||||
}
|
||||
|
||||
@ObfuscatedName("e")
|
||||
@ObfuscatedName("i")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(Lkf;B)V",
|
||||
garbageValue = "82"
|
||||
signature = "(Lky;I)V",
|
||||
garbageValue = "1500766173"
|
||||
)
|
||||
@Export("decode")
|
||||
void decode(Buffer var1) {
|
||||
@@ -347,10 +347,10 @@ public class ObjectDefinition extends DualNode {
|
||||
}
|
||||
}
|
||||
|
||||
@ObfuscatedName("p")
|
||||
@ObfuscatedName("k")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(Lkf;II)V",
|
||||
garbageValue = "2121034762"
|
||||
signature = "(Lky;IB)V",
|
||||
garbageValue = "0"
|
||||
)
|
||||
@Export("decodeNext")
|
||||
void decodeNext(Buffer var1, int var2) {
|
||||
@@ -358,36 +358,34 @@ public class ObjectDefinition extends DualNode {
|
||||
int var4;
|
||||
if (var2 == 1) {
|
||||
var3 = var1.readUnsignedByte();
|
||||
if (var3 <= 0) {
|
||||
return;
|
||||
}
|
||||
if (this.modelIds == null || ObjectDefinition_isLowDetail) {
|
||||
this.models = new int[var3];
|
||||
this.modelIds = new int[var3];
|
||||
if (var3 > 0) {
|
||||
if (this.modelIds != null && !ObjectDefinition_isLowDetail) {
|
||||
var1.offset += var3 * 3;
|
||||
} else {
|
||||
this.models = new int[var3];
|
||||
this.modelIds = new int[var3];
|
||||
|
||||
for (var4 = 0; var4 < var3; ++var4) {
|
||||
this.modelIds[var4] = var1.readUnsignedShort();
|
||||
this.models[var4] = var1.readUnsignedByte();
|
||||
for (var4 = 0; var4 < var3; ++var4) {
|
||||
this.modelIds[var4] = var1.readUnsignedShort();
|
||||
this.models[var4] = var1.readUnsignedByte();
|
||||
}
|
||||
}
|
||||
} else {
|
||||
var1.offset += 3 * var3;
|
||||
}
|
||||
} else if (var2 == 2) {
|
||||
this.name = var1.readStringCp1252NullTerminated();
|
||||
} else if (var2 == 5) {
|
||||
var3 = var1.readUnsignedByte();
|
||||
if (var3 <= 0) {
|
||||
return;
|
||||
}
|
||||
if (this.modelIds == null || ObjectDefinition_isLowDetail) {
|
||||
this.models = null;
|
||||
this.modelIds = new int[var3];
|
||||
if (var3 > 0) {
|
||||
if (this.modelIds != null && !ObjectDefinition_isLowDetail) {
|
||||
var1.offset += var3 * 2;
|
||||
} else {
|
||||
this.models = null;
|
||||
this.modelIds = new int[var3];
|
||||
|
||||
for (var4 = 0; var4 < var3; ++var4) {
|
||||
this.modelIds[var4] = var1.readUnsignedShort();
|
||||
for (var4 = 0; var4 < var3; ++var4) {
|
||||
this.modelIds[var4] = var1.readUnsignedShort();
|
||||
}
|
||||
}
|
||||
} else {
|
||||
var1.offset += var3 * 2;
|
||||
}
|
||||
} else if (var2 == 14) {
|
||||
this.sizeX = var1.readUnsignedByte();
|
||||
@@ -408,7 +406,7 @@ public class ObjectDefinition extends DualNode {
|
||||
this.modelClipped = true;
|
||||
} else if (var2 == 24) {
|
||||
this.animationId = var1.readUnsignedShort();
|
||||
if (this.animationId == 0xffff) {
|
||||
if (this.animationId == 65535) {
|
||||
this.animationId = -1;
|
||||
}
|
||||
} else if (var2 == 27) {
|
||||
@@ -418,7 +416,7 @@ public class ObjectDefinition extends DualNode {
|
||||
} else if (var2 == 29) {
|
||||
this.ambient = var1.readByte();
|
||||
} else if (var2 == 39) {
|
||||
this.contrast = var1.readByte();
|
||||
this.contrast = var1.readByte() * 25;
|
||||
} else if (var2 >= 30 && var2 < 35) {
|
||||
this.actions[var2 - 30] = var1.readStringCp1252NullTerminated();
|
||||
if (this.actions[var2 - 30].equalsIgnoreCase("Hidden")) {
|
||||
@@ -468,21 +466,42 @@ public class ObjectDefinition extends DualNode {
|
||||
this.isSolid = true;
|
||||
} else if (var2 == 75) {
|
||||
this.int3 = var1.readUnsignedByte();
|
||||
} else if (var2 == 77 || var2 == 92) {
|
||||
} else if (var2 != 77 && var2 != 92) {
|
||||
if (var2 == 78) {
|
||||
this.ambientSoundId = var1.readUnsignedShort();
|
||||
this.int4 = var1.readUnsignedByte();
|
||||
} else if (var2 == 79) {
|
||||
this.int5 = var1.readUnsignedShort();
|
||||
this.int6 = var1.readUnsignedShort();
|
||||
this.int4 = var1.readUnsignedByte();
|
||||
var3 = var1.readUnsignedByte();
|
||||
this.soundEffectIds = new int[var3];
|
||||
|
||||
for (var4 = 0; var4 < var3; ++var4) {
|
||||
this.soundEffectIds[var4] = var1.readUnsignedShort();
|
||||
}
|
||||
} else if (var2 == 81) {
|
||||
this.clipType = var1.readUnsignedByte() * 256;
|
||||
} else if (var2 == 82) {
|
||||
this.mapIconId = var1.readUnsignedShort();
|
||||
} else if (var2 == 249) {
|
||||
this.params = DynamicObject.readStringIntParameters(var1, this.params);
|
||||
}
|
||||
} else {
|
||||
this.transformVarbit = var1.readUnsignedShort();
|
||||
if (this.transformVarbit == 0xffff) {
|
||||
if (this.transformVarbit == 65535) {
|
||||
this.transformVarbit = -1;
|
||||
}
|
||||
|
||||
this.transformVarp = var1.readUnsignedShort();
|
||||
if (this.transformVarp == 0xffff) {
|
||||
if (this.transformVarp == 65535) {
|
||||
this.transformVarp = -1;
|
||||
}
|
||||
|
||||
var3 = -1;
|
||||
if (var2 == 92) {
|
||||
var3 = var1.readUnsignedShort();
|
||||
if (var3 == 0xffff) {
|
||||
if (var3 == 65535) {
|
||||
var3 = -1;
|
||||
}
|
||||
}
|
||||
@@ -492,110 +511,91 @@ public class ObjectDefinition extends DualNode {
|
||||
|
||||
for (int var5 = 0; var5 <= var4; ++var5) {
|
||||
this.transforms[var5] = var1.readUnsignedShort();
|
||||
if (this.transforms[var5] == 0xffff) {
|
||||
if (this.transforms[var5] == 65535) {
|
||||
this.transforms[var5] = -1;
|
||||
}
|
||||
}
|
||||
|
||||
this.transforms[var4 + 1] = var3;
|
||||
} else if (var2 == 78) {
|
||||
this.ambientSoundId = var1.readUnsignedShort();
|
||||
this.int4 = var1.readUnsignedByte();
|
||||
} else if (var2 == 79) {
|
||||
this.int5 = var1.readUnsignedShort();
|
||||
this.int6 = var1.readUnsignedShort();
|
||||
this.int4 = var1.readUnsignedByte();
|
||||
var3 = var1.readUnsignedByte();
|
||||
this.soundEffectIds = new int[var3];
|
||||
|
||||
for (var4 = 0; var4 < var3; ++var4)
|
||||
{
|
||||
this.soundEffectIds[var4] = var1.readUnsignedShort();
|
||||
}
|
||||
} else if (var2 == 81) {
|
||||
this.clipType = var1.readUnsignedByte() * 65536;
|
||||
} else if (var2 == 82) {
|
||||
this.mapIconId = var1.readUnsignedShort();
|
||||
} else if (var2 == 249) {
|
||||
this.params = WorldMapArea.readStringIntParameters(var1, this.params);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ObfuscatedName("k")
|
||||
@ObfuscatedName("u")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(II)Z",
|
||||
garbageValue = "-672143890"
|
||||
garbageValue = "-2065499599"
|
||||
)
|
||||
public final boolean method4589(int var1) {
|
||||
public final boolean method4505(int var1) {
|
||||
if (this.models != null) {
|
||||
for (int var4 = 0; var4 < this.models.length; ++var4) {
|
||||
if (this.models[var4] == var1) {
|
||||
return ObjectDefinition_modelsArchive.tryLoadFile(this.modelIds[var4] & 0xffff, 0);
|
||||
return ObjectDefinition_modelsArchive.tryLoadFile(this.modelIds[var4] & 65535, 0);
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
if (this.modelIds == null) {
|
||||
} else if (this.modelIds == null) {
|
||||
return true;
|
||||
}
|
||||
if (var1 != 10) {
|
||||
} else if (var1 != 10) {
|
||||
return true;
|
||||
}
|
||||
boolean var2 = true;
|
||||
} else {
|
||||
boolean var2 = true;
|
||||
|
||||
for (int var3 = 0; var3 < this.modelIds.length; ++var3) {
|
||||
var2 &= ObjectDefinition_modelsArchive.tryLoadFile(this.modelIds[var3] & 0xffff, 0);
|
||||
}
|
||||
for (int var3 = 0; var3 < this.modelIds.length; ++var3) {
|
||||
var2 &= ObjectDefinition_modelsArchive.tryLoadFile(this.modelIds[var3] & 65535, 0);
|
||||
}
|
||||
|
||||
return var2;
|
||||
return var2;
|
||||
}
|
||||
}
|
||||
|
||||
@ObfuscatedName("l")
|
||||
@ObfuscatedName("n")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(I)Z",
|
||||
garbageValue = "-275510577"
|
||||
garbageValue = "1513696522"
|
||||
)
|
||||
@Export("needsModelFiles")
|
||||
public final boolean needsModelFiles() {
|
||||
if (this.modelIds == null) {
|
||||
return true;
|
||||
}
|
||||
boolean var1 = true;
|
||||
} else {
|
||||
boolean var1 = true;
|
||||
|
||||
for (int var2 = 0; var2 < this.modelIds.length; ++var2) {
|
||||
var1 &= ObjectDefinition_modelsArchive.tryLoadFile(this.modelIds[var2] & 0xffff, 0);
|
||||
}
|
||||
for (int var2 = 0; var2 < this.modelIds.length; ++var2) {
|
||||
var1 &= ObjectDefinition_modelsArchive.tryLoadFile(this.modelIds[var2] & 65535, 0);
|
||||
}
|
||||
|
||||
return var1;
|
||||
return var1;
|
||||
}
|
||||
}
|
||||
|
||||
@ObfuscatedName("b")
|
||||
@ObfuscatedName("t")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(II[[IIIIB)Leo;",
|
||||
garbageValue = "-18"
|
||||
signature = "(II[[IIIIB)Len;",
|
||||
garbageValue = "-26"
|
||||
)
|
||||
@Export("getEntity")
|
||||
public final Entity getEntity(int type, int rotation, int[][] tileHeights, int xPacked, int avgHeight, int yPacked) {
|
||||
public final Entity getEntity(int var1, int var2, int[][] var3, int var4, int var5, int var6) {
|
||||
long var7;
|
||||
if (this.models == null) {
|
||||
var7 = (long)(rotation + (this.id << 10));
|
||||
var7 = (long)(var2 + (this.id << 10));
|
||||
} else {
|
||||
var7 = (long)(rotation + (type << 3) + (this.id << 10));
|
||||
var7 = (long)(var2 + (var1 << 3) + (this.id << 10));
|
||||
}
|
||||
|
||||
Object var9 = (Entity)ObjectDefinition_cachedEntities.get(var7);
|
||||
if (var9 == null) {
|
||||
ModelData var10 = this.getModelData(type, rotation);
|
||||
ModelData var10 = this.getModelData(var1, var2);
|
||||
if (var10 == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (!this.nonFlatShading) {
|
||||
var9 = var10.toModel(this.ambient + 64, this.contrast * 25 + 768, -50, -10, -50);
|
||||
var9 = var10.toModel(this.ambient + 64, this.contrast + 768, -50, -10, -50);
|
||||
} else {
|
||||
var10.ambient = (short)(this.ambient + 64);
|
||||
var10.contrast = (short)(this.contrast * 25 + 768);
|
||||
var10.contrast = (short)(this.contrast + 768);
|
||||
var10.calculateVertexNormals();
|
||||
var9 = var10;
|
||||
}
|
||||
@@ -604,56 +604,56 @@ public class ObjectDefinition extends DualNode {
|
||||
}
|
||||
|
||||
if (this.nonFlatShading) {
|
||||
var9 = ((ModelData)var9).method2775();
|
||||
var9 = ((ModelData)var9).method2708();
|
||||
}
|
||||
|
||||
if (this.clipType * 256 >= 0) {
|
||||
if (this.clipType * 65536 >= 0) {
|
||||
if (var9 instanceof Model) {
|
||||
var9 = ((Model)var9).contourGround(tileHeights, xPacked, avgHeight, yPacked, true, this.clipType * 256);
|
||||
var9 = ((Model)var9).contourGround(var3, var4, var5, var6, true, this.clipType * 65536);
|
||||
} else if (var9 instanceof ModelData) {
|
||||
var9 = ((ModelData)var9).method2776(tileHeights, xPacked, avgHeight, yPacked, true, this.clipType * 256);
|
||||
var9 = ((ModelData)var9).method2709(var3, var4, var5, var6, true, this.clipType * 65536);
|
||||
}
|
||||
}
|
||||
|
||||
return (Entity)var9;
|
||||
}
|
||||
|
||||
@ObfuscatedName("i")
|
||||
@ObfuscatedName("q")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(II[[IIIII)Ldm;",
|
||||
garbageValue = "-1160623337"
|
||||
signature = "(II[[IIIII)Ldo;",
|
||||
garbageValue = "-1392170814"
|
||||
)
|
||||
@Export("getModel")
|
||||
public final Model getModel(int type, int rotation, int[][] tileHeights, int xPacked, int avgHeight, int yPacked) {
|
||||
public final Model getModel(int var1, int var2, int[][] var3, int var4, int var5, int var6) {
|
||||
long var7;
|
||||
if (this.models == null) {
|
||||
var7 = (long)(rotation + (this.id << 10));
|
||||
var7 = (long)(var2 + (this.id << 10));
|
||||
} else {
|
||||
var7 = (long)(rotation + (type << 3) + (this.id << 10));
|
||||
var7 = (long)(var2 + (var1 << 3) + (this.id << 10));
|
||||
}
|
||||
|
||||
Model var9 = (Model)ObjectDefinition_cachedModels.get(var7);
|
||||
if (var9 == null) {
|
||||
ModelData var10 = this.getModelData(type, rotation);
|
||||
ModelData var10 = this.getModelData(var1, var2);
|
||||
if (var10 == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
var9 = var10.toModel(this.ambient + 64, this.contrast * 25 + 768, -50, -10, -50);
|
||||
var9 = var10.toModel(this.ambient + 64, this.contrast + 768, -50, -10, -50);
|
||||
ObjectDefinition_cachedModels.put(var9, var7);
|
||||
}
|
||||
|
||||
if (this.clipType * 256 >= 0) {
|
||||
var9 = var9.contourGround(tileHeights, xPacked, avgHeight, yPacked, true, this.clipType * 256);
|
||||
if (this.clipType * 65536 >= 0) {
|
||||
var9 = var9.contourGround(var3, var4, var5, var6, true, this.clipType * 65536);
|
||||
}
|
||||
|
||||
return var9;
|
||||
}
|
||||
|
||||
@ObfuscatedName("c")
|
||||
@ObfuscatedName("x")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(II[[IIIILis;IB)Ldm;",
|
||||
garbageValue = "5"
|
||||
signature = "(II[[IIIILij;II)Ldo;",
|
||||
garbageValue = "687830026"
|
||||
)
|
||||
@Export("getModelDynamic")
|
||||
public final Model getModelDynamic(int var1, int var2, int[][] var3, int var4, int var5, int var6, SequenceDefinition var7, int var8) {
|
||||
@@ -671,39 +671,40 @@ public class ObjectDefinition extends DualNode {
|
||||
return null;
|
||||
}
|
||||
|
||||
var11 = var12.toModel(this.ambient + 64, this.contrast * 25 + 768, -50, -10, -50);
|
||||
var11 = var12.toModel(this.ambient + 64, this.contrast + 768, -50, -10, -50);
|
||||
ObjectDefinition_cachedModels.put(var11, var9);
|
||||
}
|
||||
|
||||
if (var7 == null && this.clipType * 256 == -1) {
|
||||
if (var7 == null && this.clipType * 65536 == -1) {
|
||||
return var11;
|
||||
} else {
|
||||
if (var7 != null) {
|
||||
var11 = var7.transformObjectModel(var11, var8, var2);
|
||||
} else {
|
||||
var11 = var11.toSharedSequenceModel(true);
|
||||
}
|
||||
|
||||
if (this.clipType * 65536 >= 0) {
|
||||
var11 = var11.contourGround(var3, var4, var5, var6, false, this.clipType * 65536);
|
||||
}
|
||||
|
||||
return var11;
|
||||
}
|
||||
if (var7 != null) {
|
||||
var11 = var7.transformObjectModel(var11, var8, var2);
|
||||
} else {
|
||||
var11 = var11.toSharedSequenceModel(true);
|
||||
}
|
||||
|
||||
if (this.clipType * 256 >= 0) {
|
||||
var11 = var11.contourGround(var3, var4, var5, var6, false, this.clipType * 256);
|
||||
}
|
||||
|
||||
return var11;
|
||||
}
|
||||
|
||||
@ObfuscatedName("u")
|
||||
@ObfuscatedName("d")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(III)Lds;",
|
||||
garbageValue = "828225621"
|
||||
signature = "(III)Ldq;",
|
||||
garbageValue = "976816708"
|
||||
)
|
||||
@Export("getModelData")
|
||||
final ModelData getModelData(int type, int rotation) {
|
||||
final ModelData getModelData(int var1, int var2) {
|
||||
ModelData var3 = null;
|
||||
boolean var4;
|
||||
int var5;
|
||||
int var7;
|
||||
if (this.models == null) {
|
||||
if (type != 10) {
|
||||
if (var1 != 10) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -712,7 +713,7 @@ public class ObjectDefinition extends DualNode {
|
||||
}
|
||||
|
||||
var4 = this.isRotated;
|
||||
if (type == 2 && rotation > 3) {
|
||||
if (var1 == 2 && var2 > 3) {
|
||||
var4 = !var4;
|
||||
}
|
||||
|
||||
@@ -726,31 +727,31 @@ public class ObjectDefinition extends DualNode {
|
||||
|
||||
var3 = (ModelData)ObjectDefinition_cachedModelData.get((long)var7);
|
||||
if (var3 == null) {
|
||||
var3 = ModelData.ModelData_get(ObjectDefinition_modelsArchive, var7 & 0xffff, 0);
|
||||
var3 = ModelData.ModelData_get(ObjectDefinition_modelsArchive, var7 & 65535, 0);
|
||||
if (var3 == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (var4) {
|
||||
var3.method2785();
|
||||
var3.method2718();
|
||||
}
|
||||
|
||||
ObjectDefinition_cachedModelData.put(var3, (long)var7);
|
||||
}
|
||||
|
||||
if (var5 > 1) {
|
||||
field3398[var6] = var3;
|
||||
field3364[var6] = var3;
|
||||
}
|
||||
}
|
||||
|
||||
if (var5 > 1) {
|
||||
var3 = new ModelData(field3398, var5);
|
||||
var3 = new ModelData(field3364, var5);
|
||||
}
|
||||
} else {
|
||||
int var9 = -1;
|
||||
|
||||
for (var5 = 0; var5 < this.models.length; ++var5) {
|
||||
if (this.models[var5] == type) {
|
||||
if (this.models[var5] == var1) {
|
||||
var9 = var5;
|
||||
break;
|
||||
}
|
||||
@@ -761,20 +762,20 @@ public class ObjectDefinition extends DualNode {
|
||||
}
|
||||
|
||||
var5 = this.modelIds[var9];
|
||||
boolean var10 = this.isRotated ^ rotation > 3;
|
||||
boolean var10 = this.isRotated ^ var2 > 3;
|
||||
if (var10) {
|
||||
var5 += 65536;
|
||||
}
|
||||
|
||||
var3 = (ModelData)ObjectDefinition_cachedModelData.get((long)var5);
|
||||
if (var3 == null) {
|
||||
var3 = ModelData.ModelData_get(ObjectDefinition_modelsArchive, var5 & 0xffff, 0);
|
||||
var3 = ModelData.ModelData_get(ObjectDefinition_modelsArchive, var5 & 65535, 0);
|
||||
if (var3 == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (var10) {
|
||||
var3.method2785();
|
||||
var3.method2718();
|
||||
}
|
||||
|
||||
ObjectDefinition_cachedModelData.put(var3, (long)var5);
|
||||
@@ -794,19 +795,19 @@ public class ObjectDefinition extends DualNode {
|
||||
var11 = true;
|
||||
}
|
||||
|
||||
ModelData var8 = new ModelData(var3, rotation == 0 && !var4 && !var11, null == this.recolorFrom, this.retextureFrom == null, true);
|
||||
if (type == 4 && rotation > 3) {
|
||||
var8.method2781(256);
|
||||
ModelData var8 = new ModelData(var3, var2 == 0 && !var4 && !var11, this.recolorFrom == null, null == this.retextureFrom, true);
|
||||
if (var1 == 4 && var2 > 3) {
|
||||
var8.method2714(256);
|
||||
var8.changeOffset(45, 0, -45);
|
||||
}
|
||||
|
||||
rotation &= 3;
|
||||
if (rotation == 1) {
|
||||
var8.method2778();
|
||||
} else if (rotation == 2) {
|
||||
var8.method2797();
|
||||
} else if (rotation == 3) {
|
||||
var8.method2780();
|
||||
var2 &= 3;
|
||||
if (var2 == 1) {
|
||||
var8.method2769();
|
||||
} else if (var2 == 2) {
|
||||
var8.method2712();
|
||||
} else if (var2 == 3) {
|
||||
var8.method2713();
|
||||
}
|
||||
|
||||
if (this.recolorFrom != null) {
|
||||
@@ -832,16 +833,16 @@ public class ObjectDefinition extends DualNode {
|
||||
return var8;
|
||||
}
|
||||
|
||||
@ObfuscatedName("x")
|
||||
@ObfuscatedName("f")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(B)Liy;",
|
||||
garbageValue = "45"
|
||||
signature = "(I)Lik;",
|
||||
garbageValue = "-1654967679"
|
||||
)
|
||||
@Export("transform")
|
||||
public final ObjectDefinition transform() {
|
||||
int var1 = -1;
|
||||
if (this.transformVarbit != -1) {
|
||||
var1 = GrandExchangeOfferOwnWorldComparator.getVarbit(this.transformVarbit);
|
||||
var1 = class208.getVarbit(this.transformVarbit);
|
||||
} else if (this.transformVarp != -1) {
|
||||
var1 = Varps.Varps_main[this.transformVarp];
|
||||
}
|
||||
@@ -853,13 +854,13 @@ public class ObjectDefinition extends DualNode {
|
||||
var2 = this.transforms[this.transforms.length - 1];
|
||||
}
|
||||
|
||||
return var2 != -1 ? ViewportMouse.getObjectDefinition(var2) : null;
|
||||
return var2 != -1 ? class215.getObjectDefinition(var2) : null;
|
||||
}
|
||||
|
||||
@ObfuscatedName("r")
|
||||
@ObfuscatedName("c")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(III)I",
|
||||
garbageValue = "-291840142"
|
||||
garbageValue = "-802928447"
|
||||
)
|
||||
@Export("getIntParam")
|
||||
public int getIntParam(int var1, int var2) {
|
||||
@@ -879,35 +880,49 @@ public class ObjectDefinition extends DualNode {
|
||||
return var3;
|
||||
}
|
||||
|
||||
@ObfuscatedName("v")
|
||||
@ObfuscatedName("r")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(ILjava/lang/String;B)Ljava/lang/String;",
|
||||
garbageValue = "37"
|
||||
signature = "(ILjava/lang/String;I)Ljava/lang/String;",
|
||||
garbageValue = "-1652503760"
|
||||
)
|
||||
@Export("getStringParam")
|
||||
public String getStringParam(int var1, String var2) {
|
||||
return GrandExchangeOfferWorldComparator.method54(this.params, var1, var2);
|
||||
return class227.method4041(this.params, var1, var2);
|
||||
}
|
||||
|
||||
@ObfuscatedName("g")
|
||||
@ObfuscatedName("p")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(I)Z",
|
||||
garbageValue = "-2033078684"
|
||||
garbageValue = "-2084886497"
|
||||
)
|
||||
@Export("hasSound")
|
||||
public boolean hasSound() {
|
||||
if (this.transforms == null) {
|
||||
return this.ambientSoundId != -1 || this.soundEffectIds != null;
|
||||
}
|
||||
for (int var1 = 0; var1 < this.transforms.length; ++var1) {
|
||||
if (this.transforms[var1] != -1) {
|
||||
ObjectDefinition var2 = ViewportMouse.getObjectDefinition(this.transforms[var1]);
|
||||
if (var2.ambientSoundId != -1 || var2.soundEffectIds != null) {
|
||||
return true;
|
||||
} else {
|
||||
for (int var1 = 0; var1 < this.transforms.length; ++var1) {
|
||||
if (this.transforms[var1] != -1) {
|
||||
ObjectDefinition var2 = class215.getObjectDefinition(this.transforms[var1]);
|
||||
if (var2.ambientSoundId != -1 || var2.soundEffectIds != null) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@ObfuscatedName("x")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(IIII)I",
|
||||
garbageValue = "-669374888"
|
||||
)
|
||||
static int method4545(int var0, int var1, int var2) {
|
||||
if ((Tiles.Tiles_renderFlags[var0][var1][var2] & 8) != 0) {
|
||||
return 0;
|
||||
} else {
|
||||
return var0 > 0 && (Tiles.Tiles_renderFlags[1][var1][var2] & 2) != 0 ? var0 - 1 : var0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user