This commit is contained in:
Morgan Bazalgette
2017-01-14 18:42:10 +01:00
parent 41ee4c90b3
commit 3961e310b1
444 changed files with 179208 additions and 0 deletions

28
vendor/github.com/thehowl/go-osuapi/mode.go generated vendored Normal file
View File

@@ -0,0 +1,28 @@
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))
}