godot

package
v0.0.0-...-3164f69 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EditorCmdFlagVersion = "--version"
)
View Source
const (
	ProjectFileName = "project.godot"
)

Variables

View Source
var (
	ErrLocationMustBeAbs   = errors.New("invalid location: is not absolute")
	ErrLocationMustBeAFile = errors.New("invalid location: must be a file")
)

Functions

This section is empty.

Types

type Editor

type Editor struct {
	Location string
	Version  string
}

func NewEditor

func NewEditor(location string) (*Editor, error)

type Package

type Package struct {
	Package   PackageConfiguration                 `ini:"package"`
	Editor    PackageEditorConfiguration           `ini:"editor"`
	Assets    map[string]PackageAssetConfiguration `ini:"assets"`
	DevAssets map[string]PackageAssetConfiguration `ini:"dev_assets"`
}

func NewPackage

func NewPackage(source []byte) (*Package, error)

type PackageAssetConfiguration

type PackageAssetConfiguration struct {
	Version  string
	Registry string
	Git      string
}

type PackageConfiguration

type PackageConfiguration struct {
	Name    string `ini:"name"`
	Version string `ini:"version"`
	License string `ini:"license"`
}

type PackageEditorConfiguration

type PackageEditorConfiguration struct {
	Version string `ini:"version"`
}

type Project

type Project struct {
	Location string
}

func NewProject

func NewProject(location string) (*Project, error)

Jump to

Keyboard shortcuts

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