Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- type Field = Dictionary<[
- "type": TYPE_DICTIONARY,
- // When this doesn't exist, the Dictionary can hold anything
- optional "fields": Dictionary<[
- key: String, // Name of the field, regex
- value: Field, // Type constraint of the field
- ]>,
- optional "min_fields": int,
- optional "max_fields": int,
- "type": TYPE_ARRAY,
- // When this doesn't exist, the Array can hold anything
- optional "elements": Array<Field>,
- optional "min_elements": int,
- optional "max_elements": int,
- "type": TYPE_STRING,
- // When this doesn't exist, the String field can hold any string
- optional "enum": Array<String>,
- "type": TYPE_ENUM,
- "values": Dictionary<[
- key: String, // Name of the enum value
- value: Int, // Integer value of the enum value
- ]>,
- "type": TYPE_RESOURCE,
- "class": /path/to/resource/class
- "type": TYPE_INT,
- optional "min_value": Int,
- optional "max_value": Int,
- "type": TYPE_REAL,
- optional "min_value": Real,
- optional "max_value": Real,
- "type": TYPE_BOOL,
- ]>
Advertisement
Add Comment
Please, Sign In to add comment