Interface: GlobalEvents
game/events.GlobalEvents
Properties
addLayer
• addLayer: (layer
: GenericLayer
, saveData
: Record
<string
, unknown
>) => void
Type declaration
▸ (layer
, saveData
): void
Parameters
Name | Type |
---|---|
layer | GenericLayer |
saveData | Record <string , unknown > |
Returns
void
Defined in
profectus/src/game/events.ts:13
gameWon
• gameWon: VoidFunction
Defined in
profectus/src/game/events.ts:17
loadSettings
• loadSettings: (settings
: Partial
<Settings
>) => void
Type declaration
▸ (settings
): void
Parameters
Name | Type |
---|---|
settings | Partial <Settings > |
Returns
void
Defined in
profectus/src/game/events.ts:16
removeLayer
• removeLayer: (layer
: GenericLayer
) => void
Type declaration
▸ (layer
): void
Parameters
Name | Type |
---|---|
layer | GenericLayer |
Returns
void
Defined in
profectus/src/game/events.ts:14
reset
• reset: (reset
: GenericReset
) => void
Type declaration
▸ (reset
): void
Parameters
Name | Type |
---|---|
reset | GenericReset |
Returns
void
Defined in
profectus/src/features/reset.ts:90
setupVue
• setupVue: (vue
: App
<any
>) => void
Type declaration
▸ (vue
): void
Parameters
Name | Type |
---|---|
vue | App <any > |
Returns
void
Defined in
profectus/src/game/events.ts:18
update
• update: (diff
: number
, trueDiff
: number
) => void
Type declaration
▸ (diff
, trueDiff
): void
Parameters
Name | Type |
---|---|
diff | number |
trueDiff | number |
Returns
void