![]() |
Crossfire Server, Trunk
1.75.0
|
#include <FaceLoader.h>
Inheritance diagram for FaceLoader:
Collaboration diagram for FaceLoader:Public Member Functions | |
| FaceLoader (Faces *faces, AllAnimations *animations, AssetsTracker *tracker) | |
| virtual void | load (BufferReader *reader, const std::string &filename) override |
| Load assets from the specified reader. More... | |
| virtual bool | willLoad (const std::string &filename) override |
| Whether this instance will process or not the specified file. More... | |
Public Member Functions inherited from AssetLoader | |
| virtual | ~AssetLoader () |
| Virtual destructor for inheritance. More... | |
Private Member Functions | |
| void | loadAnimationBlock (BufferReader *reader, const std::string &full_path, const char *animation_name) |
Private Attributes | |
| AllAnimations * | m_animations |
| Faces * | m_faces |
| AssetsTracker * | m_tracker |
Definition at line 23 of file FaceLoader.h.
| FaceLoader::FaceLoader | ( | Faces * | faces, |
| AllAnimations * | animations, | ||
| AssetsTracker * | tracker | ||
| ) |
Definition at line 22 of file FaceLoader.cpp.
|
overridevirtual |
Load assets from the specified reader.
| reader | reader. |
| filename | full filename. |
Implements AssetLoader.
Definition at line 77 of file FaceLoader.cpp.
References add_string(), AssetsTracker::assetDefined(), buf, buffer, bufferreader_next_line(), AssetsCollection< T, Key >::define(), FACE_FLOOR, find_color(), free_string(), AssetsCollection< T, Key >::get(), llevError, loadAnimationBlock(), LOG(), m_faces, m_tracker, Face::magicmap, Face::name, Face::smoothface, and Face::visibility.
Here is the call graph for this function:
|
private |
Definition at line 27 of file FaceLoader.cpp.
References add_string(), AssetsTracker::assetDefined(), buf, bufferreader_next_line(), AssetsCollection< T, Key >::define(), face(), Animations::faces, Animations::facings, find_face(), if(), llevDebug, LOG(), m_animations, m_tracker, MAX_ANIMATIONS, Animations::name, and Animations::num_animations.
Referenced by load().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlineoverridevirtual |
Whether this instance will process or not the specified file.
| filename | full file path. |
Implements AssetLoader.
Definition at line 27 of file FaceLoader.h.
References Utils::endsWith().
Here is the call graph for this function:
|
private |
Definition at line 35 of file FaceLoader.h.
Referenced by loadAnimationBlock().
|
private |
Definition at line 34 of file FaceLoader.h.
Referenced by load().
|
private |
Definition at line 36 of file FaceLoader.h.
Referenced by load(), and loadAnimationBlock().