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},\
|
|
|
|
\
|
2017-05-24 20:22:43 +00:00
|
|
|
{"GetTopicChangesSize", DialogueFunctions::GetTopicChangesSize},\
|
|
|
|
\
|
|
|
|
{"AddTopic", DialogueFunctions::AddTopic},\
|
|
|
|
\
|
|
|
|
{"GetTopicId", DialogueFunctions::GetTopicId},\
|
|
|
|
\
|
2017-07-11 04:15:06 +00:00
|
|
|
{"SendTopicChanges", DialogueFunctions::SendTopicChanges}
|
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;
|
|
|
|
|
2017-05-24 20:22:43 +00:00
|
|
|
static unsigned int GetTopicChangesSize(unsigned short pid) noexcept;
|
|
|
|
|
|
|
|
static void AddTopic(unsigned short pid, const char* topicId) noexcept;
|
|
|
|
|
|
|
|
static const char *GetTopicId(unsigned short pid, unsigned int i) noexcept;
|
|
|
|
|
2017-07-07 06:25:48 +00:00
|
|
|
static void SendTopicChanges(unsigned short pid, bool toOthers = false) noexcept;
|
2017-05-24 20:22:43 +00:00
|
|
|
private:
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif //OPENMW_DIALOGUEAPI_HPP
|