cowebsite

navigation
sound
player
extraction
This commit is contained in:
jonny 2021-05-28 01:14:10 +02:00
parent ea04dd5303
commit 540e5783b6
8 changed files with 1297 additions and 113 deletions

View file

@ -0,0 +1,22 @@
import { IframeApiContribution, sendToWorkadventure } from './IframeApiContribution';
class WorkadventureNavigationCommands extends IframeApiContribution<WorkadventureNavigationCommands> {
readonly subObjectIdentifier = "player"
readonly addMethodsAtRoot = true
callbacks = []
disablePlayerControls(): void {
sendToWorkadventure({ 'type': 'disablePlayerControls', data: null });
}
restorePlayerControls(): void {
sendToWorkadventure({ 'type': 'restorePlayerControls', data: null });
}
}
export default new WorkadventureNavigationCommands();