forked from teamnwah/openmw-tes3coop
[Server] Add GetLastPlayerId() script function in Miscellaneous category
parent
deb10919ab
commit
0baada0aa2
@ -0,0 +1,11 @@
|
||||
#include "Miscellaneous.hpp"
|
||||
#include <apps/openmw-mp/Script/ScriptFunctions.hpp>
|
||||
#include <apps/openmw-mp/Networking.hpp>
|
||||
|
||||
#include <iostream>
|
||||
using namespace std;
|
||||
|
||||
unsigned int MiscellaneousFunctions::GetLastPlayerId() noexcept
|
||||
{
|
||||
return Players::getLastPlayerId();
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
#ifndef OPENMW_MISCELLANEOUSAPI_HPP
|
||||
#define OPENMW_MISCELLANEOUSAPI_HPP
|
||||
|
||||
#include "../Types.hpp"
|
||||
|
||||
#define MISCELLANEOUSAPI \
|
||||
{"GetLastPlayerId", MiscellaneousFunctions::GetLastPlayerId}
|
||||
|
||||
|
||||
class MiscellaneousFunctions
|
||||
{
|
||||
public:
|
||||
static unsigned int GetLastPlayerId() noexcept;
|
||||
};
|
||||
|
||||
#endif //OPENMW_MISCELLANEOUSAPI_HPP
|
Loading…
Reference in New Issue