Documentation
¶
Index ¶
- Constants
- func SlideLongConvertor(ctx context.Context, connections []BestdoriConnectionNote) error
- type BaseBestdoriNote
- type BaseBestdoriObject
- type BestdoriBpmObject
- type BestdoriChart
- type BestdoriConnectionNote
- type BestdoriDirectioalNote
- type BestdoriLongNote
- type BestdoriNote
- type BestdoriObject
- type BestdoriSlideNote
- type DatabasePost
- type Intermediate
- type SonolusLevelData
- type SonolusLevelDataEntity
- type SonolusLevelDataEntityData
- type UploadPost
Constants ¶
View Source
const ( ARCHETYPE_BEAT string = "#BEAT" ARCHETYPE_BPMCHANGE string = "#BPM_CHANGE" ARCHETYPE_BPM string = "#BPM" )
Variables ¶
This section is empty.
Functions ¶
func SlideLongConvertor ¶
func SlideLongConvertor(ctx context.Context, connections []BestdoriConnectionNote) error
Types ¶
type BaseBestdoriNote ¶
type BaseBestdoriNote struct {
BaseBestdoriObject
Lane float64 `json:"lane"`
Flick bool `json:"flick,omitempty"`
}
type BaseBestdoriObject ¶
type BaseBestdoriObject struct {
Beat float64 `json:"beat"`
}
type BestdoriBpmObject ¶
type BestdoriBpmObject struct {
BaseBestdoriObject
Bpm float64 `json:"bpm"`
}
type BestdoriChart ¶
type BestdoriChart []BestdoriObject
func (*BestdoriChart) ConvertToSonnolus ¶
func (bdChart *BestdoriChart) ConvertToSonnolus() (levelData SonolusLevelData, err error)
func (*BestdoriChart) UnmarshalJSON ¶
func (chart *BestdoriChart) UnmarshalJSON(data []byte) error
type BestdoriConnectionNote ¶
type BestdoriConnectionNote struct {
BaseBestdoriNote
Hidden bool `json:"hidden"`
}
type BestdoriDirectioalNote ¶
type BestdoriDirectioalNote struct {
BaseBestdoriNote
Direction string `json:"direction"`
Width float64 `json:"width"`
}
type BestdoriLongNote ¶
type BestdoriLongNote struct {
Connections []BestdoriConnectionNote `json:"connections"`
}
type BestdoriNote ¶
type BestdoriNote struct {
BaseBestdoriNote
}
type BestdoriObject ¶
type BestdoriSlideNote ¶
type BestdoriSlideNote struct {
Connections []BestdoriConnectionNote `json:"connections"`
}
type DatabasePost ¶
type Intermediate ¶
type SonolusLevelData ¶
type SonolusLevelData struct {
BgmOffset float64 `json:"bgmOffset"`
Entities []*SonolusLevelDataEntity `json:"entities"`
}
type SonolusLevelDataEntity ¶
type SonolusLevelDataEntity struct {
Archetype string `json:"archetype"`
Data []SonolusLevelDataEntityData `json:"data"`
Ref string `json:"ref,omitempty"`
}
type UploadPost ¶
type UploadPost struct {
Title string `form:"title" binding:"required"`
Bgm *multipart.FileHeader `form:"bgm" binding:"required"`
Chart BestdoriChart
ChartStr string `form:"chart" binding:"required"`
Difficulty int `form:"difficulty"`
Hidden bool `form:"hidden"`
Lifetime int64 `form:"lifetime"`
}
func (*UploadPost) ParseChart ¶
func (post *UploadPost) ParseChart() error
Click to show internal directories.
Click to hide internal directories.