CPCache
A map-like type that is used by CPSceneObjectContext for game-wide and scene-wide user-data containers.
The instances of this class are created and managed by the game engine and available via CPSceneObjectContext.getSceneCache and CPSceneObjectContext.getGameCache methods. Scene and game caches can be used to exchange and store user-defined data between frames of the same scene or between scenes of the game. Note that by default these caches are in-memory only and not persistent between game executions. One coule, however, add persistence using one of the lifecycle methods available through CPLifecycle type that is extended by both CPSceneObject and CPScene types.
Note that all mutating operations will be queued up and executed at the end of the current frame processing. Specifically, any changes will be "visible" to other scene objects only on the next frame.
Attributes
- delayedQ
Queue for delayed operations. Used internally by the game engine.
- See also:
- Source:
- CPCache.scala
- Graph
- Supertypes
- class Objecttrait Matchableclass Any