Try SpatialOS

Sites

Menu

Using the C++ worker SDK

Overview

The most important units of functionality in the C++ worker API are:

  • The worker::Locator, which is responsible for querying for and connecting to remote cloud deployments.
  • The worker::Connection, which represents a worker’s connection to a SpatialOS simulated world.
  • The worker::Dispatcher, which is responsible for invoking user-provided callbacks based on data received from SpatialOS via the worker::Connection.
  • The worker::Entity, which is a container for the component data associated with a single entity.
  • The worker::View, which is an optional drop-in replacement for the worker::Dispatcher that additionally maintains a map from entity ID to worker::Entity.

For the full API reference, have a look at <improbable/worker.h>.

Was this page helpful?

Thanks for letting us know!

Thanks for your feedback

Need more help? Ask on the forums