Class: SnapshotManagerSingleton

Grape2D. SnapshotManagerSingleton

new SnapshotManagerSingleton()

Snapshot Manager Singleton.
Source:

Members

<private, static> instance :Grape2D.SnapshotManager

Snapshot Manager in use.
Type:
Source:

Methods

<static> getInstance() → {Grape2D.SnapshotManager}

Gets the snapshot manager.
Source:
Returns:
Snapshot manager.
Type
Grape2D.SnapshotManager

<static> getLerpPercent() → {number}

Gets the current interpolation percentage.
Source:
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.
Source:
Returns:
Object with the id.
Type
Grape2D.SnapshotNetworkObject2D

<static> setInstance(instance)

Sets a snapshot manager.
Parameters:
Name Type Description
instance Grape2D.SnapshotManager Snapshot manager.
Source:

<static> update()

Updates the current snapshot manager.
Source: