-
Notifications
You must be signed in to change notification settings - Fork 58
/
schema.json
92 lines (92 loc) · 2.36 KB
/
schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
{
"type": "object",
"patternProperties": {
"^([A-Z_]+[A-Z0-9_]*|_0x[0-9A-F]{16})$": {
"type": "object",
"patternProperties": {
"^0x[0-9A-F]{16}$": {
"type": "object",
"properties": {
"name": { "$ref": "#/$defs/native_name" },
"comment": { "type": "string" },
"params": {
"type": "array",
"items": {
"type": "object",
"properties": {
"type": { "$ref": "#/$defs/param_type" },
"name": {
"type": "string",
"pattern": "^([A-Za-z_]+[A-Za-z0-9_]*|\\.\\.\\.)$"
}
},
"required": ["type", "name"],
"additionalProperties": false
}
},
"return_type": { "$ref": "#/$defs/return_type" },
"build": { "type": "string" },
"variadic": { "type": "boolean" },
"unused": { "type": "boolean" },
"gta_hash": {
"type": "string",
"pattern": "^0x[0-9A-F]{16}$"
},
"gta_jhash": {
"type": "string",
"pattern": "^($|0x[0-9A-F]{8})$"
}
},
"required": ["name", "comment", "params", "return_type", "build"],
"dependencies": {
"gta_hash": ["gta_jhash"]
},
"additionalProperties": false
}
},
"additionalProperties": false
}
},
"additionalProperties": false,
"$defs": {
"native_name": {
"type": "string",
"pattern": "^([A-Z_]+[A-Z0-9_]*|_0x[0-9A-F]{16})$"
},
"param_type": {
"type": "string",
"enum": [
"",
"int", "int*",
"float", "float*",
"BOOL", "BOOL*",
"char*", "const char*",
"Any", "Any*",
"Blip", "Blip*",
"Cam", "Cam*",
"Entity", "Entity*",
"FireId", "FireId*",
"Hash", "Hash*",
"Interior", "Interior*",
"ItemSet", "ItemSet*",
"Object", "Object*",
"Ped", "Ped*",
"Pickup", "Pickup*",
"Player", "Player*",
"ScrHandle", "ScrHandle*",
"Vector3*",
"Vehicle", "Vehicle*",
"AnimScene", "AnimScene*",
"PersChar", "PersChar*",
"PopZone", "PopZone*",
"Prompt", "Prompt*",
"PropSet", "PropSet*",
"Volume", "Volume*"
]
},
"return_type": {
"type": "string",
"enum": ["void", "int", "float", "BOOL", "const char*", "Any", "Any*", "Blip", "Cam", "Entity", "FireId", "Hash", "Interior", "ItemSet", "Object", "Ped", "Pickup", "Player", "ScrHandle", "Vector3", "Vehicle", "AnimScene", "PersChar", "PopZone", "Prompt", "PropSet", "Volume"]
}
}
}