skadistats.clarity.processor.reader.PacketInstance 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 and CSGO 1 and 2 written in Java.
package skadistats.clarity.processor.reader;
import com.google.protobuf.GeneratedMessage;
import skadistats.clarity.ClarityException;
import skadistats.clarity.source.ResetRelevantKind;
import java.io.IOException;
public interface PacketInstance {
PacketInstance EOF = new PacketInstance<>() {
@Override
public int getKind() {
return -1;
}
@Override
public int getTick() {
return Integer.MAX_VALUE;
}
@Override
public Class getMessageClass() {
return null;
}
@Override
public ResetRelevantKind getResetRelevantKind() {
return null;
}
@Override
public GeneratedMessage parse() throws IOException {
throw new ClarityException("cannot parse EOF");
}
@Override
public void skip() {
throw new ClarityException("cannot skip EOF");
}
};
int getKind();
int getTick();
Class getMessageClass();
ResetRelevantKind getResetRelevantKind();
T parse() throws IOException;
void skip() throws IOException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy