All Downloads are FREE. Search and download functionalities are using the official Maven repository.

skadistats.clarity.model.s1.S1CombatLogIndices Maven / Gradle / Ivy

Go to download

Clarity is an open source replay parser for Dota 2, CSGO, CS2 and Deadlock written in Java.

There is a newer version: 3.1.1
Show newest version
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;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy