These are the docs for 13.7, an old version of SpatialOS. The docs for this version are frozen: we do not correct, update or republish them. 14.5 is the newest →

Worker SDK in C++

The Worker SDK in C++ is an implementation of the Worker SDK that allows developers to build workers as part of a SpatialOS game in C++.

What’s included

The SDK provides functionality to write a worker that:

The SDK also includes methods to load and save snapshots of the entire simulation from and to a file. (See Manipulating snapshots.)

A typical C++ worker uses 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 what to include.

Using the Worker SDK in C++

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

For more, see <improbable/worker.h>, the C++ API reference documentation, or the pages under “Using the Worker SDK in C++” in this section.

C++ blank project

You can use the C++ blank project as a starting point for a project using the Worker SDK in C++, or to add a C++ worker to an existing SpatialOS project.

Game engine integrations

The APIs are lower-level than the a game engine integration like the Unity3D integration.

If you’re using a game engine we don’t have an integration with, you can use this SDK to integrate that game engine with SpatialOS. See Integrating an engine for details.

Search results

Was this page helpful?

Thanks for letting us know!

Thanks for your feedback

Need more help? Ask on the forums