Skip to content

EnumDefinition

interface EnumDefinition
Example
fun describeEnum(enum: EnumDefinition) {
if (!enum.asset.present) return Logger.warn("enum ${enum.name} is not in this build")
Logger.info("enum ${enum.name} has id ${enum.id}")
}
val name: String
val id: Int
val asset: Asset