Documentation
¶
Index ¶
Constants ¶
View Source
const ( OSU = 0 TAIKO = 1 CTB = 2 MANIA = 3 )
ALL OSU PLAYMODES
View Source
const ( LEFTCLICK = 2 << 0 RIGHTCLICK = 2 << 1 KEY1 = 2 << 2 KEY2 = 2 << 3 SMOKE = 2 << 4 )
CLICKSTATE
View Source
const (
APIKEY = "" // Enter your osu apikey, optional if you want to parse the beatmap
)
Keys
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BeatmapData ¶
type BeatmapData []struct {
BeatmapsetID string `json:"beatmapset_id"`
BeatmapID string `json:"beatmap_id"`
Approved string `json:"approved"`
TotalLength string `json:"total_length"`
HitLength string `json:"hit_length"`
Version string `json:"version"`
FileMd5 string `json:"file_md5"`
DiffSize string `json:"diff_size"`
DiffOverall string `json:"diff_overall"`
DiffApproach string `json:"diff_approach"`
DiffDrain string `json:"diff_drain"`
Mode string `json:"mode"`
ApprovedDate string `json:"approved_date"`
LastUpdate string `json:"last_update"`
Artist string `json:"artist"`
Title string `json:"title"`
Creator string `json:"creator"`
CreatorID string `json:"creator_id"`
Bpm string `json:"bpm"`
Source string `json:"source"`
Tags string `json:"tags"`
GenreID string `json:"genre_id"`
LanguageID string `json:"language_id"`
FavouriteCount string `json:"favourite_count"`
Playcount string `json:"playcount"`
Passcount string `json:"passcount"`
MaxCombo string `json:"max_combo"`
Difficultyrating string `json:"difficultyrating"`
}
BeatmapData from osu api
func ParseBeatmap ¶
func ParseBeatmap(beatmapMD5 string) (r *BeatmapData, err error)
ParseBeatmap returns parsed BeatmapData
type KeyPressed ¶
KeyPressed is the Parsed Compressed KeyPressed.
type LifeBarGraph ¶
LifeBarGraph is the Bar under the Score stuff.
type Replay ¶
type Replay struct {
PlayMode int8
OsuVersion int32
BeatmapMD5 string
BeatmapParsed bool
Beatmap *BeatmapData
Username string
ReplayMD5 string
Count300 uint16
Count100 uint16
Count50 uint16
CountGeki uint16
CountKatu uint16
CountMiss uint16
Score int32
MaxCombo uint16
Fullcombo bool
Mods []string
LifebarGraph []LifeBarGraph
Timestamp time.Time
ReplayData []*ReplayData
OnlineScoreID int64
}
Replay is the Parsed replay.
func ParseReplay ¶
ParseReplay parses a Replay and returns a *Replay
func (*Replay) PrintAllBeatmap ¶
func (rep *Replay) PrintAllBeatmap()
PrintAllBeatmap prints informations about the replay's beatmaps
func (*Replay) PrintBeatmap ¶
PrintBeatmap prints informations about the replay's beatmap at index
func (*Replay) PrintReplay ¶
func (rep *Replay) PrintReplay()
PrintReplay informations about the replays
type ReplayData ¶
type ReplayData struct {
Time int64
MosueX float32
MouseY float32
KeyPressed *KeyPressed
}
ReplayData is the Parsed Compressed Replay data.
func ParseCompressed ¶
func ParseCompressed(file []byte) (d []*ReplayData, err error)
ParseCompressed parses a compressed replay, (ReplayData)
Click to show internal directories.
Click to hide internal directories.
