Expand description
Provides the foundational traits and primitive types for Khora’s asset system.
This module defines the “common language” for all asset-related operations in the engine. It contains the core contracts that other crates will implement or use, but it has no knowledge of how assets are loaded or stored.
The key components are:
- The
Asset
trait: A marker for all types that can be treated as assets. - Stable, unique identifiers used to reference assets throughout the engine.
- Abstract interfaces for loading and managing assets.
These low-level primitives are the foundation upon which higher-level systems, such as an asset database or a virtual file system (VFS), are built in other crates.
Structs§
- Asset
Handle - A thread-safe, reference-counted handle to a loaded asset’s data.
- Asset
Metadata - Serializable metadata that describes an asset and its relationships.
- AssetUUID
- A globally unique, persistent identifier for a logical asset.
Enums§
- Asset
Source - Represents the physical source of an asset’s data.
Traits§
- Asset
- A marker trait for types that can be managed by the asset system.