mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-10 06:39:49 +00:00
39 lines
886 B
C++
39 lines
886 B
C++
|
|
#include "journal.hpp"
|
|
|
|
#include "../mwworld/environment.hpp"
|
|
|
|
#include <iostream>
|
|
namespace MWDialogue
|
|
{
|
|
Journal::Journal (MWWorld::Environment& environment)
|
|
: mEnvironment (environment)
|
|
{}
|
|
|
|
void Journal::addEntry (const std::string& id, int index)
|
|
{
|
|
mJournal.push_back (JournalEntry::makeFromQuest (id, index, *mEnvironment.mWorld));
|
|
std::cout << "journal: " << id << " at " << index << std::endl;
|
|
}
|
|
|
|
void Journal::setJournalIndex (const std::string& id, int index)
|
|
{
|
|
std::cout << "journal (no entry): " << id << " at " << index << std::endl;
|
|
}
|
|
|
|
int Journal::getJournalIndex (const std::string& id) const
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
Journal::TEntryIter Journal::begin() const
|
|
{
|
|
return mJournal.begin();
|
|
}
|
|
|
|
Journal::TEntryIter Journal::end() const
|
|
{
|
|
return mJournal.end();
|
|
}
|
|
}
|