These are the docs for 13.8, 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 packages file (spatialos_worker_packages.json
)
Example
An example of the C# worker package file:
{
"targets": [
{
"path": "improbable/dependencies/managed",
"type": "worker_sdk",
"packages": [
{
"name": "csharp"
}
]
},
{
"path": "improbable/dependencies/native",
"type": "worker_sdk",
"packages": [
{
"name": "core-dynamic-x86_64-win32"
},
{
"name": "core-dynamic-x86_64-macos"
},
{
"name": "core-dynamic-x86_64-linux"
}
]
}
]
}
Root object
- Field
targets
: contains a list of Package target structures.
Package target structure
- Field
path
: A string pointing to a directory that packages will be unpacked to. Relative paths are interpreted relative to the directory thespatialos_worker_packages.json
is in. - Field
type
: A string that indicates the type of the package. - Field
packages
: A list of worker Package structures.
Worker package structure
- Field
name
: A string representing the name of the package. - Field
version
: (Optional) A string representing the version of the package to acquire. If empty, uses the version of the SDK in the project’sspatialos.json
. - Field
platform
: (Optional) A string representing the name of the platform to acquire. This is compared to the current platform. If empty, the package is always acquired.- Available values:
windows
,linux
,macos
.
- Available values: