Struct veloren_common::comp::character_state::StateUpdate
source · pub struct StateUpdate {
pub character: CharacterState,
pub pos: Pos,
pub vel: Vel,
pub ori: Ori,
pub density: Density,
pub energy: Energy,
pub swap_equipped_weapons: bool,
pub should_strafe: bool,
pub queued_inputs: BTreeMap<InputKind, InputAttr>,
pub removed_inputs: Vec<InputKind>,
pub character_activity: CharacterActivity,
}
Expand description
Data returned from character behavior fn’s to Character Behavior System.
Fields§
§character: CharacterState
§pos: Pos
§vel: Vel
§ori: Ori
§density: Density
§energy: Energy
§swap_equipped_weapons: bool
§should_strafe: bool
§queued_inputs: BTreeMap<InputKind, InputAttr>
§removed_inputs: Vec<InputKind>
§character_activity: CharacterActivity
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for StateUpdate
impl Send for StateUpdate
impl Sync for StateUpdate
impl Unpin for StateUpdate
impl UnwindSafe for StateUpdate
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more