config

package
v0.0.0-...-d4a0833 Latest Latest
Warning

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

Go to latest
Published: May 10, 2021 License: Unlicense Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	GameDirectory string
	Video         struct {
		Width  int
		Height int
	}
}

Project configuration properties Engine needs to know where to locate its game data

func Get

func Get() *Config

Get returns (kind-of) static config object

func Load

func Load(path string) (*Config, error)

Load attempts to open and unmarshall json configuration

Jump to

Keyboard shortcuts

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