示例#1
0
    void Journal::addTopic (const std::string& topicId, const std::string& infoId)
    {
        TTopicContainer::iterator iter = mTopics.find (topicId);

        if (iter==mTopics.end())
        {
            std::pair<TTopicContainer::iterator, bool> result
                = mTopics.insert (std::make_pair (topicId, Topic (topicId)));

            iter = result.first;
        }

        iter->second.addEntry (JournalEntry (topicId, infoId), *mEnvironment.mWorld);
    }
示例#2
0
 JournalEntry JournalEntry::makeFromQuest (const std::string& topic, int index)
 {
     return JournalEntry (topic, idFromIndex (topic, index), MWWorld::Ptr());
 }
示例#3
0
文件: topic.cpp 项目: 0xmono/openmw
 JournalEntry Topic::getEntry (const std::string& infoId) const
 {
     return JournalEntry (mTopic, infoId);
 }