Struct Definition
Defined in File sprite.h
Struct Documentation
-
struct Definition
Owned sprite metadata; parsing/loading validates it, aggregate assignment does not.
See also
Public Functions
-
std::string id() const
Declaration:
[[nodiscard]]Form an owned namespace:name lookup ID.
See also
- 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 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::optional<std::string> shader = {}
Optional qualified material override; absence lets the loader use its ordinary image-material default.
-
std::string id() const