The APIs that systems share with the rest of the game. It is world.systemApi.
world.systemApi
A system registers an API object, and any code finds it by its class.
const physics = this.world.systemApi.get(PhysicsAPI); Copy
const physics = this.world.systemApi.get(PhysicsAPI);
System APIs
Returns the API of this class.
Error If no API of this class is registered. Use has for an API that may be missing.
Checks if an API of this class is registered.
Adds an API. Its class becomes the key to find it.
Error If an API of the same class is already registered.
Removes the API of this class.
The APIs that systems share with the rest of the game. It is
world.systemApi.A system registers an API object, and any code finds it by its class.
Example
See
System APIs