Struct Asset

Inheritance Relationships

Base Type

Struct Documentation

struct Asset : public CE::Assets::Content2D

Declaration: final

Shared tile grid plus definitions for static cells, animated targets, and autotile rules.

Selection samples through the caller’s callback and resolves simulation-owned time. Direct construction rejects duplicate targets but does not revalidate all manifest fields. Keep definitions/resources stable for concurrent read-only queries.

Public Functions

explicit Asset(Data data)
Tile tile(std::size_t cell) const

Declaration: [[nodiscard]]

Animation animation(const std::string &name) const

Declaration: [[nodiscard]]

std::optional<Animation> animation_for(std::size_t target) const

Declaration: [[nodiscard]]

CE::Assets::Grids::CellIndex cell_at(CE::Assets::Grids::CellIndex target, std::chrono::milliseconds elapsed) const

Declaration: [[nodiscard]]

CE::Assets::Tilesets::Selection::Result select_tile(const std::string &name, const CE::Assets::Tilesets::Selection::Sampler &sampler, const CE::Assets::Tilesets::Selection::Options &options, std::chrono::milliseconds elapsed) 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]]

const Rule &autotile(const std::string &name) const

Declaration: [[nodiscard]]

inline const Definition &definition() const

Declaration: [[nodiscard]]