mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-11 09:36:37 +00:00
28 lines
586 B
C++
28 lines
586 B
C++
|
|
||
|
#include "messages.hpp"
|
||
|
|
||
|
void CSMDoc::Messages::add (const CSMWorld::UniversalId& id, const std::string& message,
|
||
|
const std::string& hint)
|
||
|
{
|
||
|
Message data;
|
||
|
data.mId = id;
|
||
|
data.mMessage = message;
|
||
|
data.mHint = hint;
|
||
|
|
||
|
mMessages.push_back (data);
|
||
|
}
|
||
|
|
||
|
void CSMDoc::Messages::push_back (const std::pair<CSMWorld::UniversalId, std::string>& data)
|
||
|
{
|
||
|
add (data.first, data.second);
|
||
|
}
|
||
|
|
||
|
CSMDoc::Messages::Iterator CSMDoc::Messages::begin() const
|
||
|
{
|
||
|
return mMessages.begin();
|
||
|
}
|
||
|
|
||
|
CSMDoc::Messages::Iterator CSMDoc::Messages::end() const
|
||
|
{
|
||
|
return mMessages.end();
|
||
|
}
|