Skip to main content

PlayersServerHost

Trait PlayersServerHost 

pub trait PlayersServerHost {
    // Provided method
    fn fake_player(
        &mut self,
        level: LevelRef,
        uuid: u128,
        name: &str,
    ) -> Option<PlayerRef> { ... }
}
Expand description

The server host’s methods of the players area, implemented by the game and reached through ServerHost.

Provided Methods§

fn fake_player( &mut self, level: LevelRef, uuid: u128, name: &str, ) -> Option<PlayerRef>

Side: server. Create or retrieve a connectionless player for the level currently in place.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§