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 ¶
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
Click to show internal directories.
Click to hide internal directories.