bmscanner

package module
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2026 License: MIT Imports: 10 Imported by: 0

README

bmscanner

[!warning] This is not a full bms parser, it only scans the meta data of the files

scan bms files

Documentation

Overview

Package bmscanner scan bms files

Index

Constants

This section is empty.

Variables

View Source
var (
	Commands       []CommandWord
	IgnorePrefixes = []string{
		"#WAV",
		"#RANDOM",
		"#ENDRANDOM",
		"#IF",
		"#ENDIF",
		"#BMP",
		"#STOP",
		"#SCROLL",
	}
)
View Source
var EXTS []string = []string{
	".bms",
	".pms",
	".bmson",
	".bme",
	".bml",
}

Functions

func ReadDirectoriesWithPackageListener added in v0.1.1

func ReadDirectoriesWithPackageListener(listener PackageListener, filter PathFilter, paths ...string)

Types

type BMSModel

type BMSModel struct {
	MD5         string
	SHA256      string
	Genre       string
	Title       string
	SubTitle    string
	Artist      string
	SubArtist   string
	Path        string
	Player      int
	PlayerLevel string
}

func ReadDirectories

func ReadDirectories(paths ...string) ([]*BMSModel, error)

type CommandWord

type CommandWord struct {
	// contains filtered or unexported fields
}

CommandWord represents one command word in bms file

format: #cw.name arg
example: #PLAYER 1

type Package added in v0.1.1

type Package struct {
	Directory     string
	DirectoryName string
	Models        []*BMSModel
}

type PackageListener added in v0.1.1

type PackageListener interface {
	Listen(pkg Package)
}

type PathFilter added in v0.1.9

type PathFilter interface {
	Filter(path string) bool
}

Jump to

Keyboard shortcuts

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