Struct Asset

Inheritance Relationships

Base Type

Struct Documentation

struct Asset : public CE::Assets::Content2D

Declaration: final

Retains 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

explicit Asset(Data data)
Animation operator[](const std::string &animation) const
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]]

const CE::Assets::Grids::View &view(const std::string &name) const

Declaration: [[nodiscard]]

CE::Assets::Grids::CellIndex orientation(const std::string &name) const

Declaration: [[nodiscard]]

inline const Definition &definition() const

Declaration: [[nodiscard]]