forked from teamnwah/openmw-tes3coop
addTopic function
This commit is contained in:
parent
e7ef39cabc
commit
ea8335a393
2 changed files with 7 additions and 0 deletions
|
@ -390,6 +390,11 @@ namespace MWDialogue
|
|||
|
||||
DialogueManager::DialogueManager (MWWorld::Environment& environment) : mEnvironment (environment) {}
|
||||
|
||||
void DialogueManager::addTopic(std::string topic)
|
||||
{
|
||||
knownTopics[toLower(topic)] = true;
|
||||
}
|
||||
|
||||
void DialogueManager::startDialogue (const MWWorld::Ptr& actor)
|
||||
{
|
||||
std::cout << "talking with " << MWWorld::Class::get (actor).getName (actor) << std::endl;
|
||||
|
|
|
@ -29,6 +29,8 @@ namespace MWDialogue
|
|||
|
||||
void startDialogue (const MWWorld::Ptr& actor);
|
||||
|
||||
void addTopic(std::string topic);
|
||||
|
||||
//calbacks for the GUI
|
||||
void keywordSelected(std::string keyword);
|
||||
void goodbyeSelected();
|
||||
|
|
Loading…
Reference in a new issue