• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // automatically generated by the FlatBuffers compiler, do not modify
2 
3 package MyGame.Example
4 
5 /**
6  * Composite components of Monster color.
7  */
8 @Suppress("unused")
9 @ExperimentalUnsignedTypes
10 class Color private constructor() {
11     companion object {
12         const val Red: UByte = 1u
13         /**
14          * \brief color Green
15          * Green is bit_flag with value (1u << 1)
16          */
17         const val Green: UByte = 2u
18         /**
19          * \brief color Blue (1u << 3)
20          */
21         const val Blue: UByte = 8u
22         val names : Array<String> = arrayOf("Red", "Green", "", "", "", "", "", "Blue")
namenull23         fun name(e: Int) : String = names[e - Red.toInt()]
24     }
25 }
26