quail

package
v1.4.117 Latest Latest
Warning

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

Go to latest
Published: May 26, 2024 License: MIT Imports: 13 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Open

func Open(name string, r io.ReadSeeker) (interface{}, error)

Open is a smart opener for files quail might support without being within an archive

func RawRead

func RawRead(in raw.Reader, q *Quail) error

func RawWrite

func RawWrite(out raw.Writer, e *Quail) error

func SetLogLevel

func SetLogLevel(level int)

SetLogLevel sets the log level

Types

type Quail

type Quail struct {
	Header     *common.Header
	Models     []*common.Model
	Animations []*common.Animation
	Zone       *common.Zone

	IsExtensionVersionDump bool
	Textures               map[string][]byte // Textures are raw texture files
	// contains filtered or unexported fields
}

func New

func New() *Quail

New returns a new Quail instance

func (*Quail) Close

func (e *Quail) Close() error

Close flushes any memory and closes any open files

func (*Quail) DirRead

func (quail *Quail) DirRead(path string) error

DirRead Reads the quail target from a directory

func (*Quail) DirWrite

func (quail *Quail) DirWrite(path string) error

DirWrite exports the quail target to a directory

func (*Quail) EQGExport

func (e *Quail) EQGExport(fileVersion uint32, pfsVersion int, path string) error

EQGExport exports the quail target to an EQG file

func (*Quail) ModelByName

func (q *Quail) ModelByName(name string) *common.Model

func (*Quail) PfsRead

func (e *Quail) PfsRead(path string) error

PfsRead imports the quail target file

func (*Quail) PfsWrite

func (e *Quail) PfsWrite(fileVersion uint32, pfsVersion int, path string) error

Write exports the quail target

func (*Quail) RawRead

func (q *Quail) RawRead(in raw.Reader) error

Read takes a raw type and converts it to a quail type

func (*Quail) RawWrite

func (e *Quail) RawWrite(out raw.Writer) error

func (*Quail) S3DExport

func (e *Quail) S3DExport(fileVersion uint32, pfsVersion int, path string) error

S3DExport exports the quail target to an S3D file

Jump to

Keyboard shortcuts

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