skadistats.clarity.model.s1.S1CombatLogIndices 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.model.s1;
import skadistats.clarity.model.GameEventDescriptor;
public class S1CombatLogIndices {
public S1CombatLogIndices(GameEventDescriptor descriptor) {
typeIdx = descriptor.getIndexForKey("type");
sourceNameIdx = descriptor.getIndexForKey("sourcename");
targetNameIdx = descriptor.getIndexForKey("targetname");
attackerNameIdx = descriptor.getIndexForKey("attackername");
inflictorNameIdx = descriptor.getIndexForKey("inflictorname");
attackerIllusionIdx = descriptor.getIndexForKey("attackerillusion");
targetIllusionIdx = descriptor.getIndexForKey("targetillusion");
valueIdx = descriptor.getIndexForKey("value");
healthIdx = descriptor.getIndexForKey("health");
timestampIdx = descriptor.getIndexForKey("timestamp");
targetSourceNameIdx = descriptor.getIndexForKey("targetsourcename");
timestampRawIdx = descriptor.getIndexForKey("timestampraw");
attackerHeroIdx = descriptor.getIndexForKey("attackerhero");
targetHeroIdx = descriptor.getIndexForKey("targethero");
abilityToggleOnIdx = descriptor.getIndexForKey("ability_toggle_on");
abilityToggleOffIdx = descriptor.getIndexForKey("ability_toggle_off");
abilityLevelIdx = descriptor.getIndexForKey("ability_level");
goldReasonIdx = descriptor.getIndexForKey("gold_reason");
xpReasonIdx = descriptor.getIndexForKey("xp_reason");
}
int typeIdx;
int sourceNameIdx;
int targetNameIdx;
int attackerNameIdx;
int inflictorNameIdx;
int attackerIllusionIdx;
int targetIllusionIdx;
int valueIdx;
int healthIdx;
int timestampIdx;
int targetSourceNameIdx;
Integer timestampRawIdx;
Integer attackerHeroIdx;
Integer targetHeroIdx;
Integer abilityToggleOnIdx;
Integer abilityToggleOffIdx;
Integer abilityLevelIdx;
Integer goldReasonIdx;
Integer xpReasonIdx;
}