2017-05-24 20:22:43 +00:00
|
|
|
#ifndef OPENMW_DIALOGUEAPI_HPP
|
|
|
|
#define OPENMW_DIALOGUEAPI_HPP
|
|
|
|
|
|
|
|
#define DIALOGUEAPI \
|
2017-07-07 06:25:48 +00:00
|
|
|
{"InitializeTopicChanges", DialogueFunctions::InitializeTopicChanges},\
|
|
|
|
{"InitializeKillChanges", DialogueFunctions::InitializeKillChanges},\
|
|
|
|
\
|
2017-05-24 20:22:43 +00:00
|
|
|
{"GetTopicChangesSize", DialogueFunctions::GetTopicChangesSize},\
|
2017-06-10 11:04:19 +00:00
|
|
|
{"GetKillChangesSize", DialogueFunctions::GetKillChangesSize},\
|
2017-05-24 20:22:43 +00:00
|
|
|
\
|
|
|
|
{"AddTopic", DialogueFunctions::AddTopic},\
|
2017-06-10 11:04:19 +00:00
|
|
|
{"AddKill", DialogueFunctions::AddKill},\
|
2017-05-24 20:22:43 +00:00
|
|
|
\
|
|
|
|
{"GetTopicId", DialogueFunctions::GetTopicId},\
|
2017-06-10 11:04:19 +00:00
|
|
|
{"GetKillRefId", DialogueFunctions::GetKillRefId},\
|
|
|
|
{"GetKillNumber", DialogueFunctions::GetKillNumber},\
|
2017-05-24 20:22:43 +00:00
|
|
|
\
|
2017-06-10 11:04:19 +00:00
|
|
|
{"SendTopicChanges", DialogueFunctions::SendTopicChanges},\
|
|
|
|
{"SendKillChanges", DialogueFunctions::SendKillChanges}
|
2017-05-24 20:22:43 +00:00
|
|
|
|
|
|
|
class DialogueFunctions
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
2017-07-07 06:25:48 +00:00
|
|
|
static void InitializeTopicChanges(unsigned short pid) noexcept;
|
|
|
|
static void InitializeKillChanges(unsigned short pid) noexcept;
|
|
|
|
|
2017-05-24 20:22:43 +00:00
|
|
|
static unsigned int GetTopicChangesSize(unsigned short pid) noexcept;
|
2017-06-10 11:04:19 +00:00
|
|
|
static unsigned int GetKillChangesSize(unsigned short pid) noexcept;
|
2017-05-24 20:22:43 +00:00
|
|
|
|
|
|
|
static void AddTopic(unsigned short pid, const char* topicId) noexcept;
|
2017-06-10 11:04:19 +00:00
|
|
|
static void AddKill(unsigned short pid, const char* refId, int number) noexcept;
|
2017-05-24 20:22:43 +00:00
|
|
|
|
|
|
|
static const char *GetTopicId(unsigned short pid, unsigned int i) noexcept;
|
2017-06-10 11:04:19 +00:00
|
|
|
static const char *GetKillRefId(unsigned short pid, unsigned int i) noexcept;
|
|
|
|
static int GetKillNumber(unsigned short pid, unsigned int i) noexcept;
|
2017-05-24 20:22:43 +00:00
|
|
|
|
2017-07-07 06:25:48 +00:00
|
|
|
static void SendTopicChanges(unsigned short pid, bool toOthers = false) noexcept;
|
|
|
|
static void SendKillChanges(unsigned short pid, bool toOthers = false) noexcept;
|
2017-05-24 20:22:43 +00:00
|
|
|
private:
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif //OPENMW_DIALOGUEAPI_HPP
|