• 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 class Color private constructor() {
10     companion object {
11         const val Red: UByte = 1u
12         /**
13          * \brief color Green
14          * Green is bit_flag with value (1u << 1)
15          */
16         const val Green: UByte = 2u
17         /**
18          * \brief color Blue (1u << 3)
19          */
20         const val Blue: UByte = 8u
21         val names : Array<String> = arrayOf("Red", "Green", "", "", "", "", "", "Blue")
namenull22         fun name(e: Int) : String = names[e - Red.toInt()]
23     }
24 }
25