pjsekaioverlay

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2024 License: GPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const Version = "0.0.0"

Variables

View Source
var WEIGHT_MAP = map[string]float64{
	"#BPM_CHANGE":    0,
	"Initialization": 0,
	"InputManager":   0,
	"Stage":          0,

	"NormalTapNote":   1,
	"CriticalTapNote": 3,

	"NormalFlickNote":   1,
	"CriticalFlickNote": 3,

	"NormalSlideStartNote":   1,
	"CriticalSlideStartNote": 2,

	"NormalSlideEndNote":   1,
	"CriticalSlideEndNote": 2,

	"NormalSlideEndFlickNote":   1,
	"CriticalSlideEndFlickNote": 3,

	"HiddenSlideTickNote":   0,
	"NormalSlideTickNote":   0.1,
	"CriticalSlideTickNote": 0.1,

	"IgnoredSlideTickNote":          0.1,
	"NormalAttachedSlideTickNote":   0.1,
	"CriticalAttachedSlideTickNote": 0.1,

	"NormalSlideConnector":   0,
	"CriticalSlideConnector": 0,

	"SimLine": 0,

	"NormalSlotEffect":       0,
	"SlideSlotEffect":        0,
	"FlickSlotEffect":        0,
	"CriticalSlotEffect":     0,
	"NormalSlotGlowEffect":   0,
	"SlideSlotGlowEffect":    0,
	"FlickSlotGlowEffect":    0,
	"CriticalSlotGlowEffect": 0,

	"NormalTraceNote":   0.1,
	"CriticalTraceNote": 0.1,

	"NormalTraceSlotEffect":     0,
	"NormalTraceSlotGlowEffect": 0,

	"DamageNote":           0.1,
	"DamageSlotEffect":     0,
	"DamageSlotGlowEffect": 0,

	"NormalTraceFlickNote":         0.5,
	"CriticalTraceFlickNote":       0.5,
	"NonDirectionalTraceFlickNote": 0.5,

	"NormalTraceSlideStartNote":   0.1,
	"NormalTraceSlideEndNote":     0.1,
	"CriticalTraceSlideStartNote": 0.1,
	"CriticalTraceSlideEndNote":   0.1,

	"TimeScaleGroup":  0,
	"TimeScaleChange": 0,
}

Functions

func DownloadBackground

func DownloadBackground(source Source, level sonolus.LevelInfo, destPath string) error

func DownloadCover

func DownloadCover(source Source, level sonolus.LevelInfo, destPath string) error

func FetchChart

func FetchChart(source Source, chartId string) (sonolus.LevelInfo, error)

func FetchLevelData

func FetchLevelData(source Source, level sonolus.LevelInfo) (sonolus.LevelData, error)

func TryInstallObject

func TryInstallObject() bool

func WriteExoFiles

func WriteExoFiles(assets string, destDir string, title string, description string) error

func WritePedFile

func WritePedFile(frames []PedFrame, assets string, ap bool, path string) error

Types

type BpmChange added in v0.2.0

type BpmChange struct {
	Beat float64
	Bpm  float64
}

type PedFrame

type PedFrame struct {
	Time  float64
	Score int
}

func CalculateScore

func CalculateScore(levelInfo sonolus.LevelInfo, levelData sonolus.LevelData, power int) []PedFrame

type Source

type Source struct {
	Id    string
	Name  string
	Color int
	Host  string
}

func DetectChartSource

func DetectChartSource(chartId string) (Source, error)

Jump to

Keyboard shortcuts

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