[−][src]Struct pokemon_rust::entities::character::NpcBuilder

pub struct NpcBuilder {
    pub map_id: String,
    pub position: MapCoordinates,
    pub kind: String,
    pub facing_direction: Direction,
    pub initial_action: MovementType,
}

Ergonomic type for representing an NPC under construction.

Fields

map_id: String

The map where this NPC will be initially located.

position: MapCoordinates

The initial position of this NPC within the map.

kind: String

The kind of this NPC. The data related to this NPC will be loaded from assets/characters/{kind}/character.ron.

facing_direction: Direction

The direction that this NPC will be initially facing.

initial_action: MovementType

The initial kind of movement that this NPC will do.

Auto Trait Implementations

impl RefUnwindSafe for NpcBuilder

impl Send for NpcBuilder

impl Sync for NpcBuilder

impl Unpin for NpcBuilder

impl UnwindSafe for NpcBuilder

Blanket Implementations

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
    D: AdaptFrom<S, Swp, Dwp, T>,
    Dwp: WhitePoint,
    Swp: WhitePoint,
    T: Component + Float, 
[src]

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

impl<T> Any for T where
    T: Any, 

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<T> Erased for T

impl<T> Event for T where
    T: Send + Sync + 'static, 

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Resource for T where
    T: Any + Send + Sync, 

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SetParameter for T

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T> Supports<T> for T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,