[−][src]Struct terraria_protocol::packets::NpcUpdate
NPC update, such as movement.
Direction: Server -> Client.
Fields
npc_id: i16
pos: Vec2
vel: Vec2
target: u16
Player ID.
horizontal_dir: bool
vertical_dir: bool
sprite_dir: bool
spawned_from_statue: bool
ai: Vec<f32>
Can have up to 4 values.
npc_net_id: i16
player_count_scale: Option<u8>
Player count needed to set the multiplayer difficulty override.
strength_multiplier: Option<f32>
life: Option<i32>
If not present, it means the life is at its maximum.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for NpcUpdate
impl Send for NpcUpdate
impl Sync for NpcUpdate
impl Unpin for NpcUpdate
impl UnwindSafe for NpcUpdate
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,