AppXUpdatesHandler

ceramic.AppXUpdatesHandler (Class)

Internal handler for delayed update callbacks in the App class.

AppXUpdatesHandler is used by App.onceXUpdates() to schedule callbacks that execute after a specific number of update frames. This class is pooled for efficiency and managed internally by the App class.

See: App.onceXUpdates

Instance Members

owner: Entity

The entity that owns this callback. If the owner is destroyed, the callback won't execute.


numUpdates: Int

Number of update frames remaining before executing the callback. Decremented each frame until it reaches 0.


callback(): Void

The callback function to execute when numUpdates reaches 0.

Private Members

reset(): Void

Resets this handler to its initial state for reuse. Called when the handler is returned to the pool.


new(): Void

Metadata

Name Parameters
:allow ceramic.App