added dialog manager
parent
7611572065
commit
8045320ac9
@ -0,0 +1,17 @@
|
||||
|
||||
#include "dialogmanager.hpp"
|
||||
|
||||
#include "../mwworld/class.hpp"
|
||||
|
||||
#include <iostream>
|
||||
|
||||
namespace MWDialog
|
||||
{
|
||||
DialogManager::DialogManager (MWWorld::Environment& environment) : mEnvironment (environment) {}
|
||||
|
||||
void DialogManager::startDialog (const MWWorld::Ptr& actor)
|
||||
{
|
||||
std::cout << "talking with " << MWWorld::Class::get (actor).getName (actor) << std::endl;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,26 @@
|
||||
#ifndef GAME_MMDIALOG_DIALOGMANAGER_H
|
||||
#define GAME_MWDIALOG_DIALOGMANAGER_H
|
||||
|
||||
#include "../mwworld/ptr.hpp"
|
||||
|
||||
namespace MWWorld
|
||||
{
|
||||
class Environment;
|
||||
}
|
||||
|
||||
namespace MWDialog
|
||||
{
|
||||
class DialogManager
|
||||
{
|
||||
MWWorld::Environment& mEnvironment;
|
||||
|
||||
public:
|
||||
|
||||
DialogManager (MWWorld::Environment& environment);
|
||||
|
||||
void startDialog (const MWWorld::Ptr& actor);
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
#endif
|
Loading…
Reference in New Issue