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

41
vendor/github.com/thehowl/go-osuapi/genre.go generated vendored Normal file
View File

@@ -0,0 +1,41 @@
package osuapi
import "strconv"
// Genres
const (
GenreAny Genre = iota
GenreUnspecified
GenreVideoGame
GenreAnime
GenreRock
GenrePop
GenreOther
GenreNovelty
GenreHipHop Genre = iota + 1 // there's no 8, so we must manually increment it by one
GenreElectronic
)
// Genre is the genre of a beatmap's song.
type Genre int
var genreString = [...]string{
"any",
"unspecified",
"video game",
"anime",
"rock",
"pop",
"other",
"novelty",
"8",
"hip hop",
"electronic",
}
func (g Genre) String() string {
if g >= 0 && int(g) < len(genreString) {
return genreString[g]
}
return strconv.Itoa(int(g))
}