 |
Crossfire Server, Trunk
1.75.0
|
All archetypes in the game.
Plugin animator file specs[Config] name
Collection of assets identified by a unique name.
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.
archetype * findBySkillNameAndType(const char *skill, int type)
Retrieve an archetype by skill name and type.
The archetype structure is a set of rules on how to generate and manipulate objects which point to ar...
archetype * get(const std::string &name)
Get a named asset.
it was updated by reverse engineering the client code accessing the metaserver It therefore describes the as is state rather than what was intended Communication between server and metaserver was not updated
void clearReplaceListener()
Remvove the listener for archetypes changes.
archetype * findByTypeSubtype(int type, int subtype)
Retrieve an archetype by type and subtype.
Archetypes()
Standard constructor.
virtual void replace(archetype *existing, archetype *update) override
Replace an asset by an updated version.
std::function< void(archetype *, archetype *)> updateListener
Function prototype to be called when an archetype changes.
archetype * findByObjectName(const char *name)
Retrieve an archetype given the name that appears during the game (for example, "writing pen" instead...
archetype * empty_archetype
Nice to have fast access to it.
updateListener m_updateListener
archetype * findByObjectTypeName(int type, const char *name)
Retrieve an archetype by type and name that appears during the game.
void setReplaceListener(updateListener fct)
Set the listener to be called when an archetype is updated.