Change requested

This commit is contained in:
GRL 2021-06-23 14:54:06 +02:00
parent 12da5e64f8
commit 95d8cf9257
7 changed files with 14 additions and 14 deletions

View file

@ -101,10 +101,10 @@ class WorkadventureRoomCommands extends IframeApiContribution<WorkadventureRoomC
subject.subscribe(callback);
}
showLayer(layerName: string): void {
sendToWorkadventure({type: 'showLayer', data: {'name': layerName} as LayerEvent});
sendToWorkadventure({type: 'showLayer', data: {'name': layerName}});
}
hideLayer(layerName: string): void {
sendToWorkadventure({type: 'hideLayer', data: {'name': layerName} as LayerEvent});
sendToWorkadventure({type: 'hideLayer', data: {'name': layerName}});
}
setProperty(layerName: string, propertyName: string, propertyValue: string | number | boolean | undefined): void {
sendToWorkadventure({
@ -113,7 +113,7 @@ class WorkadventureRoomCommands extends IframeApiContribution<WorkadventureRoomC
'layerName': layerName,
'propertyName': propertyName,
'propertyValue': propertyValue,
} as SetPropertyEvent
}
})
}
getCurrentRoom(): Promise<Room> {