asset

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateUUIDForName

func CreateUUIDForName(name string) string

Types

type AssetCatalog

type AssetCatalog struct {
	Signature                            []byte
	Version                              uint32
	FileSize1                            uint32
	Field4                               uint32
	GuidBlockOffset                      uint32
	TypeBlockOffset                      uint32
	DirBlockOffset                       uint32
	FileNameBlockOffset                  uint32
	FileSize2                            uint32
	AssetIdToInfoNumEntries              uint32
	AssetIdToInfo                        []*AssetIdToInfoRef
	Unknown1                             uint32 // AssetDependenciesNumEntries?
	AssetPathToIdNumEntries              uint32
	AssetPathToId                        []*AssetPathToIdRef
	LegacyAssetIdToRealAssetIdNumEntries uint32
	LegacyAssetIdToRealAssetId           []*LegacyAssetIdToRealAssetIdRef
}

func ParseAssetCatalog

func ParseAssetCatalog(r io.Reader) (*AssetCatalog, error)

type AssetId

type AssetId struct {
	Guid  string
	SubId uint32
}

func (*AssetId) String

func (assetId *AssetId) String() string

type AssetIdToInfoRef

type AssetIdToInfoRef struct {
	Guid1Index     uint32
	SubId1         uint32
	Guid2Index     uint32
	SubId2         uint32
	TypeIndex      uint32
	Field6         uint32
	FileSize       uint32
	Field8         uint32
	DirOffset      uint32
	FileNameOffset uint32
}

func (*AssetIdToInfoRef) Load

func (ref *AssetIdToInfoRef) Load(rs io.ReadSeeker, cat *AssetCatalog) (*AssetInfo, error)

type AssetInfo

type AssetInfo struct {
	AssetId      *AssetId
	RelativePath string
	SizeBytes    uint32
	AssetType    string
}

type AssetPathToId

type AssetPathToId struct {
	Uuid    string
	AssetId *AssetId
}

type AssetPathToIdRef

type AssetPathToIdRef struct {
	UuidIndex uint32
	GuidIndex uint32
	SubId     uint32
}

func (*AssetPathToIdRef) Load

type LegacyAssetIdToRealAssetId

type LegacyAssetIdToRealAssetId struct {
	LegacyAssetId *AssetId
	RealAssetId   *AssetId
}

type LegacyAssetIdToRealAssetIdRef

type LegacyAssetIdToRealAssetIdRef struct {
	LegacyGuidIndex uint32
	LegacySubId     uint32
	RealGuidIndex   uint32
	RealSubId       uint32
}

func (*LegacyAssetIdToRealAssetIdRef) Load

Jump to

Keyboard shortcuts

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