![]() |
Crossfire Server, Trunk
1.75.0
|
Represents all assets of the game. More...
#include <AssetsManager.h>
Public Member Functions | |
AllAnimations * | animations () |
Get animations. More... | |
Archetypes * | archetypes () |
Get archetypes. More... | |
AssetsManager () | |
Constructor. More... | |
size_t | dumpUndefined () |
Dump through LOG undefined assets (except faces), and return the total number of referenced but not defined assets (except faces). More... | |
Faces * | faces () |
Get faces. More... | |
Facesets * | facesets () |
Get facesets. More... | |
Messages * | messages () |
Get messages. More... | |
Quests * | quests () |
Get quests. More... | |
Treasures * | treasures () |
Get treasures. More... | |
virtual | ~AssetsManager () |
Destructor. More... | |
Protected Member Functions | |
void | archetypeUpdated (archetype *existing, archetype *update) |
Update artifacts if needed when an archetype changes. More... | |
Protected Attributes | |
AllAnimations | m_animations |
Animations. More... | |
Archetypes | m_archetypes |
Archetypes. More... | |
Faces | m_faces |
Faces. More... | |
Facesets | m_facesets |
Cilent image variants. More... | |
Archetypes::updateListener | m_listener |
Listener to archetypes changes. More... | |
Messages | m_messages |
Messages. More... | |
Quests | m_quests |
Quests. More... | |
Treasures | m_treasures |
Treasures. More... | |
Represents all assets of the game.
It will listen to archetype changes to correctly update artifacts if needed.
Definition at line 28 of file AssetsManager.h.
AssetsManager::AssetsManager | ( | ) |
Constructor.
Definition at line 18 of file AssetsManager.cpp.
References archetypeUpdated(), Animations::faces, AssetsCollection< T, Key >::get(), m_animations, m_archetypes, m_faces, m_listener, and Archetypes::setReplaceListener().
|
virtual |
Destructor.
Definition at line 28 of file AssetsManager.cpp.
References Archetypes::clearReplaceListener(), and m_archetypes.
|
inline |
Get animations.
Definition at line 49 of file AssetsManager.h.
References m_animations.
Referenced by assets_collect(), assets_pack(), dump_animations(), find_animation(), malloc_info(), and try_find_animation().
|
inline |
Get archetypes.
Definition at line 44 of file AssetsManager.h.
References m_archetypes.
Referenced by archetypes_for_each(), assets_collect(), assets_finish_archetypes_for_play(), assets_pack(), build_class_list_reply(), build_race_list_reply(), cfapi_system_get_archetype_vector(), check_generators(), check_spells(), check_summoned(), create_archetype_by_object_name(), dump_abilities(), dump_all_archetypes(), dump_monster_treasure(), dump_spells(), find_archetype(), find_archetype_by_object_name(), find_archetype_by_object_type_name(), finish_races(), get_archetype_by_skill_name(), get_archetype_by_type_subtype(), get_next_archetype(), get_player_archetype(), get_spell_by_name(), malloc_info(), polymorph_item(), polymorph_living(), print_monsters(), recipe_find_ingredient_cost(), send_map_info(), and try_find_archetype().
Update artifacts if needed when an archetype changes.
existing | archetype being changed. |
update | new values of the archetype. |
Definition at line 32 of file AssetsManager.cpp.
References artifacts, first_artifactlist, treasurelist::items, and Archetypes::recursive_update().
Referenced by AssetsManager().
size_t AssetsManager::dumpUndefined | ( | ) |
Dump through LOG undefined assets (except faces), and return the total number of referenced but not defined assets (except faces).
Definition at line 52 of file AssetsManager.cpp.
References dump(), m_animations, m_archetypes, m_facesets, m_quests, m_treasures, and AssetsCollection< T, Key >::undefined().
|
inline |
Get faces.
Definition at line 39 of file AssetsManager.h.
References m_faces.
Referenced by assets_collect(), assets_pack(), dump_faces(), faces_for_each(), find_face(), get_face_by_id(), get_faces_count(), pack_images(), and try_find_face().
|
inline |
Get facesets.
Definition at line 65 of file AssetsManager.h.
References m_facesets.
Referenced by assets_collect(), assets_pack(), find_faceset(), pack_images(), and send_image_info().
|
inline |
Get messages.
Definition at line 59 of file AssetsManager.h.
References m_messages.
Referenced by assets_collect(), assets_pack(), get_message_from_identifier(), and msgfile_msg().
|
inline |
Get quests.
Definition at line 71 of file AssetsManager.h.
References m_quests.
Referenced by assets_collect(), assets_pack(), quest_for_each(), quest_get_by_code(), and quests_count().
|
inline |
Get treasures.
Definition at line 54 of file AssetsManager.h.
References m_treasures.
Referenced by assets_collect(), assets_end_load(), assets_number_of_treasurelists(), assets_pack(), and find_treasurelist().
|
protected |
Definition at line 84 of file AssetsManager.h.
Referenced by animations(), AssetsManager(), and dumpUndefined().
|
protected |
Definition at line 82 of file AssetsManager.h.
Referenced by archetypes(), AssetsManager(), dumpUndefined(), and ~AssetsManager().
|
protected |
|
protected |
Cilent image variants.
Definition at line 87 of file AssetsManager.h.
Referenced by dumpUndefined(), and facesets().
|
protected |
Listener to archetypes changes.
Definition at line 83 of file AssetsManager.h.
Referenced by AssetsManager().
|
protected |
|
protected |
|
protected |
Definition at line 85 of file AssetsManager.h.
Referenced by dumpUndefined(), and treasures().