540e5783b6
navigation sound player extraction
22 lines
593 B
TypeScript
22 lines
593 B
TypeScript
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(); |