Documentation
¶
Index ¶
Constants ¶
View Source
const ( OSU = 0 TAIKO = 1 CTB = 2 MANIA = 3 )
All osu playmodes
View Source
const ( LEFTCLICK = 1 << 0 RIGHTCLICK = 1 << 1 KEY1 = 1 << 2 KEY2 = 1 << 3 SMOKE = 1 << 4 )
ClickState
Variables ¶
This section is empty.
Functions ¶
func SerializeFrames ¶
func SerializeFrames(data []*ReplayData) ([]byte, error)
func WriteReplay ¶
Types ¶
type KeyPressed ¶
KeyPressed is the Parsed Compressed KeyPressed.
type LifeBarGraph ¶
LifeBarGraph is the Bar under the Score stuff.
type MaximumStatistics ¶
type MaximumStatistics struct {
*Statistics
LargeBonus float64
}
type ModInfo ¶
type ModInfo struct {
Acronym string `json:"acronym"`
Settings map[string]interface{} `json:"settings,omitempty"`
SpeedChange string `json:"speed_change,omitempty"`
ApproachRate string `json:"approach_rate,omitempty"`
ExtendedLimits string `json:"extended_limits,omitempty"`
ClassicNoteLock string `json:"classic_note_lock,omitempty"`
}
type Replay ¶
type Replay struct {
PlayMode int8
OsuVersion int32
BeatmapMD5 string
Username string
ReplayMD5 string
Count300 uint16
Count100 uint16
Count50 uint16
CountGeki uint16
CountKatu uint16
CountMiss uint16
Score int32
MaxCombo uint16
Fullcombo bool
Mods uint32
LifebarGraph []LifeBarGraph
Timestamp time.Time
ReplayData []*ReplayData
ScoreID int64 // idk if it's the scoreid, maybe it is maybe not.
ScoreInfo *ScoreInfo
}
Replay is the Parsed replay.
func ParseReplay ¶
ParseReplay parses a Replay and returns a *Replay
type ReplayData ¶
type ReplayData struct {
Time int64
MouseX 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)
type ScoreInfo ¶
type ScoreInfo struct {
Mods []*ModInfo
Statistics *Statistics
MaximumStatistics []*MaximumStatistics
}
func ParseCompressedScoreInfo ¶
ParseCompressedScoreInfo parses compressed ScoreInfo, (ScoreInfo)
Click to show internal directories.
Click to hide internal directories.