Struct common::PlayerCharacter
source · [−]pub struct PlayerCharacter {
pub position: Point,
pub current_move: Option<MoveStatus>,
}
Expand description
Player character information, relative to the chunk the player is in.
Fields
position: Point
The position of the player within the Chunk the player is in.
current_move: Option<MoveStatus>
Information about the player’s movement, None if they’re not moving.
Trait Implementations
sourceimpl Clone for PlayerCharacter
impl Clone for PlayerCharacter
sourcefn clone(&self) -> PlayerCharacter
fn clone(&self) -> PlayerCharacter
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'de> Deserialize<'de> for PlayerCharacter
impl<'de> Deserialize<'de> for PlayerCharacter
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Serialize for PlayerCharacter
impl Serialize for PlayerCharacter
Auto Trait Implementations
impl RefUnwindSafe for PlayerCharacter
impl Send for PlayerCharacter
impl Sync for PlayerCharacter
impl Unpin for PlayerCharacter
impl UnwindSafe for PlayerCharacter
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more