loader

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2024 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Loader

type Loader struct {
	// contains filtered or unexported fields
}

func New

func New() *Loader

func (*Loader) AddModsDirectory

func (l *Loader) AddModsDirectory(directory string)

func (*Loader) Load

func (l *Loader) Load(fileName string) (image.Image, error)

type ModArchiveLoader

type ModArchiveLoader struct {
	// contains filtered or unexported fields
}

ModArchiveLoader loads images from a zip archive of the mod.

func NewModArchiveLoader

func NewModArchiveLoader(file string) *ModArchiveLoader

func (*ModArchiveLoader) Load

func (l *ModArchiveLoader) Load(path string) (io.ReadCloser, error)

type ModDirectoryLoader

type ModDirectoryLoader struct {
	// contains filtered or unexported fields
}

ModDirectoryLoader loads images from unzipped mod directories, e.g. from the base or core mod.

func NewModDirectoryLoader

func NewModDirectoryLoader(directory string) *ModDirectoryLoader

func (*ModDirectoryLoader) Load

func (l *ModDirectoryLoader) Load(path string) (io.ReadCloser, error)

Jump to

Keyboard shortcuts

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