Crossfire Server, Trunk
|
#include <MessageLoader.h>
Public Member Functions | |
virtual void | load (BufferReader *reader, const std::string &filename) override |
MessageLoader (Messages *messages, AssetsTracker *tracker) | |
virtual bool | willLoad (const std::string &filename) override |
Public Member Functions inherited from AssetLoader | |
virtual | ~AssetLoader () |
Private Attributes | |
Messages * | m_messages |
AssetsTracker * | m_tracker |
Definition at line 22 of file MessageLoader.h.
MessageLoader::MessageLoader | ( | Messages * | messages, |
AssetsTracker * | tracker | ||
) |
Definition at line 21 of file MessageLoader.cpp.
|
overridevirtual |
Load assets from the specified reader.
reader | reader. |
filename | full filename. |
Implements AssetLoader.
Definition at line 24 of file MessageLoader.cpp.
References add_string(), AssetsTracker::assetDefined(), BOOK_BUF, buf, buf_overflow(), bufferreader_current_line(), bufferreader_next_line(), AssetsCollection< T, Key >::define(), fatal(), npc_dialog::filename, find_face(), HUGE_BUF, llevDebug, llevError, llevInfo, LOG(), m_messages, m_tracker, msgbuf, SEE_LAST_ERROR, guild_entry::text, and Ice::tmp.
|
inlineoverridevirtual |
Whether this instance will process or not the specified file.
filename | full file path. |
Implements AssetLoader.
Definition at line 26 of file MessageLoader.h.
References Utils::endsWith(), and npc_dialog::filename.
|
private |
Definition at line 33 of file MessageLoader.h.
Referenced by load().
|
private |
Definition at line 34 of file MessageLoader.h.
Referenced by load().