#[non_exhaustive]
#[repr(u16)]
pub enum Encounter {
Show 44 variants ValeGuardian, Gorseval, Sabetha, Slothasor, BanditTrio, Matthias, KeepConstruct, TwistedCastle, Xera, Cairn, MursaatOverseer, Samarog, Deimos, SoullessHorror, RiverOfSouls, BrokenKing, EaterOfSouls, StatueOfDarkness, VoiceInTheVoid, ConjuredAmalgamate, TwinLargos, Qadim, CardinalAdina, CardinalSabir, QadimThePeerless, StandardKittyGolem, MediumKittyGolem, LargeKittyGolem, Ai, Skorvald, Artsariiv, Arkk, MAMA, Siax, Ensolyss, IcebroodConstruct, SuperKodanBrothers, FraenirOfJormag, Boneskinner, WhisperOfJormag, CaptainMaiTrin, Ankka, MinisterLi, Dragonvoid,
}
Expand description

Enum containing all encounters with their IDs.

An encounter is a fight or event for which a log can exist. An encounter consists of no, one or multiple bosses. Most encounters map 1:1 to a boss (like Vale Guardian), however there are some encounters with multiple bosses (like Twin Largos), and even encounters without bosses (like the River of Souls).

Note that the meaning of “encounter” in the Guild Wars 2 Wiki is not the same as what Encounter represents. In many cases, they match, however there are some encounters which have no associated Encounter (like Spirit Run or Escort) and some cases where multiple Encounters exist for a single encounter (like the Statues of Grenth encounter in the Hall of Chains).

This enum is non-exhaustive to ensure that future encounters can be added without inducing a breaking change.

Variants (Non-exhaustive)

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.

ValeGuardian

Gorseval

Sabetha

Slothasor

BanditTrio

The “Protect the caged prisoners” event in Salvation Pass.

Consists of Boss::Berg, Boss::Zane and Boss::Narella.

Guild Wars 2 Wiki

Matthias

KeepConstruct

TwistedCastle

The “Traverse the Twisted Castle” encounter, between Keep Construct and Xera.

Guild Wars 2 Wiki

Xera

Cairn

MursaatOverseer

Samarog

Deimos

SoullessHorror

RiverOfSouls

The River of Souls is the Desmina escort event and an encounter that does not have a boss.

Guild Wars 2 Wiki

BrokenKing

EaterOfSouls

StatueOfDarkness

The Statue of Darkness consists of killing the Eye of Judgment and the Eye of Fate.

Colloquially known as just “eyes”.

Guild Wars 2 Wiki

VoiceInTheVoid

ConjuredAmalgamate

TwinLargos

Qadim

CardinalAdina

CardinalSabir

QadimThePeerless

StandardKittyGolem

MediumKittyGolem

LargeKittyGolem

Ai

Skorvald

Artsariiv

Arkk

MAMA

Siax

Ensolyss

IcebroodConstruct

SuperKodanBrothers

Internal name for the “Voice of the Fallen and Claw of the Fallen” strike mission.

FraenirOfJormag

Boneskinner

WhisperOfJormag

CaptainMaiTrin

Ankka

MinisterLi

Dragonvoid

Implementations

Return all possible bosses that can appear in this encounter.

This returns the possible boss IDs, not actual agents. For a similar function check Log::boss_agents.

Note that not all of them have to be present in a log, for example if the encounter stopped before all of them spawned.

Converts a combat ID as given in the arcdps header into the correct encounter.

This properly takes care of encounters with multiple bosses or which could be saved as multiple bosses.

assert_eq!(Encounter::from_header_id(0x3C4E), Some(Encounter::ValeGuardian));
assert_eq!(Encounter::from_header_id(0x5261), Some(Encounter::TwinLargos));

Returns the game mode of the encounter.

This is one of GameMode::Raid, GameMode::Fractal, GameMode::Golem or GameMode::Strike.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Converts an i64 to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more

Converts an u64 to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more

Converts an isize to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more

Converts an i8 to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more

Converts an i16 to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more

Converts an i32 to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more

Converts an i128 to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more

Converts a usize to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more

Converts an u8 to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more

Converts an u16 to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more

Converts an u32 to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more

Converts an u128 to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more

Converts a f32 to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more

Converts a f64 to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.