Represents a Stormancer scene.
- Source:
Members
id :string
Gets a string representing the scene id.
Type:
- string
- Source:
isHost :boolean
True if the instance is an host. False if it's a client.
Type:
- boolean
- Source:
Methods
getComponent(componentName) → {object}
Gets a component registered in the scene.
Parameters:
Name | Type | Description |
---|---|---|
componentName |
string | The name of the component. |
- Source:
Returns:
The requested component.
- Type
- object
registerComponent(componentName, factory)
Gets a component registered in the scene for a type
Parameters:
Name | Type | Description |
---|---|---|
componentName |
string | The component to register. |
factory |
function | The component factory to get an instance of the requested component. |
- Source: