pub struct Player<'a> { /* private fields */ }
Expand description
Struct containing functions and a Connection struct.
Implementations§
Source§impl Player<'_>
§Panics
All functions implemented on the Player struct might panic if the API is not running anymore or packages fail to send.
This might change in a 0.2.0 version of this crate
impl Player<'_>
§Panics
All functions implemented on the Player struct might panic if the API is not running anymore or packages fail to send. This might change in a 0.2.0 version of this crate
Sourcepub fn get_tile_pos(&mut self) -> TileVec3
pub fn get_tile_pos(&mut self) -> TileVec3
Get the tile position of the main player
Sourcepub fn set_tile_pos(&mut self, pos: &TileVec3)
pub fn set_tile_pos(&mut self, pos: &TileVec3)
Set the tile position of the main player
Auto Trait Implementations§
impl<'a> Freeze for Player<'a>
impl<'a> RefUnwindSafe for Player<'a>
impl<'a> Send for Player<'a>
impl<'a> Sync for Player<'a>
impl<'a> Unpin for Player<'a>
impl<'a> !UnwindSafe for Player<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more