Documentation ¶
Index ¶
- Constants
- type Color
- type CurveType
- type CustomSampleSet
- type DifficultySection
- type EditorSection
- type Event
- type EventType
- type EventsSection
- type GeneralSection
- type HitObject
- type HitObjectType
- type HitObjectsSection
- type HitSoundType
- type MetadataSection
- type OsuFile
- type Playmode
- type SampleSet
- type Special
- type TimeSignature
- type TimingPoint
- type TimingPointSection
- type Vec2
Constants ¶
View Source
const ( SectionGeneral = 0 SectionEditor = 1 SectionMetadata = 2 SectionDifficulty = 3 SectionEvents = 4 SectionTimingPoints = 5 SectionHitObjects = 6 SectionIgnore = 7 )
View Source
const ( HitObjectTypeCircle HitObjectType = 1 HitObjectTypeSlider HitObjectType = 2 HitObjectTypeNewCombo HitObjectType = 4 HitObjectTypeCircleNewCombo HitObjectType = 5 HitObjectTypeSliderNewCombo HitObjectType = 6 HitObjectTypeSpinner HitObjectType = 8 HitObjectTypeColorHax HitObjectType = 112 HitObjectTypeHold HitObjectType = 128 HitSoundTypeNone HitSoundType = 0 HitSoundTypeDefault HitSoundType = 1 HitSoundTypeWhistle HitSoundType = 2 HitSoundTypeFinish HitSoundType = 4 HitSoundTypeClap HitSoundType = 8 SampleSetNone SampleSet = 0 SampleSetNormal SampleSet = 1 SampleSetSoft SampleSet = 2 SampleSetDrum SampleSet = 3 CustomSampleSetNone CustomSampleSet = 0 CustomSampleSet1 CustomSampleSet = 1 CustomSampleSet2 CustomSampleSet = 2 CurveTypeCatmull CurveType = 0 CurveTypeBezier CurveType = 1 CurveTypeLinear CurveType = 2 CurveTypePerfect CurveType = 3 )
View Source
const ( TimeSignatureQuadruple TimeSignature = 0 TimeSignatureTriplet TimeSignature = 1 TimeSignature5 TimeSignature = 5 TimeSignature6 TimeSignature = 6 TimeSignature7 TimeSignature = 7 SpecialNone Special = 0 SpecialKiai Special = 1 SpecialTaikoOmitBarLine Special = 8 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomSampleSet ¶
type CustomSampleSet int32
type DifficultySection ¶
type EditorSection ¶
type EventsSection ¶
type EventsSection struct {
Events []Event
}
type GeneralSection ¶
type GeneralSection struct { AudioFilename string AudioLeadIn int32 AudioHash string PreviewTime int32 Countdown int32 SampleSet SampleSet StackLeniency float64 Mode Playmode LetterboxInBreaks bool WidescreenStoryboard bool EditorBookmarks []int32 EditorDistanceSpacing float64 StoryFireInFront bool UseSkinSprites bool SampleVolume int32 SkinPreference string AlwaysShowPlayfield bool EpilepsyWarning bool CountdownOffset int32 TimelineZoom float64 SamplesMatchPlaybackRate bool }
type HitObject ¶
type HitObject struct { Type HitObjectType Position Vec2 Time float64 NewCombo bool HitSound HitSoundType ComboColorOffset int SampleSet SampleSet SampleSetAddition SampleSet CustomSampleSet CustomSampleSet Volume int32 SampleFile string //Slider Specific CurveType CurveType RepeatCount int32 SliderLength float64 SliderPoints []Vec2 SoundTypes []HitSoundType SampleSets []SampleSet SampleSetAdditions []SampleSet //Spinner/Hold specific EndTime int32 }
type HitObjectType ¶
type HitObjectType int32
type HitObjectsSection ¶
type HitSoundType ¶
type HitSoundType int32
type MetadataSection ¶
type OsuFile ¶
type OsuFile struct { Version int32 Md5Hash string General GeneralSection Editor EditorSection Metadata MetadataSection Difficulty DifficultySection Events EventsSection TimingPoints TimingPointSection HitObjects HitObjectsSection Length int64 DrainLength int64 FirstBpm float64 ParserWarnings []string }
func ParseBytes ¶
type TimeSignature ¶
type TimeSignature int32
type TimingPoint ¶
type TimingPoint struct { Offset float64 BeatLength float64 TimeSignature TimeSignature SampleSet SampleSet CustomSampleSet CustomSampleSet Volume int32 InheritedTimingPoint bool SpecialFlag Special }
type TimingPointSection ¶
type TimingPointSection struct {
TimingPoints []TimingPoint
}
Click to show internal directories.
Click to hide internal directories.