pub struct OnSingleplayerInitEvent {
pub name: &'static str,
pub tick: u32,
}Expand description
Called when LuaGameScript::is_multiplayer changes to false. May also be raised when it was already false but a game was loaded from a save file without hosting.
Fields§
§name: &'static str§tick: u32Trait Implementations§
Source§impl Clone for OnSingleplayerInitEvent
impl Clone for OnSingleplayerInitEvent
Source§fn clone(&self) -> OnSingleplayerInitEvent
fn clone(&self) -> OnSingleplayerInitEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for OnSingleplayerInitEvent
Source§impl Debug for OnSingleplayerInitEvent
impl Debug for OnSingleplayerInitEvent
Source§impl Default for OnSingleplayerInitEvent
impl Default for OnSingleplayerInitEvent
Source§fn default() -> OnSingleplayerInitEvent
fn default() -> OnSingleplayerInitEvent
Returns the “default value” for a type. Read more
Source§impl PartialEq for OnSingleplayerInitEvent
impl PartialEq for OnSingleplayerInitEvent
impl StructuralPartialEq for OnSingleplayerInitEvent
Auto Trait Implementations§
impl Freeze for OnSingleplayerInitEvent
impl RefUnwindSafe for OnSingleplayerInitEvent
impl Send for OnSingleplayerInitEvent
impl Sync for OnSingleplayerInitEvent
impl Unpin for OnSingleplayerInitEvent
impl UnsafeUnpin for OnSingleplayerInitEvent
impl UnwindSafe for OnSingleplayerInitEvent
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