2017-02-26 21:00:51 +00:00
|
|
|
#include "Miscellaneous.hpp"
|
2017-08-18 04:13:08 +00:00
|
|
|
|
|
|
|
#include <components/openmw-mp/Log.hpp>
|
|
|
|
|
2017-02-26 21:00:51 +00:00
|
|
|
#include <apps/openmw-mp/Networking.hpp>
|
|
|
|
|
|
|
|
#include <iostream>
|
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
unsigned int MiscellaneousFunctions::GetLastPlayerId() noexcept
|
|
|
|
{
|
|
|
|
return Players::getLastPlayerId();
|
|
|
|
}
|
2017-04-03 22:47:37 +00:00
|
|
|
|
2017-04-04 09:43:17 +00:00
|
|
|
int MiscellaneousFunctions::GetCurrentMpNum() noexcept
|
|
|
|
{
|
|
|
|
return mwmp::Networking::getPtr()->getCurrentMpNum();
|
|
|
|
}
|
|
|
|
|
|
|
|
void MiscellaneousFunctions::SetCurrentMpNum(int mpNum) noexcept
|
|
|
|
{
|
|
|
|
mwmp::Networking::getPtr()->setCurrentMpNum(mpNum);
|
|
|
|
}
|