|
|
|
@ -1,6 +1,7 @@
|
|
|
|
|
#include "Miscellaneous.hpp"
|
|
|
|
|
#include <apps/openmw-mp/Script/ScriptFunctions.hpp>
|
|
|
|
|
#include <apps/openmw-mp/Networking.hpp>
|
|
|
|
|
#include <components/openmw-mp/Log.hpp>
|
|
|
|
|
|
|
|
|
|
#include <iostream>
|
|
|
|
|
using namespace std;
|
|
|
|
@ -9,3 +10,13 @@ unsigned int MiscellaneousFunctions::GetLastPlayerId() noexcept
|
|
|
|
|
{
|
|
|
|
|
return Players::getLastPlayerId();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void MiscellaneousFunctions::LogMessage(unsigned short level, const char *message) noexcept
|
|
|
|
|
{
|
|
|
|
|
LOG_MESSAGE_SIMPLE(level, "[Script]: %s", message);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void MiscellaneousFunctions::LogAppend(unsigned short level, const char *message) noexcept
|
|
|
|
|
{
|
|
|
|
|
LOG_APPEND(level, "[Script]: %s", message);
|
|
|
|
|
}
|
|
|
|
|