Crate evtc

Source
Expand description

Bindings for the ArcDPS EVTC API.

Includes both types for Arc’s realtime API used by plugins as well as Arc’s log API consumed by parsers.

use evtc::Event;

fn total_damage_dealt(agent: u64, target: u64, events: &[Event]) -> i32 {
    events
        .iter()
        .filter_map(|event| event.try_to_strike())
        .filter(|strike_event| {
            strike_event.strike.dealt_damage()
                && strike_event.src.id == agent
                && strike_event.dst.id == target
        })
        .map(|strike_event| strike_event.total_damage - strike_event.shield_damage as i32)
        .sum()
}

Re-exports§

Modules§

  • Agent bindings & utilities.
  • Buff bindings & utilities.
  • Effect bindings & utilities.
  • Event bindings & utilities.
  • Interfaces for extracting information from events.
  • Marker bindings & utilities.
  • Player bindings & utilities.
  • Bindings & utilities for the game’s 3d space.
  • Skill bindings & utilities.
  • Bindings & utilities for any form of strikes (direct damage).
  • Bindings & utilities for agent weapon sets.

Structs§

Enums§