Package com.jozufozu.flywheel.core
Class GameStateRegistry
java.lang.Object
com.jozufozu.flywheel.core.GameStateRegistry
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void_clear()static ShaderConstantsgetShaderConstants(StateSnapshot snapshot) Based on the given snapshot, gathers shader constants to be injected during shader compilation.static voidregister(GameStateProvider provider) Registers a game state provider.static StateSnapshotTakes a snapshot of the current game state, storing it in a bit set.
-
Constructor Details
-
GameStateRegistry
public GameStateRegistry()
-
-
Method Details
-
register
Registers a game state provider.- Parameters:
provider- The provider to register.
-
takeSnapshot
Takes a snapshot of the current game state, storing it in a bit set.- Returns:
- An object that represents the current game state.
-
getShaderConstants
Based on the given snapshot, gathers shader constants to be injected during shader compilation.- Parameters:
snapshot- The snapshot to use.- Returns:
- A list of shader constants.
-
_clear
public static void _clear()
-