mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 02:19:55 +00:00
23 lines
506 B
C++
23 lines
506 B
C++
#include "Miscellaneous.hpp"
|
|
|
|
#include <components/openmw-mp/Log.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);
|
|
}
|