12 if (!_conversation.
load(
14 BL_LOG_ERROR <<
"Failed to load npc conversation: " << data.
conversation();
15 #ifdef PEOPLEMON_DEBUG
21 const std::string&
NPC::name()
const {
return _name; }
Core classes and functionality for both the editor and game.
NPC(const file::NPC &data)
Construct a new NPC component.
const file::Conversation & conversation() const
The conversation of the NPC.
const std::string & name() const
The name of the NPC.
Stores a conversation that an NPC or trainer can have with the player.
bool load(const std::string &file)
Loads the conversation from the given file.
static Conversation makeLoadError(const std::string &filename)
Helper function to create a conversation that reports an error if in debug mode.
std::string & conversation()
The conversation file of the NPC.
static const std::string & ConversationPath()