[][src]Struct rask_engine::network::packet::GameState

#[repr(C)]pub struct GameState {
    pub player_x: f32,
    pub player_y: f32,
    pub player_state: i32,
}

The GameState contains data to be sent over the network and is read by main.js.

Fields

player_x: f32player_y: f32player_state: i32

Encodes actions the player takes + status effects e.g. poisoned

Implementations

impl GameState[src]

pub fn new() -> Self[src]

Trait Implementations

impl Clone for GameState[src]

impl Copy for GameState[src]

impl Debug for GameState[src]

impl Default for GameState[src]

impl Serialize for GameState[src]

Auto Trait Implementations

impl RefUnwindSafe for GameState

impl Send for GameState

impl Sync for GameState

impl Unpin for GameState

impl UnwindSafe for GameState

Blanket Implementations

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<S, T> Collide<[T]> for S where
    T: Collide<S>, 
[src]

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> Pointable for T

type Init = T

The type for initializers.

impl<T> Resource for T where
    T: Any + Send + Sync

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> TryDefault for T where
    T: Default

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.