levelbuild

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

Package levelbuild discovers author-owned level manifests and produces deterministic, passive .kld cartridges.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrManifest      = errors.New("level manifest is invalid")
	ErrDuplicateName = errors.New("level logical name is duplicated")
	ErrSource        = errors.New("level data source is invalid")
)

Functions

This section is empty.

Types

type Artifact

type Artifact struct {
	Name            string
	Kind            string
	SourceDirectory string
	Bytes           []byte
	ContentSHA256   string
	EnvelopeVersion uint16
}

Artifact is a complete generated level-data cartridge.

func BuildAll

func BuildAll(projectDirectory string) ([]Artifact, error)

BuildAll discovers levels/*/level.toml and builds them in logical-name order.

func BuildAllWithStyles

func BuildAllWithStyles(projectDirectory string, allowStyles bool) ([]Artifact, error)

func BuildAllWithTheme

func BuildAllWithTheme(projectDirectory string, uiSchema uint32, themeSource string) ([]Artifact, error)

Jump to

Keyboard shortcuts

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