Package RustRaptor and refine controls, menus, saves, sound and mod selection

This commit is contained in:
raptorreplica committed 2026-10-10 13:47:41 +11:00
1 parent 0844f6dffa
commit e17bc1003e
649 files changed
+8652 -2677

No files matched your search

-89
View File
@@ -1,89 +0,0 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "CampaignDef",
"type": "object",
"required": [
"id",
"missions",
"name"
],
"properties": {
"art": {
"default": null,
"anyOf": [
{
"$ref": "#/definitions/Art"
},
{
"type": "null"
}
]
},
"id": {
"type": "string"
},
"missions": {
"type": "array",
"items": {
"type": "string"
}
},
"name": {
"type": "string"
}
},
"additionalProperties": false,
"definitions": {
"Art": {
"type": "object",
"required": [
"logical_height",
"logical_width"
],
"properties": {
"asset": {
"type": [
"integer",
"null"
],
"format": "uint32",
"minimum": 0.0
},
"frames": {
"default": 1,
"type": "integer",
"format": "uint32",
"minimum": 0.0
},
"hd_png": {
"default": null,
"type": [
"string",
"null"
]
},
"logical_height": {
"type": "integer",
"format": "uint32",
"minimum": 0.0
},
"logical_width": {
"type": "integer",
"format": "uint32",
"minimum": 0.0
},
"nearest": {
"default": false,
"type": "boolean"
},
"png": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
}
}
}
-632
View File
@@ -1,632 +0,0 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "ContentPack",
"type": "object",
"properties": {
"campaigns": {
"default": [],
"type": "array",
"items": {
"$ref": "#/definitions/CampaignDef"
}
},
"enemies": {
"default": [],
"type": "array",
"items": {
"$ref": "#/definitions/EnemyDef"
}
},
"items": {
"default": [],
"type": "array",
"items": {
"$ref": "#/definitions/ItemDef"
}
},
"missions": {
"default": [],
"type": "array",
"items": {
"$ref": "#/definitions/MissionDef"
}
},
"overrides": {
"default": [],
"type": "array",
"items": {
"type": "string"
}
},
"sounds": {
"default": [],
"type": "array",
"items": {
"$ref": "#/definitions/SoundDef"
}
},
"weapons": {
"default": [],
"type": "array",
"items": {
"$ref": "#/definitions/WeaponDef"
}
}
},
"additionalProperties": false,
"definitions": {
"Art": {
"type": "object",
"required": [
"logical_height",
"logical_width"
],
"properties": {
"asset": {
"type": [
"integer",
"null"
],
"format": "uint32",
"minimum": 0.0
},
"frames": {
"default": 1,
"type": "integer",
"format": "uint32",
"minimum": 0.0
},
"hd_png": {
"default": null,
"type": [
"string",
"null"
]
},
"logical_height": {
"type": "integer",
"format": "uint32",
"minimum": 0.0
},
"logical_width": {
"type": "integer",
"format": "uint32",
"minimum": 0.0
},
"nearest": {
"default": false,
"type": "boolean"
},
"png": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
},
"CampaignDef": {
"type": "object",
"required": [
"id",
"missions",
"name"
],
"properties": {
"art": {
"default": null,
"anyOf": [
{
"$ref": "#/definitions/Art"
},
{
"type": "null"
}
]
},
"id": {
"type": "string"
},
"missions": {
"type": "array",
"items": {
"type": "string"
}
},
"name": {
"type": "string"
}
},
"additionalProperties": false
},
"EnemyDef": {
"type": "object",
"required": [
"id",
"name"
],
"properties": {
"art": {
"default": null,
"anyOf": [
{
"$ref": "#/definitions/Art"
},
{
"type": "null"
}
]
},
"boss": {
"default": false,
"type": "boolean"
},
"cooldown": {
"default": 10,
"type": "integer",
"format": "uint32",
"minimum": 0.0
},
"drop": {
"default": null,
"type": [
"string",
"null"
]
},
"ground": {
"default": false,
"type": "boolean"
},
"health": {
"default": 100,
"type": "integer",
"format": "int32"
},
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"path": {
"default": [],
"type": "array",
"items": {
"type": "array",
"items": {
"type": "integer",
"format": "int32"
},
"maxItems": 2,
"minItems": 2
}
},
"repeat": {
"default": false,
"type": "boolean"
},
"reward": {
"default": 0,
"type": "integer",
"format": "uint32",
"minimum": 0.0
},
"script": {
"default": null,
"type": [
"string",
"null"
]
},
"speed": {
"default": 2,
"type": "integer",
"format": "int32"
},
"weapon": {
"default": null,
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
},
"ItemDef": {
"type": "object",
"required": [
"id",
"name",
"price"
],
"properties": {
"art": {
"default": null,
"anyOf": [
{
"$ref": "#/definitions/Art"
},
{
"type": "null"
}
]
},
"consumable": {
"default": false,
"type": "boolean"
},
"credits": {
"default": 0,
"type": "integer",
"format": "uint32",
"minimum": 0.0
},
"id": {
"type": "string"
},
"initial_count": {
"default": 1,
"type": "integer",
"format": "uint32",
"minimum": 0.0
},
"legacy": {
"default": null,
"type": [
"integer",
"null"
],
"format": "uint32",
"minimum": 0.0
},
"max_count": {
"default": 1,
"type": "integer",
"format": "uint32",
"minimum": 0.0
},
"name": {
"type": "string"
},
"price": {
"type": "integer",
"format": "uint32",
"minimum": 0.0
},
"script": {
"default": null,
"type": [
"string",
"null"
]
},
"shield": {
"default": 0,
"type": "integer",
"format": "int32"
},
"special": {
"default": false,
"type": "boolean"
},
"weapon": {
"default": null,
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
},
"MissionDef": {
"type": "object",
"required": [
"duration",
"id",
"name"
],
"properties": {
"art": {
"default": null,
"anyOf": [
{
"$ref": "#/definitions/Art"
},
{
"type": "null"
}
]
},
"auto_complete": {
"default": true,
"type": "boolean"
},
"columns": {
"default": 0,
"type": "integer",
"format": "uint32",
"minimum": 0.0
},
"duration": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"id": {
"type": "string"
},
"layout": {
"default": [],
"type": "array",
"items": {
"type": "integer",
"format": "uint",
"minimum": 0.0
}
},
"legacy_map": {
"default": null,
"type": [
"integer",
"null"
],
"format": "uint32",
"minimum": 0.0
},
"music": {
"default": null,
"type": [
"integer",
"null"
],
"format": "uint32",
"minimum": 0.0
},
"name": {
"type": "string"
},
"next": {
"default": null,
"type": [
"string",
"null"
]
},
"script": {
"default": null,
"type": [
"string",
"null"
]
},
"spawns": {
"default": [],
"type": "array",
"items": {
"$ref": "#/definitions/SpawnDef"
}
},
"tiles": {
"default": [],
"type": "array",
"items": {
"$ref": "#/definitions/TileDef"
}
}
},
"additionalProperties": false
},
"SoundDef": {
"type": "object",
"required": [
"file",
"id",
"name"
],
"properties": {
"file": {
"type": "string"
},
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"pan": {
"default": 127,
"type": "integer",
"format": "int32"
},
"pitch": {
"default": 128,
"type": "integer",
"format": "int32"
},
"priority": {
"default": 1,
"type": "integer",
"format": "uint32",
"minimum": 0.0
},
"volume": {
"default": 127,
"type": "integer",
"format": "int32"
}
},
"additionalProperties": false
},
"SpawnDef": {
"type": "object",
"required": [
"enemy",
"tick",
"x",
"y"
],
"properties": {
"difficulty": {
"default": 0,
"type": "integer",
"format": "uint32",
"minimum": 0.0
},
"enemy": {
"type": "string"
},
"tick": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"x": {
"type": "integer",
"format": "int32"
},
"y": {
"type": "integer",
"format": "int32"
}
},
"additionalProperties": false
},
"Target": {
"type": "string",
"enum": [
"air",
"ground",
"all"
]
},
"TileDef": {
"type": "object",
"required": [
"art"
],
"properties": {
"art": {
"$ref": "#/definitions/Art"
},
"destroyed": {
"default": null,
"anyOf": [
{
"$ref": "#/definitions/Art"
},
{
"type": "null"
}
]
},
"health": {
"default": 0,
"type": "integer",
"format": "int32"
},
"reward": {
"default": 0,
"type": "integer",
"format": "uint32",
"minimum": 0.0
}
},
"additionalProperties": false
},
"WeaponBehavior": {
"type": "string",
"enum": [
"straight",
"homing",
"beam",
"spread",
"bomb",
"energy_grab"
]
},
"WeaponDef": {
"type": "object",
"required": [
"behavior",
"cooldown",
"damage",
"id",
"name",
"speed",
"target"
],
"properties": {
"art": {
"default": null,
"anyOf": [
{
"$ref": "#/definitions/Art"
},
{
"type": "null"
}
]
},
"behavior": {
"$ref": "#/definitions/WeaponBehavior"
},
"cooldown": {
"type": "integer",
"format": "uint32",
"minimum": 0.0
},
"damage": {
"type": "integer",
"format": "int32"
},
"id": {
"type": "string"
},
"legacy": {
"default": null,
"type": [
"integer",
"null"
],
"format": "uint32",
"minimum": 0.0
},
"name": {
"type": "string"
},
"offsets": {
"default": [],
"type": "array",
"items": {
"type": "array",
"items": {
"type": "integer",
"format": "int32"
},
"maxItems": 2,
"minItems": 2
}
},
"script": {
"default": null,
"type": [
"string",
"null"
]
},
"speed": {
"type": "integer",
"format": "int32"
},
"target": {
"$ref": "#/definitions/Target"
}
},
"additionalProperties": false
}
}
}
-150
View File
@@ -1,150 +0,0 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "EnemyDef",
"type": "object",
"required": [
"id",
"name"
],
"properties": {
"art": {
"default": null,
"anyOf": [
{
"$ref": "#/definitions/Art"
},
{
"type": "null"
}
]
},
"boss": {
"default": false,
"type": "boolean"
},
"cooldown": {
"default": 10,
"type": "integer",
"format": "uint32",
"minimum": 0.0
},
"drop": {
"default": null,
"type": [
"string",
"null"
]
},
"ground": {
"default": false,
"type": "boolean"
},
"health": {
"default": 100,
"type": "integer",
"format": "int32"
},
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"path": {
"default": [],
"type": "array",
"items": {
"type": "array",
"items": {
"type": "integer",
"format": "int32"
},
"maxItems": 2,
"minItems": 2
}
},
"repeat": {
"default": false,
"type": "boolean"
},
"reward": {
"default": 0,
"type": "integer",
"format": "uint32",
"minimum": 0.0
},
"script": {
"default": null,
"type": [
"string",
"null"
]
},
"speed": {
"default": 2,
"type": "integer",
"format": "int32"
},
"weapon": {
"default": null,
"type": [
"string",
"null"
]
}
},
"additionalProperties": false,
"definitions": {
"Art": {
"type": "object",
"required": [
"logical_height",
"logical_width"
],
"properties": {
"asset": {
"type": [
"integer",
"null"
],
"format": "uint32",
"minimum": 0.0
},
"frames": {
"default": 1,
"type": "integer",
"format": "uint32",
"minimum": 0.0
},
"hd_png": {
"default": null,
"type": [
"string",
"null"
]
},
"logical_height": {
"type": "integer",
"format": "uint32",
"minimum": 0.0
},
"logical_width": {
"type": "integer",
"format": "uint32",
"minimum": 0.0
},
"nearest": {
"default": false,
"type": "boolean"
},
"png": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
}
}
}
-420
View File
@@ -1,420 +0,0 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "HookResult",
"type": "object",
"properties": {
"commands": {
"description": "Transactional commands, applied in order only when the callback succeeds.",
"default": [],
"type": "array",
"items": {
"$ref": "#/definitions/Command"
}
},
"state": {
"description": "JSON-serializable state shared by callbacks in this script; maximum 64 KiB.",
"default": null
}
},
"additionalProperties": false,
"definitions": {
"Command": {
"oneOf": [
{
"description": "Add an enemy at an integer position in the original logical canvas.",
"type": "object",
"required": [
"enemy",
"op",
"x",
"y"
],
"properties": {
"enemy": {
"type": "string"
},
"op": {
"type": "string",
"enum": [
"spawn"
]
},
"x": {
"type": "integer",
"format": "int32"
},
"y": {
"type": "integer",
"format": "int32"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"op",
"vx",
"vy",
"weapon",
"x",
"y"
],
"properties": {
"hostile": {
"default": false,
"type": "boolean"
},
"op": {
"type": "string",
"enum": [
"projectile"
]
},
"vx": {
"type": "integer",
"format": "int32"
},
"vy": {
"type": "integer",
"format": "int32"
},
"weapon": {
"type": "string"
},
"x": {
"type": "integer",
"format": "int32"
},
"y": {
"type": "integer",
"format": "int32"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"amount",
"entity",
"op"
],
"properties": {
"amount": {
"type": "integer",
"format": "int32"
},
"entity": {
"description": "Enemy entity ID; zero addresses the player.",
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"op": {
"type": "string",
"enum": [
"damage"
]
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"entity",
"op"
],
"properties": {
"entity": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"op": {
"type": "string",
"enum": [
"despawn"
]
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"entity",
"op",
"x",
"y"
],
"properties": {
"entity": {
"description": "Existing enemy entity ID.",
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"op": {
"type": "string",
"enum": [
"move"
]
},
"x": {
"type": "integer",
"format": "int32"
},
"y": {
"type": "integer",
"format": "int32"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"entity",
"op",
"vx",
"vy"
],
"properties": {
"entity": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"op": {
"type": "string",
"enum": [
"velocity"
]
},
"vx": {
"type": "integer",
"format": "int32"
},
"vy": {
"type": "integer",
"format": "int32"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"count",
"item",
"op"
],
"properties": {
"count": {
"type": "integer",
"format": "uint32",
"minimum": 0.0
},
"item": {
"type": "string"
},
"op": {
"type": "string",
"enum": [
"give_item"
]
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"count",
"item",
"op"
],
"properties": {
"count": {
"type": "integer",
"format": "uint32",
"minimum": 0.0
},
"item": {
"type": "string"
},
"op": {
"type": "string",
"enum": [
"consume_item"
]
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"amount",
"op"
],
"properties": {
"amount": {
"type": "integer",
"format": "int32"
},
"op": {
"type": "string",
"enum": [
"credits"
]
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"amount",
"op"
],
"properties": {
"amount": {
"type": "integer",
"format": "int32"
},
"op": {
"type": "string",
"enum": [
"shield"
]
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"op",
"x",
"y"
],
"properties": {
"op": {
"type": "string",
"enum": [
"effect"
]
},
"x": {
"type": "integer",
"format": "int32"
},
"y": {
"type": "integer",
"format": "int32"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"asset",
"op"
],
"properties": {
"asset": {
"type": "integer",
"format": "uint32",
"minimum": 0.0
},
"op": {
"type": "string",
"enum": [
"sound"
]
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"op",
"sound"
],
"properties": {
"op": {
"type": "string",
"enum": [
"play_sound"
]
},
"sound": {
"type": "string"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"key",
"op",
"value"
],
"properties": {
"key": {
"description": "Stable namespaced objective key, at most 128 bytes.",
"type": "string"
},
"op": {
"type": "string",
"enum": [
"objective"
]
},
"value": {
"type": "integer",
"format": "int32"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"op"
],
"properties": {
"op": {
"type": "string",
"enum": [
"complete"
]
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"op"
],
"properties": {
"op": {
"type": "string",
"enum": [
"fail"
]
}
},
"additionalProperties": false
}
]
}
}
}
-142
View File
@@ -1,142 +0,0 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "ItemDef",
"type": "object",
"required": [
"id",
"name",
"price"
],
"properties": {
"art": {
"default": null,
"anyOf": [
{
"$ref": "#/definitions/Art"
},
{
"type": "null"
}
]
},
"consumable": {
"default": false,
"type": "boolean"
},
"credits": {
"default": 0,
"type": "integer",
"format": "uint32",
"minimum": 0.0
},
"id": {
"type": "string"
},
"initial_count": {
"default": 1,
"type": "integer",
"format": "uint32",
"minimum": 0.0
},
"legacy": {
"default": null,
"type": [
"integer",
"null"
],
"format": "uint32",
"minimum": 0.0
},
"max_count": {
"default": 1,
"type": "integer",
"format": "uint32",
"minimum": 0.0
},
"name": {
"type": "string"
},
"price": {
"type": "integer",
"format": "uint32",
"minimum": 0.0
},
"script": {
"default": null,
"type": [
"string",
"null"
]
},
"shield": {
"default": 0,
"type": "integer",
"format": "int32"
},
"special": {
"default": false,
"type": "boolean"
},
"weapon": {
"default": null,
"type": [
"string",
"null"
]
}
},
"additionalProperties": false,
"definitions": {
"Art": {
"type": "object",
"required": [
"logical_height",
"logical_width"
],
"properties": {
"asset": {
"type": [
"integer",
"null"
],
"format": "uint32",
"minimum": 0.0
},
"frames": {
"default": 1,
"type": "integer",
"format": "uint32",
"minimum": 0.0
},
"hd_png": {
"default": null,
"type": [
"string",
"null"
]
},
"logical_height": {
"type": "integer",
"format": "uint32",
"minimum": 0.0
},
"logical_width": {
"type": "integer",
"format": "uint32",
"minimum": 0.0
},
"nearest": {
"default": false,
"type": "boolean"
},
"png": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
}
}
}
-221
View File
@@ -1,221 +0,0 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "MissionDef",
"type": "object",
"required": [
"duration",
"id",
"name"
],
"properties": {
"art": {
"default": null,
"anyOf": [
{
"$ref": "#/definitions/Art"
},
{
"type": "null"
}
]
},
"auto_complete": {
"default": true,
"type": "boolean"
},
"columns": {
"default": 0,
"type": "integer",
"format": "uint32",
"minimum": 0.0
},
"duration": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"id": {
"type": "string"
},
"layout": {
"default": [],
"type": "array",
"items": {
"type": "integer",
"format": "uint",
"minimum": 0.0
}
},
"legacy_map": {
"default": null,
"type": [
"integer",
"null"
],
"format": "uint32",
"minimum": 0.0
},
"music": {
"default": null,
"type": [
"integer",
"null"
],
"format": "uint32",
"minimum": 0.0
},
"name": {
"type": "string"
},
"next": {
"default": null,
"type": [
"string",
"null"
]
},
"script": {
"default": null,
"type": [
"string",
"null"
]
},
"spawns": {
"default": [],
"type": "array",
"items": {
"$ref": "#/definitions/SpawnDef"
}
},
"tiles": {
"default": [],
"type": "array",
"items": {
"$ref": "#/definitions/TileDef"
}
}
},
"additionalProperties": false,
"definitions": {
"Art": {
"type": "object",
"required": [
"logical_height",
"logical_width"
],
"properties": {
"asset": {
"type": [
"integer",
"null"
],
"format": "uint32",
"minimum": 0.0
},
"frames": {
"default": 1,
"type": "integer",
"format": "uint32",
"minimum": 0.0
},
"hd_png": {
"default": null,
"type": [
"string",
"null"
]
},
"logical_height": {
"type": "integer",
"format": "uint32",
"minimum": 0.0
},
"logical_width": {
"type": "integer",
"format": "uint32",
"minimum": 0.0
},
"nearest": {
"default": false,
"type": "boolean"
},
"png": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
},
"SpawnDef": {
"type": "object",
"required": [
"enemy",
"tick",
"x",
"y"
],
"properties": {
"difficulty": {
"default": 0,
"type": "integer",
"format": "uint32",
"minimum": 0.0
},
"enemy": {
"type": "string"
},
"tick": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"x": {
"type": "integer",
"format": "int32"
},
"y": {
"type": "integer",
"format": "int32"
}
},
"additionalProperties": false
},
"TileDef": {
"type": "object",
"required": [
"art"
],
"properties": {
"art": {
"$ref": "#/definitions/Art"
},
"destroyed": {
"default": null,
"anyOf": [
{
"$ref": "#/definitions/Art"
},
{
"type": "null"
}
]
},
"health": {
"default": 0,
"type": "integer",
"format": "int32"
},
"reward": {
"default": 0,
"type": "integer",
"format": "uint32",
"minimum": 0.0
}
},
"additionalProperties": false
}
}
}
-65
View File
@@ -1,65 +0,0 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Manifest",
"type": "object",
"required": [
"api_version",
"id",
"name",
"version"
],
"properties": {
"api_version": {
"description": "Exact supported content/script API major version.",
"type": "integer",
"format": "uint32",
"minimum": 0.0
},
"conflicts": {
"description": "IDs which cannot be enabled at the same time as this package.",
"default": [],
"type": "array",
"items": {
"type": "string"
}
},
"content": {
"description": "Relative path to the JSON content pack. Defaults to `content.json`.",
"default": "content.json",
"type": "string"
},
"dependencies": {
"description": "Required, explicitly enabled mod IDs mapped to semantic version requirements.",
"default": {},
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"description": {
"default": "",
"type": "string"
},
"id": {
"description": "Unique lowercase namespace; `base` is reserved for the original game.",
"type": "string"
},
"name": {
"description": "Display name shown in the in-game manager.",
"type": "string"
},
"scripts": {
"description": "Relative paths to every Rhai source referenced by this content pack.",
"default": [],
"type": "array",
"items": {
"type": "string"
}
},
"version": {
"description": "Semantic package version, saved together with a SHA-256 content hash.",
"type": "string"
}
},
"additionalProperties": false
}
-43
View File
@@ -1,43 +0,0 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "SoundDef",
"type": "object",
"required": [
"file",
"id",
"name"
],
"properties": {
"file": {
"type": "string"
},
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"pan": {
"default": 127,
"type": "integer",
"format": "int32"
},
"pitch": {
"default": 128,
"type": "integer",
"format": "int32"
},
"priority": {
"default": 1,
"type": "integer",
"format": "uint32",
"minimum": 0.0
},
"volume": {
"default": 127,
"type": "integer",
"format": "int32"
}
},
"additionalProperties": false
}
-154
View File
@@ -1,154 +0,0 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "WeaponDef",
"type": "object",
"required": [
"behavior",
"cooldown",
"damage",
"id",
"name",
"speed",
"target"
],
"properties": {
"art": {
"default": null,
"anyOf": [
{
"$ref": "#/definitions/Art"
},
{
"type": "null"
}
]
},
"behavior": {
"$ref": "#/definitions/WeaponBehavior"
},
"cooldown": {
"type": "integer",
"format": "uint32",
"minimum": 0.0
},
"damage": {
"type": "integer",
"format": "int32"
},
"id": {
"type": "string"
},
"legacy": {
"default": null,
"type": [
"integer",
"null"
],
"format": "uint32",
"minimum": 0.0
},
"name": {
"type": "string"
},
"offsets": {
"default": [],
"type": "array",
"items": {
"type": "array",
"items": {
"type": "integer",
"format": "int32"
},
"maxItems": 2,
"minItems": 2
}
},
"script": {
"default": null,
"type": [
"string",
"null"
]
},
"speed": {
"type": "integer",
"format": "int32"
},
"target": {
"$ref": "#/definitions/Target"
}
},
"additionalProperties": false,
"definitions": {
"Art": {
"type": "object",
"required": [
"logical_height",
"logical_width"
],
"properties": {
"asset": {
"type": [
"integer",
"null"
],
"format": "uint32",
"minimum": 0.0
},
"frames": {
"default": 1,
"type": "integer",
"format": "uint32",
"minimum": 0.0
},
"hd_png": {
"default": null,
"type": [
"string",
"null"
]
},
"logical_height": {
"type": "integer",
"format": "uint32",
"minimum": 0.0
},
"logical_width": {
"type": "integer",
"format": "uint32",
"minimum": 0.0
},
"nearest": {
"default": false,
"type": "boolean"
},
"png": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
},
"Target": {
"type": "string",
"enum": [
"air",
"ground",
"all"
]
},
"WeaponBehavior": {
"type": "string",
"enum": [
"straight",
"homing",
"beam",
"spread",
"bomb",
"energy_grab"
]
}
}
}