SceneRecorder

Class used to record delta files between 2 scene states

Hierarchy

  • SceneRecorder

Index

Methods

getDelta

Find examples in Playground
  • getDelta(): any
  • Get the delta between current state and original state

    Returns any

    a string containing the delta

track

Find examples in Playground
  • track(scene: Scene): void
  • Track a given scene. This means the current scene state will be considered the original state

    Parameters

    • scene: Scene

      defines the scene to track

    Returns void

Static ApplyDelta

Find examples in Playground
  • ApplyDelta(deltaJSON: any | string, scene: Scene): void
  • Apply a given delta to a given scene

    Parameters

    • deltaJSON: any | string

      defines the JSON containing the delta

    • scene: Scene

      defines the scene to apply the delta to

    Returns void

Generated using TypeDoc