pub struct OnForceCreatedEvent {
pub force: LuaForce,
pub name: &'static str,
pub tick: u32,
}Expand description
Called when a new force is created using game.create_force()
This is not called when the default forces ('player', 'enemy', 'neutral') are created as they will always exist.
Fields§
§force: LuaForce§name: &'static str§tick: u32Trait Implementations§
Source§impl Clone for OnForceCreatedEvent
impl Clone for OnForceCreatedEvent
Source§fn clone(&self) -> OnForceCreatedEvent
fn clone(&self) -> OnForceCreatedEvent
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 OnForceCreatedEvent
Source§impl Debug for OnForceCreatedEvent
impl Debug for OnForceCreatedEvent
Source§impl Default for OnForceCreatedEvent
impl Default for OnForceCreatedEvent
Source§fn default() -> OnForceCreatedEvent
fn default() -> OnForceCreatedEvent
Returns the “default value” for a type. Read more
Source§impl PartialEq for OnForceCreatedEvent
impl PartialEq for OnForceCreatedEvent
impl StructuralPartialEq for OnForceCreatedEvent
Auto Trait Implementations§
impl Freeze for OnForceCreatedEvent
impl RefUnwindSafe for OnForceCreatedEvent
impl Send for OnForceCreatedEvent
impl Sync for OnForceCreatedEvent
impl Unpin for OnForceCreatedEvent
impl UnsafeUnpin for OnForceCreatedEvent
impl UnwindSafe for OnForceCreatedEvent
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