Skip to main content

EnumeratedType

An enumerated type allows you to define options in the app. You can use them for things that have a finite amount of options (e.g: alignment, types, dice types, hit point modes, etc).

JSON Format

{
"type": "EnumeratedType",
"id": ...,
"name": ...,
"plural": ...,
"abbreviation": ...,
"extends_type": ...,
"types": ...
}

Fields

FieldTypeRequiredDescription
typesList<DisplayableData>The list of options this type is made of. For example, for a dice_types enumerated type, you might want to have the following options (just including ids in this example, but names should be provided to): d4, d6, d8, d10, d12, d20.