1 2 3 4 5 6 7 8 9 10 11 12 13 14
package com.ambientaddons.utils.dungeon enum class TextStyle { Default, Shadow, Outline; companion object { fun fromInt(number: Int): TextStyle? = when (number) { 0 -> Default 1 -> Shadow 2 -> Outline else -> null } } }