cowebsite
navigation sound player extraction
This commit is contained in:
parent
ea04dd5303
commit
540e5783b6
8 changed files with 1297 additions and 113 deletions
22
front/src/Api/iframe/Player.ts
Normal file
22
front/src/Api/iframe/Player.ts
Normal 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();
|
Loading…
Add table
Add a link
Reference in a new issue