Documentation
¶
Overview ¶
Package project loads the project metadata required by CLI commands.
Index ¶
Constants ¶
View Source
const DefaultTextureProfile = "sprite"
Variables ¶
This section is empty.
Functions ¶
func CompileUI ¶
func CompileUI(directory string, entries []Texture, layouts []Layout, theme string) ([]uicompiler.Component, error)
CompileUI adapts project asset configuration to KartUI's independent compiler.
func ModulePath ¶
ModulePath returns the module path used to import the generated engine package.
Types ¶
type Assets ¶
type Assets struct {
Textures []Texture `koanf:"texture"`
Fonts []Font `koanf:"font"`
UI []Texture `koanf:"ui"`
Layouts []Layout `koanf:"layout"`
Theme Theme `koanf:"theme"`
}
Assets contains convention-discovered entries plus optional manifest overrides.
type Config ¶
type Config struct {
Project struct {
Name string `koanf:"name"`
Compiler string `koanf:"compiler"`
Resolution struct {
Width int `koanf:"width"`
Height int `koanf:"height"`
} `koanf:"resolution"`
} `koanf:"project"`
SDK struct {
Version string `koanf:"version"`
} `koanf:"sdk"`
Assets Assets `koanf:"assets"`
}
Config is the supported subset of karty.toml.
type Layout ¶
type Layout struct {
Source string `koanf:"source"`
}
Layout identifies one build-time-only KartUI layout source.
Click to show internal directories.
Click to hide internal directories.