Struct evoke::server::DummyRemotePlayer
source · [−]pub struct DummyRemotePlayer;
Expand description
This type is dummy implementation of RemotePlayer
trait.
Trait Implementations
sourceimpl RemotePlayer for DummyRemotePlayer
impl RemotePlayer for DummyRemotePlayer
type Input = ()
type Input = ()
Player input type.
It is taken from input message sent with associated player id.
RemotePlayer::apply_input
processes this data. Read more
type Info = ()
type Info = ()
Player info type. It is taken from message sent when new player is added by connected client. Read more
sourcefn accept(_info: Self::Info, _pid: PlayerId, _world: &mut World) -> Result<Self>
fn accept(_info: Self::Info, _pid: PlayerId, _world: &mut World) -> Result<Self>
Verifies player info. Read more
sourcefn apply_input(
&mut self,
_entity: EntityId,
_world: &mut World,
_pack: Self::Input
)
fn apply_input(
&mut self,
_entity: EntityId,
_world: &mut World,
_pack: Self::Input
)
Process input sent by associated player. This function is called for each entity that receives commands from the player. Read more
sourcefn disconnected(self, world: &mut World) where
Self: Sized,
fn disconnected(self, world: &mut World) where
Self: Sized,
Optional hook to perform an action when player is removed.
Auto Trait Implementations
impl RefUnwindSafe for DummyRemotePlayer
impl Send for DummyRemotePlayer
impl Sync for DummyRemotePlayer
impl Unpin for DummyRemotePlayer
impl UnwindSafe for DummyRemotePlayer
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Component for T where
T: 'static,
impl<T> Component for T where
T: 'static,
sourcepub fn info() -> ComponentInfo
pub fn info() -> ComponentInfo
Returns ComponentInfo
for this component type.
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more