mirror of
https://github.com/MadeOfJelly/MushMachine.git
synced 2025-06-20 11:46:36 +02:00
initial import, >900commits predate this
This commit is contained in:
23
docs/framework/engine/interfaces.md
Normal file
23
docs/framework/engine/interfaces.md
Normal file
@ -0,0 +1,23 @@
|
||||
# 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`.
|
||||
|
Reference in New Issue
Block a user