pub struct ScriptRaisedDestroySegmentedUnitEvent {
pub name: &'static str,
pub segmented_unit: LuaSegmentedUnit,
pub tick: u32,
}Expand description
A static event that mods can use to tell other mods they destroyed a segmented unit by script. This event is only raised if a mod does so with LuaBootstrap::raise_event, or LuaBootstrap::raise_script_destroy_segmented_unit, or when raise_destroy is passed to LuaSegmentedUnit::destroy.
Fields§
§name: &'static str§segmented_unit: LuaSegmentedUnit§tick: u32Trait Implementations§
Source§impl Clone for ScriptRaisedDestroySegmentedUnitEvent
impl Clone for ScriptRaisedDestroySegmentedUnitEvent
Source§fn clone(&self) -> ScriptRaisedDestroySegmentedUnitEvent
fn clone(&self) -> ScriptRaisedDestroySegmentedUnitEvent
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 ScriptRaisedDestroySegmentedUnitEvent
Source§impl Default for ScriptRaisedDestroySegmentedUnitEvent
impl Default for ScriptRaisedDestroySegmentedUnitEvent
Source§fn default() -> ScriptRaisedDestroySegmentedUnitEvent
fn default() -> ScriptRaisedDestroySegmentedUnitEvent
Returns the “default value” for a type. Read more
impl StructuralPartialEq for ScriptRaisedDestroySegmentedUnitEvent
Auto Trait Implementations§
impl Freeze for ScriptRaisedDestroySegmentedUnitEvent
impl RefUnwindSafe for ScriptRaisedDestroySegmentedUnitEvent
impl Send for ScriptRaisedDestroySegmentedUnitEvent
impl Sync for ScriptRaisedDestroySegmentedUnitEvent
impl Unpin for ScriptRaisedDestroySegmentedUnitEvent
impl UnsafeUnpin for ScriptRaisedDestroySegmentedUnitEvent
impl UnwindSafe for ScriptRaisedDestroySegmentedUnitEvent
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