sonolus

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JoinUrl

func JoinUrl(base string, path string) (string, error)

Types

type BackgroundInfo

type BackgroundInfo struct {
	Image SRL `json:"image"`
}

type EngineInfo added in v0.2.0

type EngineInfo struct {
	Version int `json:"version"`
}

type InfoResponse

type InfoResponse[T any] struct {
	Item T `json:"item"`
}

type LevelData

type LevelData struct {
	BgmOffset float64           `json:"bgmOffset"`
	Entities  []LevelDataEntity `json:"entities"`
}

type LevelDataEntity

type LevelDataEntity struct {
	Archetype string                 `json:"archetype"`
	Data      []LevelDataEntityValue `json:"data"`
}

type LevelDataEntityValue added in v0.2.0

type LevelDataEntityValue struct {
	Name  string
	Value float64
	Ref   string
}

type LevelInfo

type LevelInfo struct {
	Name          string                  `json:"name"`
	Title         string                  `json:"title"`
	Artists       string                  `json:"artists"`
	Author        string                  `json:"author"`
	Version       int                     `json:"version"`
	Rating        int                     `json:"rating"`
	Cover         SRL                     `json:"cover"`
	Data          SRL                     `json:"data"`
	UseBackground UseItem[BackgroundInfo] `json:"useBackground"`
	Engine        EngineInfo              `json:"engine"`
}

type SRL

type SRL struct {
	Url  string `json:"url"`
	Hash string `json:"hash"`
}

type UseItem

type UseItem[T any] struct {
	UseDefault bool `json:"useDefault"`
	Item       T    `json:"item"`
}

Jump to

Keyboard shortcuts

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