pub struct OnGameCreatedFromScenario;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.
Implementations§
Trait Implementations§
Source§impl Clone for OnGameCreatedFromScenario
impl Clone for OnGameCreatedFromScenario
Source§fn clone(&self) -> OnGameCreatedFromScenario
fn clone(&self) -> OnGameCreatedFromScenario
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 OnGameCreatedFromScenario
Source§impl Debug for OnGameCreatedFromScenario
impl Debug for OnGameCreatedFromScenario
impl Eq for OnGameCreatedFromScenario
impl StructuralPartialEq for OnGameCreatedFromScenario
Auto Trait Implementations§
impl Freeze for OnGameCreatedFromScenario
impl RefUnwindSafe for OnGameCreatedFromScenario
impl Send for OnGameCreatedFromScenario
impl Sync for OnGameCreatedFromScenario
impl Unpin for OnGameCreatedFromScenario
impl UnsafeUnpin for OnGameCreatedFromScenario
impl UnwindSafe for OnGameCreatedFromScenario
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