...

Text file src/github.com/google/flatbuffers/tests/MyGame/Example/Color.kt

Documentation: github.com/google/flatbuffers/tests/MyGame/Example

     1// automatically generated by the FlatBuffers compiler, do not modify
     2
     3package MyGame.Example
     4
     5/**
     6 * Composite components of Monster color.
     7 */
     8@Suppress("unused")
     9class 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")
    22        fun name(e: Int) : String = names[e - Red.toInt()]
    23    }
    24}

View as plain text