d1e8243c47
* Zod EVERYWHERE * Add no-unused-vars rule to eslint in front * Add no-unused-vars rule to eslint in pusher * Add no-unused-vars rule to eslint in back * Remove unused PlayerTexture guards * Fix data providing on room connection Co-authored-by: Alexis Faizeau <a.faizeau@workadventu.re>
16 lines
516 B
TypeScript
16 lines
516 B
TypeScript
import { IframeApiContribution, sendToWorkadventure } from "./IframeApiContribution";
|
|
|
|
export class WorkadventureControlsCommands extends IframeApiContribution<WorkadventureControlsCommands> {
|
|
callbacks = [];
|
|
|
|
disablePlayerControls(): void {
|
|
sendToWorkadventure({ type: "disablePlayerControls", data: undefined });
|
|
}
|
|
|
|
restorePlayerControls(): void {
|
|
sendToWorkadventure({ type: "restorePlayerControls", data: undefined });
|
|
}
|
|
}
|
|
|
|
export default new WorkadventureControlsCommands();
|