config

package
v0.0.0-...-5f2bbb2 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init() error

func Set

func Set(c *Configuration)

func Update

func Update(callback func(c *Configuration))

func WriteToDisk

func WriteToDisk() error

Types

type Configuration

type Configuration struct {
	Debug bool `yaml:"debug" default:"false"`
	Auto  bool `yaml:"auto" default:"false"`

	Keybinds Keybinds `yaml:"keybinds"`
	Features Features `yaml:"features"`
}

func Get

func Get() *Configuration

type Features

type Features struct {
	AttachTrailer bool `yaml:"attach_trailer" default:"true"`

	Refuel         bool `yaml:"refuel" default:"false"`
	RefuelRelative int  `yaml:"refuel_relative" default:"1"`

	Teleport bool `yaml:"teleport" default:"true"`
}

type Keybinds

type Keybinds struct {
	Quicksave string `yaml:"quicksave" default:"-"`
}

Jump to

Keyboard shortcuts

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