spatial schema generate
Generates code and output for one of the target languages.
Generates worker-specific code from the schema.
Use the ‘–language’ flag to generate code for a specific language.
The input directory is searched for .schema files, which should define a (possibly partial) entity component schema in the SpatialOS schema language.
The .schema files are compiled via an intermediate protobuf representation to produce API code that can be used by workers and behaviours to create, read and write the state of entities in a SpatialOS simulation.
For more information on defining schemas, see the SpatialOS documentation.
spatial schema generate [flags]
Options inherited from parent commands
--json_output Print output in JSON format. Useful when you need to parse the Spatial CLI output. --no_animation Disable dynamic output elements such as the spinner, progress bars, etc.
- spatial schema - Contains commands for schema-related tasks.