UNPKG

@vrspace/babylonjs

Version:

vrspace.org babylonjs client

27 lines (26 loc) 802 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; worldManager: any; VRSPACE: any; 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; }