class SystemDAG
| Name | Summary |
|---|---|
SystemDAG | constructor() |
| Name | Summary |
|---|---|
addSystem | fun addSystem(system: SystemBase, priorityGroup: PriorityGroup = PriorityGroup.NORMAL) Adds a system to the dependency graph. |
findSystem | fun <T : SystemBase> findSystem(clazz: KClass<T>): T Finds a system in the dependency graph. Throws an exception if the system is not found. |
removeSystem | inline fun <T : SystemBase> removeSystem(): Boolean Removes a system from the dependency graph using reified type parameter. fun <T : SystemBase> removeSystem(clazz: KClass<T>): Boolean Removes a system from the dependency graph. |
setEarlySystems | fun setEarlySystems(earlySystems: List<SystemBase>) Sets the list of early systems that run before all other systems. |
setLateSystems | fun setLateSystems(lateSystems: List<SystemBase>) Sets the list of late systems that run after all other systems. |
topologicalSortWithCycleDetection | fun topologicalSortWithCycleDetection(): MutableList<SystemBase> Performs a topological sort of the systems based on their dependencies. |
tryFindSystem | fun <T : SystemBase> tryFindSystem(clazz: KClass<T>): T? Attempts to find a system in the dependency graph. |