Jazz2::Resources::Metadata struct

Contains assets for specific object type.

Loaded from a metadata file and cached by ContentResolver, it groups the animations and sounds used by one object type together with its bounding box, and resolves an AnimState to the matching GraphicResource at runtime.

Constructors, destructors, conversion operators

Metadata() noexcept
Creates a new instance.

Public functions

auto FindAnimation(AnimState state) -> GraphicResource* noexcept
Finds specified animation state.

Public variables

String Path
Metadata path.
String CacheKey
Key this metadata is cached under (usually equals Path, but indexed variants use a distinct key); the cache stores a reference to this string, so it must not be modified after insertion.
MetadataFlags Flags
Metadata flags.
SmallVector<GraphicResource, 0> Animations
Animations.
HashMap<String, SoundResource> Sounds
Sounds.
Vector2i BoundingBox
Bounding box.