forked from mirror/openmw-tes3mp
28 lines
703 B
C++
28 lines
703 B
C++
#ifndef OPENMW_BOOKAPI_HPP
|
|
#define OPENMW_BOOKAPI_HPP
|
|
|
|
#define BOOKAPI \
|
|
{"GetBookChangesSize", BookFunctions::GetBookChangesSize},\
|
|
\
|
|
{"AddBook", BookFunctions::AddBook},\
|
|
\
|
|
{"GetBookId", BookFunctions::GetBookId},\
|
|
\
|
|
{"SendBookChanges", BookFunctions::SendBookChanges}
|
|
|
|
class BookFunctions
|
|
{
|
|
public:
|
|
|
|
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;
|
|
|
|
static void SendBookChanges(unsigned short pid) noexcept;
|
|
private:
|
|
|
|
};
|
|
|
|
#endif //OPENMW_BOOKAPI_HPP
|