2017-02-26 21:00:51 +00:00
|
|
|
#ifndef OPENMW_MISCELLANEOUSAPI_HPP
|
|
|
|
#define OPENMW_MISCELLANEOUSAPI_HPP
|
|
|
|
|
|
|
|
#include "../Types.hpp"
|
|
|
|
|
|
|
|
#define MISCELLANEOUSAPI \
|
2017-04-03 22:47:37 +00:00
|
|
|
{"GetLastPlayerId", MiscellaneousFunctions::GetLastPlayerId},\
|
|
|
|
\
|
2017-04-04 09:43:17 +00:00
|
|
|
{"GetCurrentMpNum", MiscellaneousFunctions::GetCurrentMpNum},\
|
|
|
|
{"SetCurrentMpNum", MiscellaneousFunctions::SetCurrentMpNum},\
|
2017-04-04 09:49:29 +00:00
|
|
|
\
|
2017-04-03 22:47:37 +00:00
|
|
|
{"LogMessage", MiscellaneousFunctions::LogMessage},\
|
|
|
|
{"LogAppend", MiscellaneousFunctions::LogAppend}
|
2017-02-26 21:00:51 +00:00
|
|
|
|
|
|
|
class MiscellaneousFunctions
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
static unsigned int GetLastPlayerId() noexcept;
|
2017-04-03 22:47:37 +00:00
|
|
|
|
2017-04-04 09:43:17 +00:00
|
|
|
static int GetCurrentMpNum() noexcept;
|
|
|
|
static void SetCurrentMpNum(int mpNum) noexcept;
|
|
|
|
|
2017-04-03 22:47:37 +00:00
|
|
|
static void LogMessage(unsigned short level, const char *message) noexcept;
|
|
|
|
static void LogAppend(unsigned short level, const char *message) noexcept;
|
2017-02-26 21:00:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif //OPENMW_MISCELLANEOUSAPI_HPP
|