1
0
Fork 0
mirror of https://codeberg.org/demostf/parser.git synced 2026-06-03 18:24:05 +02:00

update schema

This commit is contained in:
Robin Appelman 2024-02-01 00:35:20 +01:00
commit f38e4caa72

View file

@ -946,6 +946,7 @@
"type": "object", "type": "object",
"required": [ "required": [
"additional_flags", "additional_flags",
"player",
"sound", "sound",
"team", "team",
"type" "type"
@ -956,6 +957,11 @@
"format": "uint16", "format": "uint16",
"minimum": 0.0 "minimum": 0.0
}, },
"player": {
"type": "integer",
"format": "uint16",
"minimum": 0.0
},
"sound": { "sound": {
"$ref": "#/definitions/String" "$ref": "#/definitions/String"
}, },
@ -2039,7 +2045,8 @@
"issue", "issue",
"param_1", "param_1",
"team", "team",
"type" "type",
"voteidx"
], ],
"properties": { "properties": {
"initiator": { "initiator": {
@ -2063,6 +2070,11 @@
"enum": [ "enum": [
"VoteStarted" "VoteStarted"
] ]
},
"voteidx": {
"type": "integer",
"format": "uint32",
"minimum": 0.0
} }
} }
}, },
@ -2075,7 +2087,8 @@
"vote_option_2", "vote_option_2",
"vote_option_3", "vote_option_3",
"vote_option_4", "vote_option_4",
"vote_option_5" "vote_option_5",
"voteidx"
], ],
"properties": { "properties": {
"potential_votes": { "potential_votes": {
@ -2113,6 +2126,11 @@
"type": "integer", "type": "integer",
"format": "uint8", "format": "uint8",
"minimum": 0.0 "minimum": 0.0
},
"voteidx": {
"type": "integer",
"format": "uint32",
"minimum": 0.0
} }
} }
}, },
@ -2122,7 +2140,8 @@
"details", "details",
"param_1", "param_1",
"team", "team",
"type" "type",
"voteidx"
], ],
"properties": { "properties": {
"details": { "details": {
@ -2141,6 +2160,11 @@
"enum": [ "enum": [
"VotePassed" "VotePassed"
] ]
},
"voteidx": {
"type": "integer",
"format": "uint32",
"minimum": 0.0
} }
} }
}, },
@ -2148,7 +2172,8 @@
"type": "object", "type": "object",
"required": [ "required": [
"team", "team",
"type" "type",
"voteidx"
], ],
"properties": { "properties": {
"team": { "team": {
@ -2161,6 +2186,11 @@
"enum": [ "enum": [
"VoteFailed" "VoteFailed"
] ]
},
"voteidx": {
"type": "integer",
"format": "uint32",
"minimum": 0.0
} }
} }
}, },
@ -2170,7 +2200,8 @@
"entity_id", "entity_id",
"team", "team",
"type", "type",
"vote_option" "vote_option",
"voteidx"
], ],
"properties": { "properties": {
"entity_id": { "entity_id": {
@ -2193,6 +2224,11 @@
"type": "integer", "type": "integer",
"format": "uint8", "format": "uint8",
"minimum": 0.0 "minimum": 0.0
},
"voteidx": {
"type": "integer",
"format": "uint32",
"minimum": 0.0
} }
} }
}, },
@ -2205,7 +2241,8 @@
"option_3", "option_3",
"option_4", "option_4",
"option_5", "option_5",
"type" "type",
"voteidx"
], ],
"properties": { "properties": {
"count": { "count": {
@ -2233,6 +2270,11 @@
"enum": [ "enum": [
"VoteOptions" "VoteOptions"
] ]
},
"voteidx": {
"type": "integer",
"format": "uint32",
"minimum": 0.0
} }
} }
}, },
@ -9277,6 +9319,46 @@
} }
} }
}, },
{
"type": "object",
"required": [
"player",
"type"
],
"properties": {
"player": {
"type": "integer",
"format": "uint16",
"minimum": 0.0
},
"type": {
"type": "string",
"enum": [
"SkeletonKilledQuest"
]
}
}
},
{
"type": "object",
"required": [
"player",
"type"
],
"properties": {
"player": {
"type": "integer",
"format": "uint16",
"minimum": 0.0
},
"type": {
"type": "string",
"enum": [
"SkeletonKingKilledQuest"
]
}
}
},
{ {
"type": "object", "type": "object",
"required": [ "required": [
@ -11149,6 +11231,8 @@
"MerasmusStunned", "MerasmusStunned",
"MerasmusPropFound", "MerasmusPropFound",
"HalloweenSkeletonKilled", "HalloweenSkeletonKilled",
"SkeletonKilledQuest",
"SkeletonKingKilledQuest",
"EscapeHell", "EscapeHell",
"CrossSpectralBridge", "CrossSpectralBridge",
"MiniGameWon", "MiniGameWon",
@ -11920,7 +12004,7 @@
], ],
"properties": { "properties": {
"client": { "client": {
"$ref": "#/definitions/UserId" "$ref": "#/definitions/EntityId"
}, },
"from": { "from": {
"anyOf": [ "anyOf": [
@ -12292,6 +12376,7 @@
"type": "object", "type": "object",
"required": [ "required": [
"event", "event",
"event_type",
"event_type_id", "event_type_id",
"type" "type"
], ],
@ -12299,6 +12384,9 @@
"event": { "event": {
"$ref": "#/definitions/GameEvent" "$ref": "#/definitions/GameEvent"
}, },
"event_type": {
"$ref": "#/definitions/GameEventType"
},
"event_type_id": { "event_type_id": {
"$ref": "#/definitions/GameEventTypeId" "$ref": "#/definitions/GameEventTypeId"
}, },
@ -12327,12 +12415,14 @@
"minimum": 0.0 "minimum": 0.0
}, },
"delta": { "delta": {
"type": [ "anyOf": [
"integer", {
"null" "$ref": "#/definitions/ServerTick"
], },
"format": "uint32", {
"minimum": 1.0 "type": "null"
}
]
}, },
"entities": { "entities": {
"type": "array", "type": "array",
@ -12563,12 +12653,14 @@
"format": "float" "format": "float"
}, },
"delta": { "delta": {
"type": [ "anyOf": [
"integer", {
"null" "$ref": "#/definitions/ServerTick"
], },
"format": "uint32", {
"minimum": 0.0 "type": "null"
}
]
}, },
"entity_index": { "entity_index": {
"$ref": "#/definitions/EntityId" "$ref": "#/definitions/EntityId"
@ -12999,11 +13091,6 @@
} }
} }
}, },
"UserId": {
"type": "integer",
"format": "uint8",
"minimum": 0.0
},
"VGuiMenuMessageData": { "VGuiMenuMessageData": {
"type": "object", "type": "object",
"required": [ "required": [