Package dev.prozilla.pine.core.system
Class SystemManager
java.lang.Object
dev.prozilla.pine.core.ECSManager
dev.prozilla.pine.core.system.SystemManager
- All Implemented Interfaces:
Lifecycle
-
Field Summary
Fields inherited from class dev.prozilla.pine.core.ECSManager
world
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
activateEntity
(Entity entity) boolean
addSystem
(SystemBase system) void
destroy()
Destroys all systems.void
init
(long window) Runs all systems that handle initialization.void
initSystems
(Collection<SystemBase> initialSystems) void
input
(float deltaTime) Runs all systems that handle input.boolean
void
Registers an entity in all systems.void
Runs all systems that render components.void
unregister
(Entity entity) Unregisters an entity from all systems.void
update
(float deltaTime) Runs all systems that update component data.void
Updates all systems that depend on entity depth.Methods inherited from class dev.prozilla.pine.core.ECSManager
getTracker
-
Constructor Details
-
SystemManager
-
-
Method Details
-
initSystems
-
init
public void init(long window) Runs all systems that handle initialization.- Parameters:
window
- Window
-
input
public void input(float deltaTime) Runs all systems that handle input.- Parameters:
deltaTime
- Delta time in seconds
-
update
public void update(float deltaTime) Runs all systems that update component data.- Parameters:
deltaTime
- Delta time in seconds
-
render
Runs all systems that render components.- Parameters:
renderer
- Reference to the renderer
-
destroy
public void destroy()Destroys all systems. -
register
Registers an entity in all systems. -
unregister
Unregisters an entity from all systems. -
activateEntity
-
addSystem
-
updateEntityDepth
public void updateEntityDepth()Updates all systems that depend on entity depth. -
isInitialized
public boolean isInitialized()
-