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