extractor

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2025 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExportBlend added in v0.4.0

func ExportBlend(doc *gltf.Document, outPath string, runner *exec.Runner) (err error)

Types

type Context added in v0.3.0

type Context interface {
	Ctx() context.Context
	File() *stingray.File
	Runner() *exec.Runner
	Config() map[string]string
	GetResource(name, typ stingray.Hash) (file *stingray.File, exists bool)
	// Call WriteCloser.Close() when done.
	CreateFile(suffix string) (io.WriteCloser, error)
	// Returns path to file.
	AllocateFile(suffix string) (string, error)
	Hashes() map[stingray.Hash]string
	ThinHashes() map[stingray.ThinHash]string
	// Selected triad ID, if any (-t option).
	TriadID() *stingray.Hash
	ArmorSets() map[stingray.Hash]dlbin.ArmorSet
	// Prints a warning message.
	Warnf(f string, a ...any)
}

type ExtractFunc

type ExtractFunc func(ctx Context) error

func ExtractFuncRaw added in v0.1.7

func ExtractFuncRaw(suffix string, types ...stingray.DataType) ExtractFunc

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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