pub struct CollisionMaintenanceThinker<T: SceneType + 'static> { /* private fields */ }
Implementations
sourceimpl<T: SceneType + 'static> CollisionMaintenanceThinker<T>
impl<T: SceneType + 'static> CollisionMaintenanceThinker<T>
pub fn new() -> CollisionMaintenanceThinker<T>
Trait Implementations
sourceimpl<T: SceneType + 'static> ThinkerSystem<T> for CollisionMaintenanceThinker<T>
impl<T: SceneType + 'static> ThinkerSystem<T> for CollisionMaintenanceThinker<T>
sourcefn start(&mut self, args: ThinkerArgs<'_, T>)
fn start(&mut self, args: ThinkerArgs<'_, T>)
Called before the first frame of logic processing. You can use this to spawn in objects and do any other necessary setup. Read more
sourcefn think(&mut self, args: ThinkerArgs<'_, T>)
fn think(&mut self, args: ThinkerArgs<'_, T>)
Called once every logic frame. This is where you do your main processing.
sourcefn priority(&self) -> i32
fn priority(&self) -> i32
Used to determine the order of execution of each ThinkerSystem. Lower number priority systems are executed first. Read more
sourcefn start_late(&mut self, args: ThinkerArgs<'_, T>)
fn start_late(&mut self, args: ThinkerArgs<'_, T>)
Called after ThinkerSystem::start() but before the first frame of logic processing. This is useful if you need to do initialization tasks after any deferred actions such as object spawning. Read more
sourcefn end(&mut self, args: ThinkerArgs<'_, T>)
fn end(&mut self, args: ThinkerArgs<'_, T>)
Called when the scene is ending, such as when the gameloop is switching to a new scene. This is a good place to do resource cleanup, save settings and persistent data, or other tasks. Read more
Auto Trait Implementations
impl<T> RefUnwindSafe for CollisionMaintenanceThinker<T> where
T: RefUnwindSafe,
impl<T> Send for CollisionMaintenanceThinker<T> where
T: Send,
impl<T> Sync for CollisionMaintenanceThinker<T> where
T: Sync,
impl<T> Unpin for CollisionMaintenanceThinker<T> where
T: Unpin,
impl<T> UnwindSafe for CollisionMaintenanceThinker<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more