Add EnumNames to Go code

Tested: on Darwin
This commit is contained in:
Kazuki Sakamoto
2016-07-25 19:37:16 -07:00
parent 1bba4fd9ea
commit 5f351a35a2
4 changed files with 85 additions and 1 deletions

View File

@@ -8,3 +8,11 @@ const (
AnyTestSimpleTableWithEnum = 2
AnyMyGame_Example2_Monster = 3
)
var EnumNamesAny = map[int]string{
AnyNONE:"NONE",
AnyMonster:"Monster",
AnyTestSimpleTableWithEnum:"TestSimpleTableWithEnum",
AnyMyGame_Example2_Monster:"MyGame_Example2_Monster",
}

View File

@@ -7,3 +7,10 @@ const (
ColorGreen = 2
ColorBlue = 8
)
var EnumNamesColor = map[int]string{
ColorRed:"Red",
ColorGreen:"Green",
ColorBlue:"Blue",
}