Skip to content
G-Art edited this page Nov 27, 2020 · 2 revisions

Enum segment

Example:

elements {
    enums {
        ExampleEnum {
            Example1
            Example2
            Example3
        }
    }
}

Enum segment dedicated to declaring Enums

Enums might be used as a type for Item attribute.

Example:

    items {
        Example {
            description = "Example item declaration"
            attributes {
                exampleEnumAttribute(ExampleEnum) {
                    description = "Example enume type field declaration"
                }
            }
        }
    }
Clone this wiki locally