Skip to content
On this page

Interface: GlobalEvents

game/events.GlobalEvents

Properties

addLayer

addLayer: (layer: GenericLayer, saveData: Record<string, unknown>) => void

Type declaration

▸ (layer, saveData): void

Parameters
NameType
layerGenericLayer
saveDataRecord<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
NameType
settingsPartial<Settings>
Returns

void

Defined in

profectus/src/game/events.ts:16


removeLayer

removeLayer: (layer: GenericLayer) => void

Type declaration

▸ (layer): void

Parameters
NameType
layerGenericLayer
Returns

void

Defined in

profectus/src/game/events.ts:14


reset

reset: (reset: GenericReset) => void

Type declaration

▸ (reset): void

Parameters
NameType
resetGenericReset
Returns

void

Defined in

profectus/src/features/reset.ts:90


setupVue

setupVue: (vue: App<any>) => void

Type declaration

▸ (vue): void

Parameters
NameType
vueApp<any>
Returns

void

Defined in

profectus/src/game/events.ts:18


update

update: (diff: number, trueDiff: number) => void

Type declaration

▸ (diff, trueDiff): void

Parameters
NameType
diffnumber
trueDiffnumber
Returns

void

Defined in

profectus/src/game/events.ts:15