Get SpatialOS

Sites

Menu
You are viewing the docs for 11.0, an old version of SpatialOS. 12.0 is the newest →

Introduction to the C++ worker SDK

The C++ worker SDK allows anyone to write a worker in C++ to connect to a SpatialOS simulated world. Like any other worker, a C++ worker can subscribe to information for a part of a simulated world, visualize it, and perform some computation on behalf of the simulated world.

A typical C++ worker makes use of both the core API defined in <improbable/worker.h>, and C++ generated code based on the user-specified simulated world schema. See Compiling a C++ Worker for details.

The SDK also includes methods to load and save snapshots of the entire simulation from and to a file. This lets you write tools to perform offline transformations of the simulation state, or to programmatically create the starting point of a simulation. This functionality is documented in the C++ worker SDK docs.

Was this page helpful?

Thanks for letting us know!

Thanks for your feedback

Need more help? Ask on the forums