skadistats.clarity.io.decoder.FloatCoordMpDecoder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of clarity Show documentation
Show all versions of clarity Show documentation
Clarity is an open source replay parser for Dota 2, CSGO, CS2 and Deadlock written in Java.
package skadistats.clarity.io.decoder;
import skadistats.clarity.io.bitstream.BitStream;
public class FloatCoordMpDecoder implements Decoder {
private final boolean integral;
private final boolean lowPrecision;
public FloatCoordMpDecoder(boolean integral, boolean lowPrecision) {
this.integral = integral;
this.lowPrecision = lowPrecision;
}
@Override
public Float decode(BitStream bs) {
return bs.readCoordMp(bs, integral, lowPrecision);
}
}