App.d.ts 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. import { Scene, Object3D } from 'three';
  2. import type SceneController from '../Model/SceneController';
  3. export declare class App {
  4. private static _title;
  5. private static _settings;
  6. private static _currentScene;
  7. private static _activeCamera;
  8. private static _scenes;
  9. private static _sceneController;
  10. private static _lanIP;
  11. private constructor();
  12. static get activeCamera(): string;
  13. static set activeCamera(cameraId: string);
  14. static get settings(): any;
  15. static get title(): string;
  16. static set title(title: string);
  17. static get currentScene(): Scene;
  18. static set currentScene(scene: Scene);
  19. static get scenes(): {
  20. name: string;
  21. uuid: string;
  22. }[];
  23. static get sceneController(): SceneController;
  24. static set sceneController(value: SceneController);
  25. static get lanIP(): string;
  26. static toJSON(assetPaths: {
  27. [uuid: string]: string;
  28. }): {
  29. title: string;
  30. scenes: {
  31. name: string;
  32. uuid: string;
  33. }[];
  34. lanIP: string;
  35. assetPaths: {
  36. [uuid: string]: string;
  37. };
  38. };
  39. static fromJSON(json: {
  40. title: string;
  41. scenes: {
  42. name: string;
  43. uuid: string;
  44. }[];
  45. assetPaths: {
  46. [uuid: string]: string;
  47. };
  48. lanIP?: string;
  49. }): void;
  50. static play(config: {
  51. title: string;
  52. scenes: {
  53. name: string;
  54. uuid: string;
  55. }[];
  56. assetPaths: {
  57. [uuid: string]: string;
  58. };
  59. }): void;
  60. static loadScene(name: string | number): Promise<void>;
  61. private static loadSceneFunc;
  62. static clone(object: Object3D, parent?: Object3D): Object3D<import("three").Event>;
  63. private static loadComponentsRecursive;
  64. private static loadAudioListeners;
  65. }