Skip to content

Planetary Annihilation: Titans spec schema generator

License

Notifications You must be signed in to change notification settings

mrh0/pa-spec-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Generates JSON-schemas for Planetery Annihilation: Titans spec files.

This Node.js script generates infered JSON-schemas based on the files in the PA /media/pa and /media/pa_ex1 directory

Supported spec types

  • AI builds
  • Ammo
  • Animation Trees
  • Build arms
  • .pfx files
  • Tools
  • Units / Structures

The generated spec files are put in the /specs folder.

Usage

Generate spec files

npm start <path to Planetary Annihilation Titans>

Use schemas

Visual Studio: Code supports JSON-schema validation by adding one of the following $schema properties with a link to the schema in the JSON file you are working in.

{
  "$schema": "https://raw.githubusercontent.com/mrh0/pa-spec-generator/main/specs/ai_builds_spec.json",
  "$schema": "https://raw.githubusercontent.com/mrh0/pa-spec-generator/main/specs/ammo_spec.json",
  "$schema": "https://raw.githubusercontent.com/mrh0/pa-spec-generator/main/specs/anim_tree_spec.json",
  "$schema": "https://raw.githubusercontent.com/mrh0/pa-spec-generator/main/specs/pfx_spec.json",
  "$schema": "https://raw.githubusercontent.com/mrh0/pa-spec-generator/main/specs/tool_spec.json",
  "$schema": "https://raw.githubusercontent.com/mrh0/pa-spec-generator/main/specs/unit_spec.json",
}

About

Planetary Annihilation: Titans spec schema generator

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published