25 bug->num_animations = 1;
34 while (artifacts != NULL) {
35 for (
auto item : artifacts->items) {
38 artifacts = artifacts->next;
42 static int dump(
const std::set<std::string>& items,
const char *name) {
44 LOG(
llevError,
"Referenced %s which are not defined:\n", name);
45 for (
const auto& item : items) {
static void recursive_update(object *item, archetype *updated)
Update if needed item based on the updated archetype, then recurse on item->below and item->inv...
static int dump(const std::set< std::string > &items, const char *name)
void clearReplaceListener()
Remvove the listener for archetypes changes.
T * get(const Key &name)
Get a named asset.
void LOG(LogLevel logLevel, const char *format,...)
Logs a message to stderr, or to file.
Facesets m_facesets
Cilent image variants.
New face structure - this enforces the notion that data is face by face only - you can not change the...
void archetypeUpdated(archetype *existing, archetype *update)
Update artifacts if needed when an archetype changes.
void setReplaceListener(updateListener fct)
Set the listener to be called when an archetype is updated.
Archetypes::updateListener m_listener
Listener to archetypes changes.
The archetype structure is a set of rules on how to generate and manipulate objects which point to ar...
Image-related structures.
const std::set< Key > & undefined() const
Return the list of undefined assets, that is assets requested through get() but not defined through d...
artifactlist * first_artifactlist
First artifact.
AllAnimations m_animations
Animations.
Treasures m_treasures
Treasures.
virtual ~AssetsManager()
Destructor.
Archetypes m_archetypes
Archetypes.
size_t dumpUndefined()
Dump through LOG undefined assets (except faces), and return the total number of referenced but not d...
const Face ** faces
The actual faces for the animation.
AssetsManager()
Constructor.