beatmap

package
v0.0.0-...-491ee29 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 6, 2024 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseBeatMap

func ParseBeatMap(beatMap *BeatMap) error

func ParseObjects

func ParseObjects(beatMap *BeatMap, diffCalcOnly, parseColors bool)

func ParseTimingPointsAndPauses

func ParseTimingPointsAndPauses(beatMap *BeatMap)

Types

type BeatMap

type BeatMap struct {
	Artist        string
	ArtistUnicode string
	Name          string
	NameUnicode   string
	Difficulty    string
	Creator       string
	Source        string
	Tags          string

	Mode int64

	SliderMultiplier float64
	StackLeniency    float64

	Diff *difficulty.Difficulty

	Dir   string
	File  string
	Audio string
	Bg    string
	MD5   string

	SetID int64
	ID    int64

	LastModified, TimeAdded, PlayCount, LastPlayed, PreviewTime int64

	Stars        float64
	StarsVersion int

	Length   int
	Circles  int
	Sliders  int
	Spinners int

	MinBPM float64
	MaxBPM float64

	Timings    *objects.Timings
	HitObjects []objects.IHitObject
	Pauses     []*Pause
	Queue      []objects.IHitObject

	Version int

	ARSpecified bool

	LocalOffset int
	// contains filtered or unexported fields
}

func NewBeatMap

func NewBeatMap() *BeatMap

func ParseBeatMapFile

func ParseBeatMapFile(file *os.File) *BeatMap

func (*BeatMap) CalculateStackLeniency

func (beatMap *BeatMap) CalculateStackLeniency(diff *difficulty.Difficulty)

func (*BeatMap) Clear

func (beatMap *BeatMap) Clear()

func (*BeatMap) FinalizePoints

func (beatMap *BeatMap) FinalizePoints()

func (*BeatMap) GetAudioFile

func (beatMap *BeatMap) GetAudioFile() (string, error)

func (*BeatMap) GetObjectsCopy

func (beatMap *BeatMap) GetObjectsCopy() []objects.IHitObject

func (*BeatMap) GetRelatedFile

func (beatMap *BeatMap) GetRelatedFile(path string) (string, error)

func (*BeatMap) LoadCustomSamples

func (beatMap *BeatMap) LoadCustomSamples()

func (*BeatMap) ParsePoint

func (beatMap *BeatMap) ParsePoint(point string)

func (*BeatMap) Reset

func (beatMap *BeatMap) Reset()

func (*BeatMap) Update

func (beatMap *BeatMap) Update(time float64)

func (*BeatMap) UpdatePlayStats

func (beatMap *BeatMap) UpdatePlayStats()

type Pause

type Pause struct {
	StartTime float64
	EndTime   float64
}

func NewPause

func NewPause(data []string) *Pause

func (*Pause) GetEndTime

func (pause *Pause) GetEndTime() float64

func (*Pause) GetStartTime

func (pause *Pause) GetStartTime() float64

func (*Pause) Length

func (pause *Pause) Length() float64

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL