forked from mirror/openmw-tes3mp
6dde0ca9c9
Add new initialization script functions to allow clearing all player changes vectors in a manner consistent with Actor and World functions Add toOthers boolean to all methods that send packets with player changes vectors
32 lines
872 B
C++
32 lines
872 B
C++
#ifndef OPENMW_BOOKAPI_HPP
|
|
#define OPENMW_BOOKAPI_HPP
|
|
|
|
#define BOOKAPI \
|
|
{"InitializeBookChanges", BookFunctions::InitializeBookChanges},\
|
|
\
|
|
{"GetBookChangesSize", BookFunctions::GetBookChangesSize},\
|
|
\
|
|
{"AddBook", BookFunctions::AddBook},\
|
|
\
|
|
{"GetBookId", BookFunctions::GetBookId},\
|
|
\
|
|
{"SendBookChanges", BookFunctions::SendBookChanges}
|
|
|
|
class BookFunctions
|
|
{
|
|
public:
|
|
|
|
static void InitializeBookChanges(unsigned short pid) noexcept;
|
|
|
|
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, bool toOthers = false) noexcept;
|
|
private:
|
|
|
|
};
|
|
|
|
#endif //OPENMW_BOOKAPI_HPP
|