1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-30 06:15:32 +00:00
openmw-tes3mp/apps/openmw-mp/Script/Functions/Miscellaneous.cpp
2019-08-19 21:39:33 +03:00

23 lines
511 B
C++

#include "Miscellaneous.hpp"
#include <components/openmw-mp/TimedLog.hpp>
#include <apps/openmw-mp/Networking.hpp>
#include <iostream>
using namespace std;
unsigned int MiscellaneousFunctions::GetLastPlayerId() noexcept
{
return Players::getLastPlayerId();
}
int MiscellaneousFunctions::GetCurrentMpNum() noexcept
{
return mwmp::Networking::getPtr()->getCurrentMpNum();
}
void MiscellaneousFunctions::SetCurrentMpNum(int mpNum) noexcept
{
mwmp::Networking::getPtr()->setCurrentMpNum(mpNum);
}