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§
pub use crate::agent::Affinity;
pub use crate::agent::AgentId;
pub use crate::agent::AgentKind;
pub use crate::buff::Attribute;
pub use crate::buff::BuffCategory;
pub use crate::buff::BuffCycle;
pub use crate::buff::BuffRemove;
pub use crate::event::Event;
pub use crate::event::EventCategory;
pub use crate::event::EventKind;
pub use crate::extract::TryExtract;
pub use crate::player::Profession;
pub use crate::player::Specialization;
pub use crate::position::Position;
pub use crate::skill::Activation;
pub use crate::skill::CustomSkill;
pub use crate::strike::Strike;
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§
- GW2 client language.
- Combat state change kinds.