Documentation
¶
Index ¶
- type Bookmark
- type CustomAudioSample
- type EditorLayer
- type HitObject
- type KeySound
- type Qua
- func (q *Qua) CommonBPM() float32
- func (q *Qua) CountHitObjectLong() int
- func (q *Qua) CountHitObjectNormal() int
- func (q *Qua) FileName() string
- func (q *Qua) MapLength() int
- func (q *Qua) MaxCombo() int
- func (q *Qua) ReplaceIds(mapsetId int, mapId int) string
- func (q *Qua) Write(path string) error
- type ScrollVelocity
- type SoundEffect
- type TimingPoint
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomAudioSample ¶
type EditorLayer ¶
type HitObject ¶
type HitObject struct { StartTime int `yaml:"StartTime"` Lane int `yaml:"Lane"` EndTime int `yaml:"EndTime"` HitSound string `yaml:"HitSound"` KeySounds []KeySound `yaml:"KeySounds"` EditorLayer int `yaml:"EditorLayer"` }
func (HitObject) IsLongNote ¶
IsLongNote Returns if the hit object is a long note
type Qua ¶
type Qua struct { RawBytes []byte `yaml:"-"` AudioFile string `yaml:"AudioFile"` SongPreviewTime int `yaml:"SongPreviewTime"` BackgroundFile string `yaml:"BackgroundFile"` BannerFile string `yaml:"BannerFile"` MapId int `yaml:"MapId"` MapSetId int `yaml:"MapSetId"` RawMode string `yaml:"Mode"` Mode enums.GameMode `yaml:"-"` Title string `yaml:"Title"` Artist string `yaml:"Artist"` Source string `yaml:"Source"` Tags string `yaml:"Tags"` Creator string `yaml:"Creator"` DifficultyName string `yaml:"DifficultyName"` Description string `yaml:"Description"` Genre string `yaml:"Genre"` LegacyLNRendering bool `yaml:"LegacyLNRendering"` BPMDoesNotAffectScrollVelocity bool `yaml:"BPMDoesNotAffectScrollVelocity"` InitialScrollVelocity float32 `yaml:"InitialScrollVelocity"` HasScratchKey bool `yaml:"HasScratchKey"` EditorLayers []EditorLayer `yaml:"EditorLayers"` Bookmarks []Bookmark `yaml:"Bookmarks"` SoundEffects []SoundEffect `yaml:"SoundEffects"` TimingPoints []TimingPoint `yaml:"TimingPoints"` ScrollVelocities []ScrollVelocity `yaml:"SliderVelocities"` HitObjects []HitObject `yaml:"HitObjects"` }
func (*Qua) CountHitObjectLong ¶
CountHitObjectLong Returns the count of long notes in the map
func (*Qua) CountHitObjectNormal ¶
CountHitObjectNormal Returns the count of normal hit objects in the map
func (*Qua) ReplaceIds ¶
ReplaceIds Replaces the ids of the map and sets Qua.RawBytes. Returns a string of the new file.
type ScrollVelocity ¶
type SoundEffect ¶
Click to show internal directories.
Click to hide internal directories.