asset

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package asset provides parsers for Echo VR asset reference structures.

Asset reference files (type 0xca6cd085401cbc87, 2,109 files) contain references between assets in various sizes (88-296 bytes). These structures link assets like materials, textures, and tints.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssetReference

type AssetReference struct {
	Size           uint32 // Size of the reference structure
	ReferenceGUID  uint64 // Asset being referenced
	TargetGUID     uint64 // Target asset (if applicable)
	Flags          uint32 // Reference flags
	Type           ReferenceType
	AdditionalData []byte // Additional type-specific data
}

AssetReference represents a generic asset reference structure.

func ParseReference

func ParseReference(r io.Reader) (*AssetReference, error)

ParseReference reads an asset reference from binary data.

func (*AssetReference) String

func (r *AssetReference) String() string

String returns a human-readable representation.

type ReferenceType

type ReferenceType uint8

ReferenceType indicates the type of asset reference.

const (
	ReferenceTypeUnknown  ReferenceType = 0
	ReferenceTypeMaterial ReferenceType = 88
	ReferenceTypeTint     ReferenceType = 96
	ReferenceTypeTexture  ReferenceType = 120
	ReferenceTypeDual     ReferenceType = 136
	ReferenceTypeComplex  ReferenceType = 200
)

func (ReferenceType) String

func (t ReferenceType) String() string

String returns the reference type name.

Jump to

Keyboard shortcuts

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