Documentation ¶
Index ¶
- type BPMChange
- type BeatmapColor
- type BeatmapCustomData
- type Bookmark
- type Contributor
- type DifficultyBeatmap
- type DifficultyBeatmapSet
- type DifficultyLevel
- type Event
- type InfoCustomData
- type NewDifficultyJSON
- type NewInfoJSON
- type Note
- type Obstacle
- type OldContributor
- type OldDifficultyJSON
- type OldInfoJSON
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BPMChange ¶
type BPMChange struct { BPM float64 `json:"_BPM"` Time float64 `json:"_time"` BeatsPerBar int `json:"_beatsPerBar"` MetronomeOffset int `json:"_metronomeOffset"` }
BPMChange MM BPM Change
type BeatmapColor ¶
BeatmapColor Beatmap Lighting Color
type BeatmapCustomData ¶
type BeatmapCustomData struct { DifficultyLabel string `json:"_difficultyLabel"` EditorOffset int `json:"_editorOffset"` EditorOldOffset int `json:"_editorOldOffset"` ColorLeft *BeatmapColor `json:"_colorLeft,omitempty"` ColorRight *BeatmapColor `json:"_colorRight,omitempty"` Warnings []string `json:"_warnings"` Information []string `json:"_information"` Suggestions []string `json:"_suggestions"` Requirements []string `json:"_requirements"` }
BeatmapCustomData Custom JSON Data for a DifficultyBeatmap
type Contributor ¶
type Contributor struct { Role string `json:"_role"` Name string `json:"_name"` IconPath string `json:"_iconPath"` }
Contributor New Info JSON Contributors
type DifficultyBeatmap ¶
type DifficultyBeatmap struct { Difficulty string `json:"_difficulty"` DifficultyRank int `json:"_difficultyRank"` BeatmapFilename string `json:"_beatmapFilename"` NoteJumpMovementSpeed float64 `json:"_noteJumpMovementSpeed"` NoteJumpStartBeatOffset float64 `json:"_noteJumpStartBeatOffset"` CustomData BeatmapCustomData `json:"_customData"` DiffJSON *NewDifficultyJSON `json:"-"` }
DifficultyBeatmap Beatmap Difficulty Info
type DifficultyBeatmapSet ¶
type DifficultyBeatmapSet struct { BeatmapCharacteristicName string `json:"_beatmapCharacteristicName"` DifficultyBeatmaps []DifficultyBeatmap `json:"_difficultyBeatmaps"` }
DifficultyBeatmapSet Set of DifficultyBeatmap structs
type DifficultyLevel ¶
type DifficultyLevel struct { Difficulty string `json:"difficulty"` DifficultyRank int `json:"difficultyRank"` AudioPath string `json:"audioPath"` JSONPath string `json:"jsonPath"` Offset int `json:"offset"` OldOffset int `json:"oldOffset"` ChromaToggle string `json:"chromaToggle"` CustomColors bool `json:"customColors"` Characteristic string `json:"characteristic"` DifficultyLabel string `json:"difficultyLabel"` DiffJSON *OldDifficultyJSON `json:"-"` }
DifficultyLevel Old difficulty level
type InfoCustomData ¶
type InfoCustomData struct { Contributors []Contributor `json:"_contributors"` CustomEnvironment string `json:"_customEnvironment"` CustomEnvironmentHash string `json:"_customEnvironmentHash"` }
InfoCustomData Custom JSON Data for root info.json
type NewDifficultyJSON ¶
type NewDifficultyJSON struct { Version string `json:"_version"` BPMChanges []BPMChange `json:"_BPMChanges"` Events []Event `json:"_events"` Notes []Note `json:"_notes"` Obstacles []Obstacle `json:"_obstacles"` Bookmarks []Bookmark `json:"_bookmarks"` }
NewDifficultyJSON is the new beatmap difficulty file
func (NewDifficultyJSON) Bytes ¶
func (i NewDifficultyJSON) Bytes() ([]byte, error)
Bytes Convert to byte array
type NewInfoJSON ¶
type NewInfoJSON struct { Version string `json:"_version"` SongName string `json:"_songName"` SongSubName string `json:"_songSubName"` SongAuthorName string `json:"_songAuthorName"` LevelAuthorName string `json:"_levelAuthorName"` BeatsPerMinute float64 `json:"_beatsPerMinute"` SongTimeOffset float64 `json:"_songTimeOffset"` Shuffle float64 `json:"_shuffle"` ShufflePeriod float64 `json:"_shufflePeriod"` PreviewStartTime float64 `json:"_previewStartTime"` PreviewDuration float64 `json:"_previewDuration"` OldSongFilename string `json:"-"` SongFilename string `json:"_songFilename"` CoverImageFilename string `json:"_coverImageFilename"` EnvironmentName string `json:"_environmentName"` CustomData InfoCustomData `json:"_customData"` DifficultyBeatmapSets []DifficultyBeatmapSet `json:"_difficultyBeatmapSets"` Hash string `json:"-"` }
NewInfoJSON New Info JSON
type Note ¶
type Note struct { Time float64 `json:"_time"` LineIndex int `json:"_lineIndex"` LineLayer int `json:"_lineLayer"` Type int `json:"_type"` CutDirection int `json:"_cutDirection"` }
Note Beatmap Note
type Obstacle ¶
type Obstacle struct { Time float64 `json:"_time"` LineIndex int `json:"_lineIndex"` Type int `json:"_type"` Duration float64 `json:"_duration"` Width int `json:"_width"` }
Obstacle Beatmap Obstacle
type OldContributor ¶
type OldContributor struct { Role string `json:"role"` Name string `json:"name"` IconPath string `json:"iconPath"` }
OldContributor Old contributor info
type OldDifficultyJSON ¶
type OldDifficultyJSON struct { Version string `json:"_version"` BeatsPerMinute float64 `json:"_beatsPerMinute"` BeatsPerBar int `json:"_beatsPerBar"` NoteJumpSpeed float64 `json:"_noteJumpSpeed"` NoteJumpStartBeatOffset float64 `json:"_noteJumpStartBeatOffset"` Shuffle float64 `json:"_shuffle"` ShufflePeriod float64 `json:"_shufflePeriod"` ColorLeft *BeatmapColor `json:"_colorLeft,omitempty"` ColorRight *BeatmapColor `json:"_colorRight,omitempty"` Time int `json:"_time"` Warnings []string `json:"_warnings"` Information []string `json:"_information"` Suggestions []string `json:"_suggestions"` Requirements []string `json:"_requirements"` BPMChanges []BPMChange `json:"_BPMChanges"` Events []Event `json:"_events"` Notes []Note `json:"_notes"` Obstacles []Obstacle `json:"_obstacles"` Bookmarks []Bookmark `json:"_bookmarks"` }
OldDifficultyJSON is the old beatmap difficulty file
func (OldDifficultyJSON) Bytes ¶
func (i OldDifficultyJSON) Bytes() ([]byte, error)
Bytes Convert to byte array
type OldInfoJSON ¶
type OldInfoJSON struct { Hash string `json:"-"` AudioPath string `json:"-"` NewAudioPath string `json:"-"` SongName string `json:"songName"` SongSubName string `json:"songSubName"` AuthorName string `json:"authorName"` Contributors []OldContributor `json:"contributors"` BeatsPerMinute float64 `json:"beatsPerMinute"` PreviewStartTime float64 `json:"previewStartTime"` PreviewDuration float64 `json:"previewDuration"` CoverImagePath string `json:"coverImagePath"` EnvironmentName string `json:"environmentName"` OneSaber bool `json:"oneSaber"` CustomEnvironment string `json:"customEnvironment"` CustomEnvironmentHash string `json:"customEnvironmentHash"` DifficultyLevels []DifficultyLevel `json:"difficultyLevels"` }
OldInfoJSON is the old beatmap info file