Package com.victorvalentim.zividomelive
Class SceneServices
java.lang.Object
com.victorvalentim.zividomelive.SceneServices
Lifecycle-aware service context for one activation of one
Scene.
The facade creates this context before Scene.setupScene(), supplies it through
Scene.configure(SceneServices), advances it around Scene.update(), and closes it
after Scene.dispose(). Reloading the same scene object creates a fresh context.
Scenes consume these services but never construct or close them. Every accessor rejects use after the activation begins disposal.
API stability: Advanced Stable.
- Since:
- 2.0.0
-
Method Details
-
applet
public processing.core.PApplet applet()- Returns:
- Processing applet that owns the facade and this activation
-
frameClock
- Returns:
- monotonic activation-scoped frame clock
-
timeline
- Returns:
- activation-scoped fixed-step timeline
-
tasks
- Returns:
- bounded activation-scoped task group
-
assets
- Returns:
- typed activation-scoped Processing asset caches
-
actions
- Returns:
- activation-scoped named action and input-binding map
-
camera
- Returns:
- activation-scoped wrapper around the shared scene camera
-
environment
- Returns:
- activation-scoped Environment configuration
-
ports
- Returns:
- activation-scoped boundary for optional external message adapters
-
requestReload
public void requestReload()Requests one full dispose/configure/setup cycle for the active scene.Multiple requests before the next Processing frame boundary coalesce into one reload.
-