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:
Destructible
,Initializable
,InputHandler
,Renderable
,Updatable
public class SystemManager
extends ECSManager
implements Initializable, InputHandler, Updatable, Renderable
-
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()
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()Runs all systems that handle initialization.- Specified by:
init
in interfaceInitializable
-
input
public void input(float deltaTime) Runs all systems that handle input.- Specified by:
input
in interfaceInputHandler
- Parameters:
deltaTime
- Delta time in seconds
-
update
public void update(float deltaTime) Runs all systems that update component data. -
render
Runs all systems that render components.- Specified by:
render
in interfaceRenderable
-
destroy
public void destroy()Destroys all systems.- Specified by:
destroy
in interfaceDestructible
-
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()
-