pub struct OnGameCreatedFromScenarioEvent {
pub name: &'static str,
pub tick: u32,
}Expand description
Called when a game is created from a scenario. This is fired for every mod, even when the scenario’s save data already includes it. In those cases however, LuaBootstrap::on_init is not fired.
This event is not fired when the scenario is loaded via the map editor.
Fields§
§name: &'static str§tick: u32Trait Implementations§
Source§impl Clone for OnGameCreatedFromScenarioEvent
impl Clone for OnGameCreatedFromScenarioEvent
Source§fn clone(&self) -> OnGameCreatedFromScenarioEvent
fn clone(&self) -> OnGameCreatedFromScenarioEvent
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 OnGameCreatedFromScenarioEvent
Source§impl Default for OnGameCreatedFromScenarioEvent
impl Default for OnGameCreatedFromScenarioEvent
Source§fn default() -> OnGameCreatedFromScenarioEvent
fn default() -> OnGameCreatedFromScenarioEvent
Returns the “default value” for a type. Read more
impl StructuralPartialEq for OnGameCreatedFromScenarioEvent
Auto Trait Implementations§
impl Freeze for OnGameCreatedFromScenarioEvent
impl RefUnwindSafe for OnGameCreatedFromScenarioEvent
impl Send for OnGameCreatedFromScenarioEvent
impl Sync for OnGameCreatedFromScenarioEvent
impl Unpin for OnGameCreatedFromScenarioEvent
impl UnsafeUnpin for OnGameCreatedFromScenarioEvent
impl UnwindSafe for OnGameCreatedFromScenarioEvent
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