Interface: GlobalEvents
game/events.GlobalEvents
Methods
addLayer
▸ addLayer(layer
, saveData
): void
Parameters
Name | Type |
---|---|
layer | GenericLayer |
saveData | Record <string , unknown > |
Returns
void
Defined in
profectus/src/game/events.ts:11
loadSettings
▸ loadSettings(settings
): void
Parameters
Name | Type |
---|---|
settings | Partial <Settings > |
Returns
void
Defined in
profectus/src/game/events.ts:14
removeLayer
▸ removeLayer(layer
): void
Parameters
Name | Type |
---|---|
layer | GenericLayer |
Returns
void
Defined in
profectus/src/game/events.ts:12
reset
▸ reset(reset
): void
Parameters
Name | Type |
---|---|
reset | GenericReset |
Returns
void
Defined in
profectus/src/features/reset.ts:106
setupVue
▸ setupVue(vue
): void
Parameters
Name | Type |
---|---|
vue | App <any > |
Returns
void
Defined in
profectus/src/game/events.ts:15
update
▸ update(diff
, trueDiff
): void
Parameters
Name | Type |
---|---|
diff | Decimal |
trueDiff | number |
Returns
void