UNPKG

@vrspace/babylonjs

Version:

vrspace.org babylonjs client

29 lines (28 loc) 932 B
/** Basic script object. Scripts are loaded and instantiated when server demands it. Experimental, most likely to change a lot, more towards IOC. */ export class BasicScript { /** @param world the World this script runs in, contains babylon scene, WorldManager and everything else @param vrObject VRObject added tot he scene.. */ constructor(world: any, vrObject: any); world: any; scene: any; /** @type {WorldManager} */ worldManager: WorldManager; VRSPACE: import("../vrspace-min.js").VRSpace; vrObject: any; /** Supposed to create a visible object and return root node */ init(): Promise<any>; /** * Executed when a remote change is triggerred. Changes have been already applied to the object. */ remoteChange(vrObject: any, changes: any): void; dispose(): void; isMine(): boolean; } import { WorldManager } from "../core/world-manager.js";