Constructor
new RPG(settingsopt)
Instantiate an instance of RPG using `new RPG(settings)`, where
`settings` is an `Object` containing various optional settings.
Parameters:
Name | Type | Attributes | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
settings |
Object |
<optional> |
Properties
|
Properties:
Name | Type | Description |
---|---|---|
entities |
Collection |
Members
handles
Provides a simple list of named Collection types to manage.
state
Provides an Entity representing the current game state.
Properties:
Name | Type | Description |
---|---|---|
id |
String | Hex-encoded unique identifier for the game state. |
Methods
(async) _sync()
Load information from the configured Authority.
(async) start()
Call `start()` to begin processing the game state, including
the clock beginning to advance for the in-game world.