2017-06-27 05:27:14 +00:00
|
|
|
#ifndef OPENMW_BOOKAPI_HPP
|
|
|
|
#define OPENMW_BOOKAPI_HPP
|
|
|
|
|
|
|
|
#define BOOKAPI \
|
2017-07-07 06:25:48 +00:00
|
|
|
{"InitializeBookChanges", BookFunctions::InitializeBookChanges},\
|
|
|
|
\
|
2017-06-27 05:27:14 +00:00
|
|
|
{"GetBookChangesSize", BookFunctions::GetBookChangesSize},\
|
|
|
|
\
|
|
|
|
{"AddBook", BookFunctions::AddBook},\
|
|
|
|
\
|
|
|
|
{"GetBookId", BookFunctions::GetBookId},\
|
|
|
|
\
|
|
|
|
{"SendBookChanges", BookFunctions::SendBookChanges}
|
|
|
|
|
|
|
|
class BookFunctions
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
2017-07-07 06:25:48 +00:00
|
|
|
static void InitializeBookChanges(unsigned short pid) noexcept;
|
|
|
|
|
2017-06-27 05:27:14 +00:00
|
|
|
static unsigned int GetBookChangesSize(unsigned short pid) noexcept;
|
|
|
|
|
|
|
|
static void AddBook(unsigned short pid, const char* bookId) noexcept;
|
|
|
|
|
|
|
|
static const char *GetBookId(unsigned short pid, unsigned int i) noexcept;
|
|
|
|
|
2017-07-07 06:25:48 +00:00
|
|
|
static void SendBookChanges(unsigned short pid, bool toOthers = false) noexcept;
|
2017-06-27 05:27:14 +00:00
|
|
|
private:
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif //OPENMW_BOOKAPI_HPP
|