ripple-api/vendor/gopkg.in/thehowl/go-osuapi.v1/mode.go
Morgan Bazalgette 3961e310b1 vendor!
2017-01-14 18:42:10 +01:00

29 lines
377 B
Go

package osuapi
import "strconv"
// osu! game modes IDs.
const (
ModeOsu Mode = iota
ModeTaiko
ModeCatchTheBeat
ModeOsuMania
)
// Mode is an osu! game mode.
type Mode int
var modesString = [...]string{
"osu!",
"Taiko",
"Catch the Beat",
"osu!mania",
}
func (m Mode) String() string {
if m >= 0 && m <= 3 {
return modesString[m]
}
return strconv.Itoa(int(m))
}