Struct Asset
Defined in File sprite.h
Inheritance Relationships
Base Type
public CE::Assets::Content2D(Struct Content2D)
Struct Documentation
-
struct Asset : public CE::Assets::Content2D
Declaration:
finalRetains a definition snapshot and grid resources.
Construction checks nonempty cells/clips, frame cells/durations and duplicate clip keys, not all manifest fields or backend compatibility. Read concurrently only while inputs are stable.
Public Functions
-
Animation animation(const std::string &animation, std::optional<std::string> facing = std::nullopt) const
-
bool has_animation(const std::string &animation, std::optional<std::string> facing = std::nullopt) const
Declaration:
[[nodiscard]]
-
inline const Definition &definition() const
Declaration:
[[nodiscard]]
-
Animation animation(const std::string &animation, std::optional<std::string> facing = std::nullopt) const