Struct arcdps::SupportedFields

source ·
pub struct SupportedFields {
Show 19 fields pub name: &'static str, pub sig: u32, pub init: Option<InitFunc>, pub release: Option<ReleaseFunc>, pub update_url: Option<UpdateUrlFunc>, pub raw_wnd_nofilter: Option<RawWndProcCallback>, pub raw_imgui: Option<RawImguiCallback>, pub raw_options_end: Option<RawOptionsCallback>, pub raw_combat: Option<RawCombatCallback>, pub raw_wnd_filter: Option<RawWndProcCallback>, pub raw_options_windows: Option<RawOptionsWindowsCallback>, pub raw_combat_local: Option<RawCombatCallback>, pub wnd_nofilter: Option<WndProcCallback>, pub combat: Option<CombatCallback>, pub imgui: Option<ImguiCallback>, pub options_end: Option<OptionsCallback>, pub combat_local: Option<CombatCallback>, pub wnd_filter: Option<WndProcCallback>, pub options_windows: Option<OptionsWindowsCallback>,
}
Expand description

Reference on what fields are currently supported by the export! macro.

This struct is not used anywhere.

Fields§

§name: &'static str

Name of the plugin.

§sig: u32

Unique signature of the plugin.

Pick a random number that is not used by other modules.

§init: Option<InitFunc>

Callback for plugin load.

§release: Option<ReleaseFunc>

Callback for plugin unload.

§update_url: Option<UpdateUrlFunc>

Callback for plugin unload.

§raw_wnd_nofilter: Option<RawWndProcCallback>

Raw WndProc callback.

§raw_imgui: Option<RawImguiCallback>

Raw ImGui callback.

§raw_options_end: Option<RawOptionsCallback>

Raw options callback.

§raw_combat: Option<RawCombatCallback>

Raw combat callback.

§raw_wnd_filter: Option<RawWndProcCallback>

Raw filtered WndProc callback.

§raw_options_windows: Option<RawOptionsWindowsCallback>

Raw options windows callback.

§raw_combat_local: Option<RawCombatCallback>

Raw local combat callback.

§wnd_nofilter: Option<WndProcCallback>

Callback for key presses.

Returning true will allow ArcDPS and GW2 to receive the key press. First parameter indicates the virtual key code. Second parameter is true if the key was pressed and false when released. Third parameter is true if the key was down before this event occurred, for example by holding it down.

§combat: Option<CombatCallback>

Callback for area combat events.

May be called asynchronously, use id to keep track of order. First event id will be 2.

At least one participant will be a party/squad member or minion of, or a buff applied by squad in the case of buff remove. Not all statechanges are present in the realtime API, see StateChange for details.

No event and src.elite == 0 indicates a tracking change. Player was added when src.prof != 0, otherwise removed. When added dst.name contains the account name, dst.id the instance id, dst.prof the Profession, dst.elite the elite Specialization, dst.is_self whether the added player is self (local player), src.team the team and dst.team the subgroup.

No event and src.elite != 0 indicates a target change. src.id will contain the new target.

Note that Arc’s realtime combat API comes with an intentional delay and filtering.

§imgui: Option<ImguiCallback>

Callback for standalone UI creation.

Provides an imgui::Ui for drawing. The second parameter is true whenever the player is not in character select, loading screens or forced cameras.

§options_end: Option<OptionsCallback>

Callback for plugin settings UI creation.

Provides an imgui::Ui for drawing.

§combat_local: Option<CombatCallback>

Callback for local combat events.

Same as combat but for events from chat log.

§wnd_filter: Option<WndProcCallback>

Callback for filtered key presses.

Same as wnd_nofilter but filtered to only notify when modifiers are pressed.

§options_windows: Option<OptionsWindowsCallback>

Callback for options windows.

Called for each window checkbox in ArcDPS settings. Last call will always be with None. Does not draw the checkbox if returning true.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.