API reference
API reference
Select your platform
No SDKs available
No versions available

SystemManager

SystemManager

class SystemManager

Constructors

NameSummary
SystemManager
constructor()

Functions

NameSummary
associateScene
fun associateScene(scene: Scene)
Associates the manager with a scene.
delete
fun delete(ent: Entity)
Deletes an entity from all systems in the manager.
destroy
fun destroy()
Destroys all systems in the manager.
execute
fun execute()
Executes all systems in the manager.
findSystem
inline fun <T : SystemBase> findSystem(): T
fun <T : SystemBase> findSystem(clazz: KClass<T>): T
Finds a system by its class.
getScene
fun getScene(): Scene
Returns the scene associated with the manager.
registerEarlySystem
fun registerEarlySystem(system: SystemBase)
Registers an early system that will be executed before other systems.
registerLateSystem
fun registerLateSystem(system: SystemBase)
Registers a late system that will be executed after other systems.
registerSystem
fun registerSystem(system: SystemBase)
Adds a system to the manager, which will be called for all operations.
setEarlySystems
fun setEarlySystems(earlySystems: List<SystemBase>)
Sets the early systems in the manager.
setLateSystems
fun setLateSystems(lateSystems: List<SystemBase>)
Sets the late systems in the manager.
sortSystems
fun sortSystems()
Sorts the systems in the manager based on their dependencies.
tryFindSystem
inline fun <T : SystemBase> tryFindSystem(): T?
fun <T : SystemBase> tryFindSystem(clazz: KClass<T>): T?
Tries to find a system by its class.
unregisterSystem
inline fun <T : SystemBase> unregisterSystem()
fun <T : SystemBase> unregisterSystem(clazz: KClass<T>)
Unregisters a system from the manager.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon