config

package
v0.0.0-...-2a1ae7d Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidAssetsDirectory = errors.New("not a valid directory")

Functions

func CheckDirectory

func CheckDirectory(dir string) error

Types

type Config

type Config struct {
	Dungeondraft *Dungeondraft
	Tokens       *Tokens
}

func (*Config) AddDungeondraftThumbnailVersion

func (cfg *Config) AddDungeondraftThumbnailVersion(version string) bool

func (*Config) AddTokensDownloadedPack

func (cfg *Config) AddTokensDownloadedPack(pack string) bool

func (*Config) CheckDungeondraftAssetsDirectory

func (cfg *Config) CheckDungeondraftAssetsDirectory()

func (*Config) CheckTokensAssetsDirectory

func (cfg *Config) CheckTokensAssetsDirectory()

func (*Config) Save

func (cfg *Config) Save()

type Dungeondraft

type Dungeondraft struct {
	AssetsDirectory    string
	ThumbnailsVersions map[string]bool
}

type Tokens

type Tokens struct {
	AssetsDirectory string
	DownloadedPacks map[string]bool
}

Jump to

Keyboard shortcuts

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