add enemy card type
This commit is contained in:
parent
e9b81f7ea9
commit
220f18a75e
@ -22,7 +22,8 @@ const (
|
|||||||
GoblinSpawn //1 power goblin token
|
GoblinSpawn //1 power goblin token
|
||||||
|
|
||||||
//Rank 2
|
//Rank 2
|
||||||
Ally //puts +1 token on allied unit
|
Ally //puts +1 token on allied unit
|
||||||
|
Enemy //puts -1 token on enemy unit
|
||||||
)
|
)
|
||||||
const (
|
const (
|
||||||
EmptyValue CardType = -1
|
EmptyValue CardType = -1
|
||||||
|
@ -8,9 +8,9 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
)
|
)
|
||||||
|
|
||||||
const _CardTypeName = "EmptyValueValkSpeedsterCommanderPaladinScholarWarriorFighterSevenShieldWallHealthPotionTreeGoblinGoblinSpawnAlly"
|
const _CardTypeName = "EmptyValueValkSpeedsterCommanderPaladinScholarWarriorFighterSevenShieldWallHealthPotionTreeGoblinGoblinSpawnAllyEnemy"
|
||||||
|
|
||||||
var _CardTypeIndex = [...]uint8{0, 10, 14, 23, 32, 39, 46, 53, 60, 65, 75, 87, 91, 97, 108, 112}
|
var _CardTypeIndex = [...]uint8{0, 10, 14, 23, 32, 39, 46, 53, 60, 65, 75, 87, 91, 97, 108, 112, 117}
|
||||||
|
|
||||||
func (i CardType) String() string {
|
func (i CardType) String() string {
|
||||||
i -= -1
|
i -= -1
|
||||||
@ -20,7 +20,7 @@ func (i CardType) String() string {
|
|||||||
return _CardTypeName[_CardTypeIndex[i]:_CardTypeIndex[i+1]]
|
return _CardTypeName[_CardTypeIndex[i]:_CardTypeIndex[i+1]]
|
||||||
}
|
}
|
||||||
|
|
||||||
var _CardTypeValues = []CardType{-1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13}
|
var _CardTypeValues = []CardType{-1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14}
|
||||||
|
|
||||||
var _CardTypeNameToValueMap = map[string]CardType{
|
var _CardTypeNameToValueMap = map[string]CardType{
|
||||||
_CardTypeName[0:10]: -1,
|
_CardTypeName[0:10]: -1,
|
||||||
@ -38,6 +38,7 @@ var _CardTypeNameToValueMap = map[string]CardType{
|
|||||||
_CardTypeName[91:97]: 11,
|
_CardTypeName[91:97]: 11,
|
||||||
_CardTypeName[97:108]: 12,
|
_CardTypeName[97:108]: 12,
|
||||||
_CardTypeName[108:112]: 13,
|
_CardTypeName[108:112]: 13,
|
||||||
|
_CardTypeName[112:117]: 14,
|
||||||
}
|
}
|
||||||
|
|
||||||
// CardTypeString retrieves an enum value from the enum constants string name.
|
// CardTypeString retrieves an enum value from the enum constants string name.
|
||||||
|
Loading…
Reference in New Issue
Block a user