new SnapshotManagerSingleton()
Snapshot Manager Singleton.
Members
-
<private, static> instance :Grape2D.SnapshotManager
-
Snapshot Manager in use.
Type:
Methods
-
<static> getInstance() → {Grape2D.SnapshotManager}
-
Gets the snapshot manager.
Returns:
Snapshot manager. -
<static> getLerpPercent() → {number}
-
Gets the current interpolation percentage.
Returns:
Percentage, between 0 and 1.- Type
- number
-
<static> getSnapshotNetworkObject2D(id) → {Grape2D.SnapshotNetworkObject2D}
-
Gets a snapshot object by it's id. A snapshot manager must be set before.
Parameters:
Name Type Description id
number | string Object's id. Returns:
Object with the id. -
<static> setInstance(instance)
-
Sets a snapshot manager.
Parameters:
Name Type Description instance
Grape2D.SnapshotManager Snapshot manager. -
<static> update()
-
Updates the current snapshot manager.