Jazz2::Resources::DeferredGraphicResource struct

Description of a graphic resource that is loaded on first use.

Everything ContentResolver needs to load the sheet behind a GraphicResource that was declared deferred (see Metadata::DeferredAnimations), i.e., the part of a metadata entry that is otherwise consumed during parsing and then thrown away. One description is shared by every animation state declared on the same metadata entry.

Public variables

String Path
Relative path to the graphics asset.
float AnimDuration
Animation duration override (in normalized frames), used only if HasAnimDuration.
std::int32_t FrameCount
Frame count override, used only if HasFrameCount.
bool KeepIndexed
Whether the sheet keeps raw palette indices instead of baked colors.
bool HasAnimDuration
Whether the metadata entry specified its own animation duration.
bool HasFrameCount
Whether the metadata entry specified its own frame count.