[−][src]Struct pokemon_rust::map::MapHandler
Fields
loaded_maps: HashMap<String, Map>next_character_id: usizecharacters: HashMap<CharacterId, CharacterData>Methods
impl MapHandler[src]
pub fn get_forward_tile(
&self,
facing_direction: &Direction,
tile_data: &TileData
) -> TileData[src]
&self,
facing_direction: &Direction,
tile_data: &TileData
) -> TileData
pub fn is_tile_blocked(&self, tile_data: &TileData) -> bool[src]
pub fn get_action_at(&self, tile_data: &TileData) -> Option<ValidatedGameAction>[src]
pub fn get_script(&self, map_id: &MapId, script_index: usize) -> &GameScript[src]
pub fn get_map_scripts<'a>(
&'a self,
map_id: &'a MapId,
kind: MapScriptKind
) -> impl Iterator<Item = ScriptEvent> + 'a[src]
&'a self,
map_id: &'a MapId,
kind: MapScriptKind
) -> impl Iterator<Item = ScriptEvent> + 'a
pub fn get_nearby_connections(
&self,
tile_data: &TileData
) -> impl Iterator<Item = (&MapCoordinates, &MapConnection)>[src]
&self,
tile_data: &TileData
) -> impl Iterator<Item = (&MapCoordinates, &MapConnection)>
pub fn make_map_id(&self, map_id: String) -> MapId[src]
pub fn register_npc(
&mut self,
map_id: &MapId,
position: MapCoordinates,
entity: Entity
) -> CharacterId[src]
&mut self,
map_id: &MapId,
position: MapCoordinates,
entity: Entity
) -> CharacterId
pub fn get_character_id_by_entity(&self, entity: Entity) -> CharacterId[src]
pub fn get_character_by_id(&self, character_id: CharacterId) -> Entity[src]
pub fn map_to_world_coordinates(
&self,
map_id: &MapId,
tile: &MapCoordinates
) -> WorldCoordinates[src]
&self,
map_id: &MapId,
tile: &MapCoordinates
) -> WorldCoordinates
pub fn mark_tile_as_solid(&mut self, tile_data: &TileData)[src]
pub fn remove_solid_mark(&mut self, tile_data: &TileData)[src]
pub fn get_character_current_map(&self, character_id: CharacterId) -> &MapId[src]
pub fn get_character_natural_map(&self, character_id: CharacterId) -> &MapId[src]
pub fn change_npc_tile(&mut self, from: &TileData, to: &TileData)[src]
Auto Trait Implementations
impl RefUnwindSafe for MapHandler
impl Send for MapHandler
impl Sync for MapHandler
impl Unpin for MapHandler
impl UnwindSafe for MapHandler
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]
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
fn adapt_into_using<M>(self, method: M) -> D where
M: TransformMatrix<Swp, Dwp, T>, [src]
M: TransformMatrix<Swp, Dwp, T>,
fn adapt_into(self) -> D[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
T: Any,
fn get_type_id(&self) -> TypeId
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> Erased for T
impl<T> Event for T where
T: Send + Sync + 'static,
T: Send + Sync + 'static,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> Resource for T where
T: Any + Send + Sync,
T: Any + Send + Sync,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn is_in_subset(&self) -> bool
unsafe fn to_subset_unchecked(&self) -> SS
fn from_subset(element: &SS) -> SP
impl<T> Supports<T> for 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,