Trait CoordinateSystem
pokemon_rust::map::coordinates
pub trait CoordinateSystem { type CoordinateType; fn x(&self) -> Self::CoordinateType; fn y(&self) -> Self::CoordinateType; }
type CoordinateType
fn x(&self) -> Self::CoordinateType
fn y(&self) -> Self::CoordinateType
impl CoordinateSystem for MapCoordinates
type CoordinateType = u32
fn x(&self) -> u32
fn y(&self) -> u32
impl CoordinateSystem for PlayerCoordinates
type CoordinateType = f32
fn x(&self) -> f32
fn y(&self) -> f32
impl CoordinateSystem for WorldCoordinates
type CoordinateType = i32
fn x(&self) -> i32
fn y(&self) -> i32