project: update from 184 to 184 (#1675)

* 184

* checkstyle

* project: fix exports.
This commit is contained in:
Ganom
2019-09-28 13:37:36 -04:00
committed by Kyle
parent 63e7952335
commit cb57ab26b3
341 changed files with 90585 additions and 90740 deletions

View File

@@ -1,111 +1,111 @@
import net.runelite.mapping.Export;
import net.runelite.mapping.Implements;
import net.runelite.mapping.ObfuscatedName;
import net.runelite.mapping.ObfuscatedSignature;
@ObfuscatedName("dm")
@Implements("SoundEnvelope")
public class SoundEnvelope {
@ObfuscatedName("z")
@Export("segments")
int segments;
@ObfuscatedName("n")
@Export("durations")
int[] durations;
@ObfuscatedName("v")
@Export("phases")
int[] phases;
@ObfuscatedName("u")
@Export("start")
int start;
@ObfuscatedName("r")
@Export("end")
int end;
@ObfuscatedName("p")
@Export("form")
int form;
@ObfuscatedName("q")
@Export("ticks")
int ticks;
@ObfuscatedName("m")
@Export("phaseIndex")
int phaseIndex;
@ObfuscatedName("y")
@Export("max")
int max;
@ObfuscatedName("i")
@Export("step")
int step;
@ObfuscatedName("c")
@Export("amplitude")
int amplitude;
SoundEnvelope() {
this.segments = 2;
this.durations = new int[2];
this.phases = new int[2];
this.durations[0] = 0;
this.durations[1] = 65535;
this.phases[0] = 0;
this.phases[1] = 65535;
}
@ObfuscatedName("z")
@ObfuscatedSignature(
signature = "(Lkl;)V"
)
@Export("decode")
final void decode(Buffer var1) {
this.form = var1.readUnsignedByte();
this.start = var1.readInt();
this.end = var1.readInt();
this.decodeSegments(var1);
}
@ObfuscatedName("n")
@ObfuscatedSignature(
signature = "(Lkl;)V"
)
@Export("decodeSegments")
final void decodeSegments(Buffer var1) {
this.segments = var1.readUnsignedByte();
this.durations = new int[this.segments];
this.phases = new int[this.segments];
for (int var2 = 0; var2 < this.segments; ++var2) {
this.durations[var2] = var1.readUnsignedShort();
this.phases[var2] = var1.readUnsignedShort();
}
}
@ObfuscatedName("v")
@Export("reset")
final void reset() {
this.ticks = 0;
this.phaseIndex = 0;
this.step = 0;
this.amplitude = 0;
this.max = 0;
}
@ObfuscatedName("u")
@Export("doStep")
final int doStep(int var1) {
if (this.max >= this.ticks) {
this.amplitude = this.phases[this.phaseIndex++] << 15;
if (this.phaseIndex >= this.segments) {
this.phaseIndex = this.segments - 1;
}
this.ticks = (int)((double)this.durations[this.phaseIndex] / 65536.0D * (double)var1);
if (this.ticks > this.max) {
this.step = ((this.phases[this.phaseIndex] << 15) - this.amplitude) / (this.ticks - this.max);
}
}
this.amplitude += this.step;
++this.max;
return this.amplitude - this.step >> 15;
}
}
import net.runelite.mapping.Export;
import net.runelite.mapping.Implements;
import net.runelite.mapping.ObfuscatedName;
import net.runelite.mapping.ObfuscatedSignature;
@ObfuscatedName("dm")
@Implements("SoundEnvelope")
public class SoundEnvelope {
@ObfuscatedName("z")
@Export("segments")
int segments;
@ObfuscatedName("n")
@Export("durations")
int[] durations;
@ObfuscatedName("v")
@Export("phases")
int[] phases;
@ObfuscatedName("u")
@Export("start")
int start;
@ObfuscatedName("r")
@Export("end")
int end;
@ObfuscatedName("p")
@Export("form")
int form;
@ObfuscatedName("q")
@Export("ticks")
int ticks;
@ObfuscatedName("m")
@Export("phaseIndex")
int phaseIndex;
@ObfuscatedName("y")
@Export("max")
int max;
@ObfuscatedName("i")
@Export("step")
int step;
@ObfuscatedName("c")
@Export("amplitude")
int amplitude;
SoundEnvelope() {
this.segments = 2;
this.durations = new int[2];
this.phases = new int[2];
this.durations[0] = 0;
this.durations[1] = 65535;
this.phases[0] = 0;
this.phases[1] = 65535;
}
@ObfuscatedName("z")
@ObfuscatedSignature(
signature = "(Lkl;)V"
)
@Export("decode")
final void decode(Buffer var1) {
this.form = var1.readUnsignedByte();
this.start = var1.readInt();
this.end = var1.readInt();
this.decodeSegments(var1);
}
@ObfuscatedName("n")
@ObfuscatedSignature(
signature = "(Lkl;)V"
)
@Export("decodeSegments")
final void decodeSegments(Buffer var1) {
this.segments = var1.readUnsignedByte();
this.durations = new int[this.segments];
this.phases = new int[this.segments];
for (int var2 = 0; var2 < this.segments; ++var2) {
this.durations[var2] = var1.readUnsignedShort();
this.phases[var2] = var1.readUnsignedShort();
}
}
@ObfuscatedName("v")
@Export("reset")
final void reset() {
this.ticks = 0;
this.phaseIndex = 0;
this.step = 0;
this.amplitude = 0;
this.max = 0;
}
@ObfuscatedName("u")
@Export("doStep")
final int doStep(int var1) {
if (this.max >= this.ticks) {
this.amplitude = this.phases[this.phaseIndex++] << 15;
if (this.phaseIndex >= this.segments) {
this.phaseIndex = this.segments - 1;
}
this.ticks = (int)((double)this.durations[this.phaseIndex] / 65536.0D * (double)var1);
if (this.ticks > this.max) {
this.step = ((this.phases[this.phaseIndex] << 15) - this.amplitude) / (this.ticks - this.max);
}
}
this.amplitude += this.step;
++this.max;
return this.amplitude - this.step >> 15;
}
}