Struct Definition

Struct Documentation

struct Definition

Owned sprite metadata; parsing/loading validates it, aggregate assignment does not.

Public Functions

std::string id() const

Declaration: [[nodiscard]]

Form an owned namespace:name lookup ID.

See also

Detailed guide

Returns:

Exact concatenation with a colon; performs no naming validation or registration.

Public Members

std::string name_space

Namespace used to qualify this definition’s ID.

std::string name

Local asset name, combined with namespace by id().

std::string description

Human-readable description, not a behavior contract.

std::filesystem::path texture

Resolved texture source path; parsed values already include the enclosing graphics root.

CE::Assets::Grids::Definition grid

Row-major source cells, spacing and pixel origin.

CE::Rendering::Geometry::Pivot pivot

Finite normalized top-left-origin pivot used for local Y-up geometry.

std::unordered_map<std::string, CE::Assets::Grids::View> views

Named cell-coordinate regions borrowing no separate image.

std::unordered_map<std::string, CE::Assets::Grids::CellIndex> orientations

Named static cell selections, independent of animation clocks.

std::optional<std::string> animation_profile

Optional profile source name; concrete animations hold expanded playback clips.

std::vector<Clip> animations

Concrete clips in definition order, with exact name/facing identity.

std::optional<std::string> shader = {}

Optional qualified material override; absence lets the loader use its ordinary image-material default.