Crate evtc_parse

Source
Expand description

Parsing for ArcDPS EVTC logs.

§Usage

Use the parse_file function to easily parse a Log from a file path.

match evtc_parse::parse_file("path/to/log.evtc") {
    Ok(log) => println!("Log for boss id {}", log.header.boss_id),
    Err(err) => eprintln!("Encountered error {}", err),
}

A Log can also be parsed from any input implementing Read.

use evtc_parse::{Log, Parse};
use std::io;

fn parse_from_read(input: &mut impl io::Read) -> Log {
    Log::parse(input).expect("failed to parse")
}

Note that ArcDPS can save compressed log files with .zevtc as file extension. Enabling the "zevtc" or "zip" feature adds support for compressed logs.

Modules§

agent
Agent bindings & utilities.
buff
Buff bindings & utilities.
content
Bindings & utilities for GUIDs appearing in events.
effect
Effect bindings & utilities.
event
Event bindings & utilities.
extract
Interfaces for extracting information from events.
marker
Marker bindings & utilities.
missile
Missile bindings & utilities.
player
Player bindings & utilities.
position
Bindings & utilities for the game’s 3d space.
skill
Skill bindings & utilities.
strike
Bindings & utilities for any form of strikes (direct damage).
weapon
Bindings & utilities for agent weapon sets.

Structs§

Agent
An EVTC agent.
AgentId
Ids for an agent.
Event
ArcDPS event.
Header
An EVTC log header.
LanguageIter
An iterator over the variants of Language
Log
An EVTC log.
LogTransformed
A transformed EVTC log.
Position
Positional information.
Ruleset
Skill
An EVTC skill definition.
StateChangeIter
An iterator over the variants of StateChange

Enums§

Activation
Skill activation (cast).
Affinity
Whether the agent is an ally or enemy.
AgentKind
Possible agent kinds.
Attribute
Attributes for buff formulas.
BuffCategory
Buff info category after 13 December 2022.
BuffCycle
Combat buff cycle.
BuffRemove
Combat buff remove.
CustomSkill
ArcDPS custom skill ids.
EventCategory
Possible Event categories.
EventKind
Possible Event kinds.
Language
GW2 client language.
ParseError
A possible error occurring during parsing.
Profession
Player profession.
Specialization
Player specialization.
StateChange
Combat state change kinds.
Strike
Strike types.

Traits§

Parse
Interface for parsing a value from a Read input.
Save
Interface for saving a value into a Write output.
TryExtract
Attempts to extract information from a combat event.

Functions§

parse_file
Parses a Log from a given Path to a log file.
parse_zevtc
Parses a Log from a compressed zevtc input.