sceneRecorder.d.ts 1001 B

123456789101112131415161718192021222324252627282930
  1. import type { Scene } from "../scene";
  2. /**
  3. * Class used to record delta files between 2 scene states
  4. */
  5. export declare class SceneRecorder {
  6. private _trackedScene;
  7. private _savedJSON;
  8. /**
  9. * Track a given scene. This means the current scene state will be considered the original state
  10. * @param scene defines the scene to track
  11. */
  12. track(scene: Scene): void;
  13. /**
  14. * Get the delta between current state and original state
  15. * @returns a any containing the delta
  16. */
  17. getDelta(): any;
  18. private _compareArray;
  19. private _compareObjects;
  20. private _compareCollections;
  21. private static GetShadowGeneratorById;
  22. /**
  23. * Apply a given delta to a given scene
  24. * @param deltaJSON defines the JSON containing the delta
  25. * @param scene defines the scene to apply the delta to
  26. */
  27. static ApplyDelta(deltaJSON: any | string, scene: Scene): void;
  28. private static _ApplyPropertiesToEntity;
  29. private static _ApplyDeltaForEntity;
  30. }