package
Version:
v1.2.0
Opens a new window with list of versions in this module.
Published: Jun 13, 2024
License: MIT
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
TypeStrings returns a slice of all String values of the enum
type Stats struct {
Health float64 `json:"health"`
Damage float64 `json:"damage"`
AttackSpeed float64 `json:"attack_speed"`
Shield float64 `json:"shield"`
Income int `json:"income"`
Gold int `json:"gold"`
MovementSpeed float64 `json:"movement_speed"`
}
const (
Ninja Type = iota
Statue
Hunter
Slime
Mole
SkeletonDemon
Butterfly
BlendMaster
Robot
MonkeyBoxer
)
TypeString retrieves an enum value from the enum constants string name.
Throws an error if the param is not part of the enum.
TypeValues returns all values of the enum
IsAType returns "true" if the value is listed in the enum definition. "false" otherwise
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.