You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1022 B
52 lines
1022 B
8 years ago
|
#include "Chat.hpp"
|
||
|
|
||
|
namespace Chat{
|
||
|
void Log::putAutoTransOpen()
|
||
|
{
|
||
|
s.put('\xFF');
|
||
|
s.put('\xEF');
|
||
|
s.put('\x27');
|
||
|
}
|
||
|
|
||
|
void Log::putAutoTransClose()
|
||
|
{
|
||
|
s.put('\xFF');
|
||
|
s.put('\xEF');
|
||
|
s.put('\x28');
|
||
|
}
|
||
|
|
||
|
IAutoTrans Log::Region(unsigned char RegionID)
|
||
|
{
|
||
|
IAutoTrans i;
|
||
|
i.x = m_Ashita->GetResourceManager()->GetString("regions", RegionID, 0);
|
||
|
return i;
|
||
|
}
|
||
|
|
||
|
IAutoTrans Log::Zone(unsigned int ZoneID)
|
||
|
{
|
||
|
IAutoTrans i;
|
||
|
i.x = m_Ashita->GetResourceManager()->GetString("areas",ZoneID,0);
|
||
|
return i;
|
||
|
}
|
||
|
|
||
|
IAutoTrans Log::Keyitem(unsigned int ID)
|
||
|
{
|
||
|
IAutoTrans i;
|
||
|
i.x = m_Ashita->GetResourceManager()->GetString("keyitems",ID,0);
|
||
|
return i;
|
||
|
}
|
||
|
|
||
|
Log::Log() : m_Ashita(NULL)
|
||
|
{
|
||
|
mode = RecvdSay;
|
||
|
s = std::ostringstream();
|
||
|
}
|
||
|
Log::~Log()
|
||
|
{
|
||
|
}
|
||
|
|
||
|
void Log::SetCore(IAshitaCore* mAshitaCore)
|
||
|
{
|
||
|
m_Ashita = mAshitaCore;
|
||
|
}
|
||
|
};
|