Trait veloren_common::states::behavior::CharacterBehavior

source ·
pub trait CharacterBehavior {
Show 15 methods // Required method fn behavior( &self, data: &JoinData<'_>, output_events: &mut OutputEvents<'_, '_>, ) -> StateUpdate; // Provided methods fn swap_equipped_weapons( &self, data: &JoinData<'_>, _output_events: &mut OutputEvents<'_, '_>, ) -> StateUpdate { ... } fn manipulate_loadout( &self, data: &JoinData<'_>, _output_events: &mut OutputEvents<'_, '_>, _inv_action: InventoryAction, ) -> StateUpdate { ... } fn wield( &self, data: &JoinData<'_>, _output_events: &mut OutputEvents<'_, '_>, ) -> StateUpdate { ... } fn glide_wield( &self, data: &JoinData<'_>, _output_events: &mut OutputEvents<'_, '_>, ) -> StateUpdate { ... } fn unwield( &self, data: &JoinData<'_>, _output_events: &mut OutputEvents<'_, '_>, ) -> StateUpdate { ... } fn sit( &self, data: &JoinData<'_>, _output_events: &mut OutputEvents<'_, '_>, ) -> StateUpdate { ... } fn dance( &self, data: &JoinData<'_>, _output_events: &mut OutputEvents<'_, '_>, ) -> StateUpdate { ... } fn pet( &self, data: &JoinData<'_>, _output_events: &mut OutputEvents<'_, '_>, _target_uid: Uid, ) -> StateUpdate { ... } fn sneak( &self, data: &JoinData<'_>, _output_events: &mut OutputEvents<'_, '_>, ) -> StateUpdate { ... } fn stand( &self, data: &JoinData<'_>, _output_events: &mut OutputEvents<'_, '_>, ) -> StateUpdate { ... } fn talk( &self, data: &JoinData<'_>, _output_events: &mut OutputEvents<'_, '_>, ) -> StateUpdate { ... } fn start_input( &self, data: &JoinData<'_>, input: InputKind, target_entity: Option<Uid>, select_pos: Option<Vec3<f32>>, ) -> StateUpdate { ... } fn cancel_input(&self, data: &JoinData<'_>, input: InputKind) -> StateUpdate { ... } fn handle_event( &self, data: &JoinData<'_>, output_events: &mut OutputEvents<'_, '_>, event: ControlAction, ) -> StateUpdate { ... }
}

Required Methods§

source

fn behavior( &self, data: &JoinData<'_>, output_events: &mut OutputEvents<'_, '_>, ) -> StateUpdate

Provided Methods§

source

fn swap_equipped_weapons( &self, data: &JoinData<'_>, _output_events: &mut OutputEvents<'_, '_>, ) -> StateUpdate

source

fn manipulate_loadout( &self, data: &JoinData<'_>, _output_events: &mut OutputEvents<'_, '_>, _inv_action: InventoryAction, ) -> StateUpdate

source

fn wield( &self, data: &JoinData<'_>, _output_events: &mut OutputEvents<'_, '_>, ) -> StateUpdate

source

fn glide_wield( &self, data: &JoinData<'_>, _output_events: &mut OutputEvents<'_, '_>, ) -> StateUpdate

source

fn unwield( &self, data: &JoinData<'_>, _output_events: &mut OutputEvents<'_, '_>, ) -> StateUpdate

source

fn sit( &self, data: &JoinData<'_>, _output_events: &mut OutputEvents<'_, '_>, ) -> StateUpdate

source

fn dance( &self, data: &JoinData<'_>, _output_events: &mut OutputEvents<'_, '_>, ) -> StateUpdate

source

fn pet( &self, data: &JoinData<'_>, _output_events: &mut OutputEvents<'_, '_>, _target_uid: Uid, ) -> StateUpdate

source

fn sneak( &self, data: &JoinData<'_>, _output_events: &mut OutputEvents<'_, '_>, ) -> StateUpdate

source

fn stand( &self, data: &JoinData<'_>, _output_events: &mut OutputEvents<'_, '_>, ) -> StateUpdate

source

fn talk( &self, data: &JoinData<'_>, _output_events: &mut OutputEvents<'_, '_>, ) -> StateUpdate

source

fn start_input( &self, data: &JoinData<'_>, input: InputKind, target_entity: Option<Uid>, select_pos: Option<Vec3<f32>>, ) -> StateUpdate

source

fn cancel_input(&self, data: &JoinData<'_>, input: InputKind) -> StateUpdate

source

fn handle_event( &self, data: &JoinData<'_>, output_events: &mut OutputEvents<'_, '_>, event: ControlAction, ) -> StateUpdate

Implementors§

source§

impl CharacterBehavior for veloren_common::states::basic_aura::Data

source§

impl CharacterBehavior for veloren_common::states::basic_beam::Data

source§

impl CharacterBehavior for veloren_common::states::basic_block::Data

source§

impl CharacterBehavior for veloren_common::states::basic_melee::Data

source§

impl CharacterBehavior for veloren_common::states::basic_ranged::Data

source§

impl CharacterBehavior for veloren_common::states::basic_summon::Data

source§

impl CharacterBehavior for veloren_common::states::blink::Data

source§

impl CharacterBehavior for veloren_common::states::boost::Data

source§

impl CharacterBehavior for veloren_common::states::charged_melee::Data

source§

impl CharacterBehavior for veloren_common::states::charged_ranged::Data

source§

impl CharacterBehavior for veloren_common::states::climb::Data

source§

impl CharacterBehavior for veloren_common::states::combo_melee2::Data

source§

impl CharacterBehavior for veloren_common::states::dance::Data

source§

impl CharacterBehavior for veloren_common::states::dash_melee::Data

source§

impl CharacterBehavior for veloren_common::states::dive_melee::Data

source§

impl CharacterBehavior for veloren_common::states::equipping::Data

source§

impl CharacterBehavior for veloren_common::states::finisher_melee::Data

source§

impl CharacterBehavior for veloren_common::states::glide::Data

source§

impl CharacterBehavior for veloren_common::states::glide_wield::Data

source§

impl CharacterBehavior for veloren_common::states::idle::Data

source§

impl CharacterBehavior for veloren_common::states::leap_melee::Data

source§

impl CharacterBehavior for veloren_common::states::leap_shockwave::Data

source§

impl CharacterBehavior for veloren_common::states::music::Data

source§

impl CharacterBehavior for veloren_common::states::pet::Data

source§

impl CharacterBehavior for veloren_common::states::rapid_melee::Data

source§

impl CharacterBehavior for veloren_common::states::regrow_head::Data

source§

impl CharacterBehavior for veloren_common::states::repeater_ranged::Data

source§

impl CharacterBehavior for veloren_common::states::riposte_melee::Data

source§

impl CharacterBehavior for veloren_common::states::roll::Data

source§

impl CharacterBehavior for veloren_common::states::self_buff::Data

source§

impl CharacterBehavior for veloren_common::states::shockwave::Data

source§

impl CharacterBehavior for veloren_common::states::sit::Data

source§

impl CharacterBehavior for veloren_common::states::skate::Data

source§

impl CharacterBehavior for veloren_common::states::sprite_interact::Data

source§

impl CharacterBehavior for veloren_common::states::sprite_summon::Data

source§

impl CharacterBehavior for veloren_common::states::static_aura::Data

source§

impl CharacterBehavior for veloren_common::states::stunned::Data

source§

impl CharacterBehavior for veloren_common::states::talk::Data

source§

impl CharacterBehavior for veloren_common::states::transform::Data

source§

impl CharacterBehavior for veloren_common::states::use_item::Data

source§

impl CharacterBehavior for veloren_common::states::wallrun::Data

source§

impl CharacterBehavior for veloren_common::states::wielding::Data