2018-10-03 18:19:40 +00:00
|
|
|
// Code generated by the FlatBuffers compiler. DO NOT EDIT.
|
2014-07-11 23:12:35 +00:00
|
|
|
|
|
|
|
package Example
|
|
|
|
|
2019-05-17 19:41:39 +00:00
|
|
|
import "strconv"
|
|
|
|
|
2019-06-02 19:36:49 +00:00
|
|
|
/// Composite components of Monster color.
|
2019-05-17 19:41:39 +00:00
|
|
|
type Color byte
|
|
|
|
|
2014-07-11 23:12:35 +00:00
|
|
|
const (
|
2019-05-17 19:41:39 +00:00
|
|
|
ColorRed Color = 1
|
2019-06-02 19:36:49 +00:00
|
|
|
/// \brief color Green
|
|
|
|
/// Green is bit_flag with value (1u << 1)
|
2018-07-26 23:40:56 +00:00
|
|
|
ColorGreen Color = 2
|
2019-06-02 19:36:49 +00:00
|
|
|
/// \brief color Blue (1u << 3)
|
2019-05-17 19:41:39 +00:00
|
|
|
ColorBlue Color = 8
|
2014-07-11 23:12:35 +00:00
|
|
|
)
|
2016-07-26 02:37:16 +00:00
|
|
|
|
2018-07-26 23:40:56 +00:00
|
|
|
var EnumNamesColor = map[Color]string{
|
2019-05-17 19:41:39 +00:00
|
|
|
ColorRed: "Red",
|
|
|
|
ColorGreen: "Green",
|
|
|
|
ColorBlue: "Blue",
|
2016-07-26 02:37:16 +00:00
|
|
|
}
|
|
|
|
|
2019-05-17 19:41:39 +00:00
|
|
|
var EnumValuesColor = map[string]Color{
|
|
|
|
"Red": ColorRed,
|
|
|
|
"Green": ColorGreen,
|
|
|
|
"Blue": ColorBlue,
|
|
|
|
}
|
|
|
|
|
|
|
|
func (v Color) String() string {
|
|
|
|
if s, ok := EnumNamesColor[v]; ok {
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
return "Color(" + strconv.FormatInt(int64(v), 10) + ")"
|
|
|
|
}
|