types

package
v0.0.0-...-7f92c57 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2021 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package types provides an enumeration of Asset and Source types, as well as some utility functions

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssetType

type AssetType int

AssetType represents the type of an asset

const (
	AssetTypeUnknown AssetType = iota
	AssetTypeJSON
	AssetTypeStringTable
	AssetTypeDataDictionary
	AssetTypePalette
	AssetTypePaletteTransform
	AssetTypeCOF
	AssetTypeDC6
	AssetTypeDCC
	AssetTypeDS1
	AssetTypeDT1
	AssetTypeWAV
	AssetTypeD2
)

Asset types

func Ext2AssetType

func Ext2AssetType(ext string) AssetType

Ext2AssetType determines the AssetType with the given file extension

type SourceType

type SourceType int

SourceType represents the type of the asset source

const (
	AssetSourceUnknown SourceType = iota
	AssetSourceFileSystem
	AssetSourceMPQ
)

Asset sources

func CheckSourceType

func CheckSourceType(path string) SourceType

CheckSourceType attempts to determine the source type of the source

func Ext2SourceType

func Ext2SourceType(ext string) SourceType

Ext2SourceType returns the SourceType from the given file extension

Jump to

Keyboard shortcuts

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