mirror of
https://github.com/MadeOfJelly/MushMachine.git
synced 2024-11-14 19:13:01 +01:00
24 lines
485 B
Markdown
24 lines
485 B
Markdown
|
# Default Shipped Interfaces
|
||
|
|
||
|
### Index
|
||
|
|
||
|
* `MM::Services::SceneServiceInterface`
|
||
|
|
||
|
|
||
|
## SceneServiceInterface
|
||
|
|
||
|
Not very stable. But I use it all over the place.
|
||
|
|
||
|
It uses [`EnTT`](https://github.com/skypjack/entt).
|
||
|
|
||
|
### interface
|
||
|
|
||
|
Use `.getScene()` to get current `MM::Scene`.
|
||
|
|
||
|
Use `.changeScene(newScene)` to queue `.changeSceneNow(newScene)`.
|
||
|
|
||
|
Use `.changeSceneNow(newScene)` to change currently held `MM::Scene`.
|
||
|
|
||
|
Use `.addSystemToScene(fn)` to add a `MM::System` to the `MM::Scene`.
|
||
|
|