[][src]Struct rask_server::games::RaskGame

pub struct RaskGame {
    game: (),
    group: SendGroup,
    users: Vec<User>,
    will_to_live: bool,
    res_cache: HashMap<u32, Vec<u8>>,
}

Fields

game: ()group: SendGroupusers: Vec<User>will_to_live: boolres_cache: HashMap<u32, Vec<u8>>

Implementations

impl RaskGame[src]

pub fn new(group: SendGroup) -> Self[src]

fn push_buffer(
    &mut self,
    buf_id: u32,
    user_id: usize
) -> Result<(), ServerError>
[src]

fn load_char(&mut self, chr: CharacterInfo) -> Result<(), ServerError>[src]

fn load_resource(&mut self, res: ResourceInfo) -> Result<(), ServerError>[src]

fn level_one(&mut self, uid: usize) -> Result<(), ServerError>[src]

fn game_loop(self)[src]

fn add_user(&mut self, user: &User)[src]

fn get_messages(&mut self) -> Vec<Message>[src]

Trait Implementations

impl Game for RaskGame[src]

Auto Trait Implementations

impl !RefUnwindSafe for RaskGame

impl Send for RaskGame

impl !Sync for RaskGame

impl Unpin for RaskGame

impl !UnwindSafe for RaskGame

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

type Output = T

Should always be Self

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.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,