Add attribute handling, rework atr and shape caches.

This commit is contained in:
Ottermandias 2025-05-21 15:44:26 +02:00
parent 3412786282
commit d7dee39fab
23 changed files with 1187 additions and 300 deletions

View file

@ -3,7 +3,7 @@
"type": "object",
"properties": {
"Type": {
"enum": [ "Unknown", "Imc", "Eqdp", "Eqp", "Est", "Gmp", "Rsp", "GlobalEqp", "Atch", "Shp" ]
"enum": [ "Unknown", "Imc", "Eqdp", "Eqp", "Est", "Gmp", "Rsp", "GlobalEqp", "Atch", "Shp", "Atr" ]
},
"Manipulation": {
"type": "object"
@ -100,6 +100,16 @@
"$ref": "meta_shp.json"
}
}
},
{
"properties": {
"Type": {
"const": "Atr"
},
"Manipulation": {
"$ref": "meta_atr.json"
}
}
}
]
}

View file

@ -0,0 +1,27 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"Entry": {
"type": "boolean"
},
"Slot": {
"$ref": "meta_enums.json#HumanSlot"
},
"Id": {
"$ref": "meta_enums.json#U16"
},
"Attribute": {
"type": "string",
"minLength": 5,
"maxLength": 30,
"pattern": "^atrx_"
},
"GenderRaceCondition": {
"enum": [ 0, 101, 201, 301, 401, 501, 601, 701, 801, 901, 1001, 1101, 1201, 1301, 1401, 1501, 1601, 1701, 1801 ]
}
},
"required": [
"Attribute"
]
}

View file

@ -19,6 +19,9 @@
},
"ConnectorCondition": {
"$ref": "meta_enums.json#ShapeConnectorCondition"
},
"GenderRaceCondition": {
"enum": [ 0, 101, 201, 301, 401, 501, 601, 701, 801, 901, 1001, 1101, 1201, 1301, 1401, 1501, 1601, 1701, 1801 ]
}
},
"required": [