Attributes
players
- Description:
The living collection of all players underlying shared states.
- Source:
- Overrides:
Methods
(async) createPlayer(sourceId, optionsopt) → {String}
- Description:
Create a player on a given ComoNode.
- Source:
- Overrides:
Parameters:
| Name | Type | Attributes | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
sourceId |
String | Id of the source |
||||||||||||||||
options |
Object |
<optional> |
Properties
|
Returns:
Id of the player
- Type
- String
(async) getPlayer(playerId) → {Player|null}
- Description:
- Source:
- Overrides:
Parameters:
| Name | Type | Description |
|---|---|---|
playerId |
String |
Returns:
- Type
- Player | null
(async) getPlayerState(playerId) → {Player|null}
- Description:
Get the underlying state of a player without the full {Player logic and behavior.
- Source:
- Overrides:
Parameters:
| Name | Type | Description |
|---|---|---|
playerId |
String |
Returns:
- Type
- Player | null
(async) getScriptSharedState(playerId) → {SharedState|null}
- Description:
Return the SharedState associated to the script assigned to the given player.
Return null if the player is not associated to a script, or if the associated script does not define a shared state.
- Source:
- Overrides:
Parameters:
| Name | Type | Description |
|---|---|---|
playerId |
String |
Returns:
- Type
- SharedState | null
playerExists(playerId) → {Boolean}
- Description:
Returns wether the player exists on the network
- Source:
- Overrides:
Parameters:
| Name | Type | Description |
|---|---|---|
playerId |
String |
Returns:
- Type
- Boolean