Skip to content

Commit 5c69748

Browse files
committed
Adding constants parameter lists
1 parent 3f7e1ae commit 5c69748

3 files changed

Lines changed: 1384 additions & 33 deletions

File tree

generated/experimental/enum_users.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,12 @@
9494
],
9595
"EnvironmentError": [],
9696
"EnvironmentParam": [
97-
"llGetEnvironment",
9897
"llSetAgentEnvironment",
9998
"llSetEnvironment"
10099
],
101-
"EnvironmentParamReadOnly": [],
100+
"EnvironmentParamReadOnly": [
101+
"llGetEnvironment"
102+
],
102103
"EstateAccessParam": [
103104
"llManageEstateAccess"
104105
],

lsl_definitions.schema.json

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,82 @@
299299
"markdownDescription": "The name of the enum this constant is a member of, if any.",
300300
"type": "array",
301301
"items": { "type": "string", "pattern": "^[A-Z]+[A-Za-z_]*$" }
302+
},
303+
"value-type": {
304+
"markdownDescription": "For constants used as rule tags in list-based APIs: the type of the value that follows this constant in the list. Uses the same vocabulary as ruleset param types. 'string-csv' accepts a {string} array and serializes it as an escaped comma-separated string. 'string-map' accepts a {[string]: string} table and emits one tag/key/value triple per entry.",
305+
"enum": ["integer", "float", "string", "vector", "rotation", "boolean", "asset", "key", "string-csv", "string-map", "string-multi"],
306+
"type": "string"
307+
},
308+
"range": {
309+
"markdownDescription": "An array with the start and end values.",
310+
"items": {
311+
"type": ["number", "string", "integer"]
312+
},
313+
"maxItems": 2,
314+
"minItems": 2,
315+
"type": "array"
316+
},
317+
"default": {
318+
"markdownDescription": "The default value.",
319+
"type": ["number", "string", "integer", "boolean"]
320+
},
321+
"enum": {
322+
"markdownDescription": "A category of constants valid for this value.",
323+
"type": "string"
324+
},
325+
"details": {
326+
"markdownDescription": "Additional information.",
327+
"type": "string"
328+
},
329+
"access": {
330+
"markdownDescription": "Access mode. 'arg' is always an argument. 'read' is used only when reading. 'write' is used only when writing.",
331+
"enum": ["arg", "read", "write", "read/write"],
332+
"type": "string"
333+
},
334+
"values": {
335+
"markdownDescription": "A list of values associated to the constant.",
336+
"type": "array",
337+
"items": {
338+
"type": "object",
339+
"additionalProperties": false,
340+
"properties": {
341+
"name": {
342+
"markdownDescription": "The name of this value.",
343+
"type": "string"
344+
},
345+
"value-type": {
346+
"markdownDescription": "For constants used as rule tags in list-based APIs: the type of the value that follows this constant in the list. Uses the same vocabulary as ruleset param types. 'string-csv' accepts a {string} array and serializes it as an escaped comma-separated string. 'string-map' accepts a {[string]: string} table and emits one tag/key/value triple per entry.",
347+
"enum": ["integer", "float", "string", "vector", "rotation", "boolean", "asset", "key", "string-csv", "string-map", "string-multi"],
348+
"type": "string"
349+
},
350+
"range": {
351+
"markdownDescription": "An array with the start and end values.",
352+
"items": {
353+
"type": ["number", "string", "integer"]
354+
},
355+
"maxItems": 2,
356+
"minItems": 2,
357+
"type": "array"
358+
},
359+
"default": {
360+
"markdownDescription": "The default value.",
361+
"type": ["number", "string", "integer", "boolean"]
362+
},
363+
"enum": {
364+
"markdownDescription": "A category of constants valid for this value.",
365+
"type": "string"
366+
},
367+
"details": {
368+
"markdownDescription": "Additional information.",
369+
"type": "string"
370+
},
371+
"access": {
372+
"markdownDescription": "Access mode. 'arg' is always an argument. 'read' is used only when reading. 'write' is used only when writing.",
373+
"enum": ["arg", "read", "write", "read/write"],
374+
"type": "string"
375+
}
376+
}
377+
}
302378
}
303379
},
304380
"required": [

0 commit comments

Comments
 (0)