beatmap

package
v0.0.0-...-50c553c Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdjustOD

func AdjustOD(OD float64) float64

OD规范为带0.5的向下取整小数

func ParseObjects

func ParseObjects(beatMap *BeatMap)

func ParseObjectsbyPath

func ParseObjectsbyPath(beatMap *BeatMap, filename string, isHR bool, isEZ bool)

Types

type BeatMap

type BeatMap struct {
	Artist, ArtistUnicode, Name, NameUnicode, Difficulty, Creator, Source, Tags string
	// 加入OD
	SliderMultiplier, StackLeniency, CircleSize, AR, ARms, FadeIn, OD, OD300, OD100, OD50, ODMiss float64
	Dir, File, Audio, Bg, MD5, PausesText, TimingPoints                                           string

	LastModified, TimeAdded, PlayCount, LastPlayed, PreviewTime int64

	Timings    *objects.Timings
	HitObjects []objects.BaseObject
	Pauses     []objects.BaseObject
	Queue      []objects.BaseObject
}

func LoadBeatmaps

func LoadBeatmaps() []*BeatMap

func NewBeatMap

func NewBeatMap() *BeatMap

func ParseBeatMap

func ParseBeatMap(file *os.File) *BeatMap

func (*BeatMap) GetObjectsCopy

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

func (*BeatMap) LoadCustomSamples

func (beatMap *BeatMap) LoadCustomSamples()

func (*BeatMap) LoadPauses

func (beatMap *BeatMap) LoadPauses()

func (*BeatMap) LoadTimingPoints

func (beatMap *BeatMap) LoadTimingPoints()

func (*BeatMap) Reset

func (b *BeatMap) Reset()

func (*BeatMap) Update

func (b *BeatMap) Update(time int64)

func (*BeatMap) UpdatePlayStats

func (beatMap *BeatMap) UpdatePlayStats()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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