Add reusable content sets publication previews and focused input handling

This commit is contained in:
dingo
2026-09-08 13:02:20 -04:00
parent 34ab668531
commit 0c8b695483
20 changed files with 1030 additions and 149 deletions
+68 -1
View File
@@ -5,10 +5,77 @@
"additionalProperties": false,
"properties": {
"intent": {"$ref": "#/definitions/Intent"},
"snapshot": {"$ref": "#/definitions/Snapshot"}
"snapshot": {"$ref": "#/definitions/Snapshot"},
"catalog": {"$ref": "#/definitions/ContentCatalog"},
"catalogChange": {"$ref": "#/definitions/ContentChange"},
"catalogPreview": {"$ref": "#/definitions/ContentPreview"}
},
"required": ["intent", "snapshot"],
"definitions": {
"ContentRequirement": {
"type": "object", "additionalProperties": false,
"properties": {"metric": {"type": "string"}, "atLeast": {"type": "integer"}},
"required": ["metric", "atLeast"]
},
"RequirementSet": {
"type": "object", "additionalProperties": false,
"properties": {"id": {"type": "string"}, "name": {"type": "string"}, "description": {"type": "string"}, "requirements": {"type": "array", "items": {"$ref": "#/definitions/ContentRequirement"}}},
"required": ["id", "name", "description", "requirements"]
},
"EffectSet": {
"type": "object", "additionalProperties": false,
"properties": {"id": {"type": "string"}, "name": {"type": "string"}, "description": {"type": "string"}, "modifiers": {"type": "array", "items": {"$ref": "#/definitions/StatModifier"}}},
"required": ["id", "name", "description", "modifiers"]
},
"TitleDefinition": {
"type": "object", "additionalProperties": false,
"properties": {
"id": {"type": "string"}, "name": {"type": "string"}, "description": {"type": "string"}, "scope": {"type": "string"},
"requirements": {"type": "array", "items": {"$ref": "#/definitions/ContentRequirement"}}, "effects": {"$ref": "#/definitions/TitleEffects"}
},
"required": ["id", "name", "description", "scope", "requirements", "effects"]
},
"ItemDefinition": {
"type": "object", "additionalProperties": false,
"properties": {
"id": {"type": "string"}, "name": {"type": "string"}, "description": {"type": "string"}, "slot": {"type": "string"},
"weight": {"type": "number"}, "dropChance": {"type": "number"}, "requirements": {"$ref": "#/definitions/ItemRequirements"},
"modifiers": {"type": "array", "items": {"$ref": "#/definitions/StatModifier"}}
},
"required": ["id", "name", "description", "slot", "weight", "dropChance", "requirements", "modifiers"]
},
"ContentStatsRules": {
"type": "object", "additionalProperties": false,
"properties": {
"version": {"type": "integer"}, "base": {"type": "object", "additionalProperties": {"type": "number"}},
"coefficients": {"type": "object", "additionalProperties": {"type": "object", "additionalProperties": {"type": "number"}}}
},
"required": ["version", "base", "coefficients"]
},
"ContentCatalog": {
"type": "object", "additionalProperties": false,
"properties": {
"version": {"type": "integer"}, "titles": {"type": "array", "items": {"$ref": "#/definitions/TitleDefinition"}},
"items": {"type": "array", "items": {"$ref": "#/definitions/ItemDefinition"}}, "stats": {"$ref": "#/definitions/ContentStatsRules"},
"requirementSets": {"type": "array", "items": {"$ref": "#/definitions/RequirementSet"}}, "effectSets": {"type": "array", "items": {"$ref": "#/definitions/EffectSet"}}
},
"required": ["version", "titles", "items", "stats"]
},
"ContentChange": {
"type": "object", "additionalProperties": false,
"properties": {
"id": {"type": "string"}, "expectedVersion": {"type": "integer"}, "op": {"type": "string"}, "reason": {"type": "string"},
"title": {"$ref": "#/definitions/TitleDefinition"}, "item": {"$ref": "#/definitions/ItemDefinition"}, "stats": {"$ref": "#/definitions/ContentStatsRules"},
"requirementSet": {"$ref": "#/definitions/RequirementSet"}, "effectSet": {"$ref": "#/definitions/EffectSet"},
"requirementSetIds": {"type": "array", "items": {"type": "string"}}, "effectSetIds": {"type": "array", "items": {"type": "string"}}
},
"required": ["id", "expectedVersion", "op", "reason"]
},
"ContentPreview": {
"type": "object", "additionalProperties": false,
"properties": {"basedOnVersion": {"type": "integer"}, "proposedVersion": {"type": "integer"}, "resolved": {"$ref": "#/definitions/ContentChange"}},
"required": ["basedOnVersion", "proposedVersion", "resolved"]
},
"Vec3": {
"type": "object", "additionalProperties": false,
"properties": {"x": {"type": "number"}, "y": {"type": "number"}, "z": {"type": "number"}},