Get SpatialOS

Sites

Menu

Snapshot Class

Namespace: Improbable.Gdk.Core
GDK package: Core
Source

Convenience wrapper around the WorkerSDK Snapshot API.


Fields

Count Source
int Count


Methods

AddEntity Source
EntityId AddEntity(EntityTemplate entityTemplate)

Adds an entity to the snapshot

Returns:
The entity ID assigned to the entity in the snapshot.

Parameters
  • EntityTemplate entityTemplate : The entity to be added to the snapshot.

Notes:
  • The entity ID is automatically assigned.
WriteToFile Source
void WriteToFile(string path)

Writes the snapshot out to a file.

Parameters
  • string path : The file path.

Search results

Was this page helpful?

Thanks for letting us know!

Thanks for your feedback

Need more help? Ask on the forums