@needle-tools/engine
Version:
Needle Engine is a web-based runtime for 3D apps. It runs on your machine for development with great integrations into editors like Unity or Blender - and can be deployed onto any device! It is flexible, extensible and networking and XR are built-in.
27 lines (26 loc) • 944 B
TypeScript
import { Object3D } from "three";
import { Context } from "./engine_setup.js";
export declare enum ViewDevice {
Browser = "browser",
Headset = "headset",
Handheld = "handheld"
}
export declare class PlayerView {
readonly userId: string;
readonly context: Context;
viewDevice: ViewDevice;
get currentObject(): Object3D | undefined | null;
set currentObject(obj: Object3D | undefined | null);
get isConnected(): boolean;
removed: boolean;
private _object;
constructor(userId: string, context: Context);
}
export declare class PlayerViewManager {
private readonly context;
private readonly playerViews;
constructor(context: Context);
setPlayerView(id: string, obj: Object3D | undefined | null, device: ViewDevice): void;
getPlayerView(id: string | null | undefined): PlayerView | undefined;
removePlayerView(id: string, device: ViewDevice): void;
}