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. --log_directory string Sets the directory log files will be created in. If not specified, this is set to <project_root>/logs when inside a project directory and logging is disabled when outside a project directory. --log_level string Sets the log level. Available log levels: debug, info, warning, error, fatal, or panic. --main_config string The path to your project's main configuration file (usually called spatialos.json) --no_animation Disable dynamic output elements such as the spinner, progress bars, etc.