[−][src]Struct pokemon_rust::map::map::Map

pub struct Map {
    pub(super) map_id: MapId,
    pub(super) map_name: String,
    pub(super) reference_point: WorldCoordinates,
    pub(super) terrain_entity: Entity,
    pub(super) solids: HashMap<MapCoordinates, Tile>,
    pub(super) decoration_entity: Entity,
    pub script_repository: Vec<GameScript>,
    pub actions: HashMap<MapCoordinates, GameAction>,
    pub(super) map_scripts: Vec<MapScript>,
    pub(super) connections: HashMap<MapCoordinates, MapConnection>,
}

Fields

map_id: MapIdmap_name: Stringreference_point: WorldCoordinates

The Reference Point of this map, which corresponds to the coordinates of its bottom-left corner.

terrain_entity: Entitysolids: HashMap<MapCoordinates, Tile>decoration_entity: Entityscript_repository: Vec<GameScript>actions: HashMap<MapCoordinates, GameAction>map_scripts: Vec<MapScript>connections: HashMap<MapCoordinates, MapConnection>

Methods

impl Map[src]

pub(super) fn from_initialized_map(
    map: InitializedMap
) -> Map
[src]

pub(super) fn map_to_world_coordinates(
    &self,
    position: &MapCoordinates
) -> WorldCoordinates
[src]

pub(super) fn player_to_map_coordinates(
    &self,
    position: &PlayerCoordinates
) -> MapCoordinates
[src]

pub(super) fn is_tile_blocked(
    &self,
    position: &PlayerCoordinates
) -> bool
[src]

pub(super) fn get_map_scripts<'a>(
    &'a self,
    kind: MapScriptKind
) -> impl Iterator<Item = ScriptEvent> + 'a
[src]

Trait Implementations

impl Component for Map[src]

type Storage = DenseVecStorage<Self>

Associated storage type for this component.

Auto Trait Implementations

impl RefUnwindSafe for Map

impl Send for Map

impl Sync for Map

impl Unpin for Map

impl UnwindSafe for Map

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>,