pub struct CellEntityMethod<M: MethodCall> {
pub entity_id: u32,
pub method: M,
}Expand description
Sent by the client to the base app to call a cell method for the given entity ID.
Fields§
§entity_id: u32The entity ID on which we’ll call the method, must be set to 0 if the current player is targeted.
method: MThe method call.
Implementations§
Source§impl<M: MethodCall> CellEntityMethod<M>
impl<M: MethodCall> CellEntityMethod<M>
Sourcepub fn write(self, writer: BundleElementWriter<'_>)
pub fn write(self, writer: BundleElementWriter<'_>)
Write this cell entity method call to the given bundle.
Sourcepub fn read(
reader: TopElementReader<'_, '_>,
) -> BundleResult<BundleElement<Self>>
pub fn read( reader: TopElementReader<'_, '_>, ) -> BundleResult<BundleElement<Self>>
Read this cell entity method call from the given top element reader.
Trait Implementations§
Source§impl<M: Clone + MethodCall> Clone for CellEntityMethod<M>
impl<M: Clone + MethodCall> Clone for CellEntityMethod<M>
Source§fn clone(&self) -> CellEntityMethod<M>
fn clone(&self) -> CellEntityMethod<M>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<M> Freeze for CellEntityMethod<M>where
M: Freeze,
impl<M> RefUnwindSafe for CellEntityMethod<M>where
M: RefUnwindSafe,
impl<M> Send for CellEntityMethod<M>where
M: Send,
impl<M> Sync for CellEntityMethod<M>where
M: Sync,
impl<M> Unpin for CellEntityMethod<M>where
M: Unpin,
impl<M> UnwindSafe for CellEntityMethod<M>where
M: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more