Release 0.49

master
Kasi 2018-05-17 02:18:17 +01:00
parent 3943a3c7c6
commit 23ee647546
2 changed files with 9 additions and 2 deletions

View File

@ -18,6 +18,7 @@ class Chat
IDLE, IDLE,
CLICK_CONTINUE, CLICK_CONTINUE,
SELECT_OPTION, SELECT_OPTION,
PLEASE_WAIT,
ENTER_AMOUNT, ENTER_AMOUNT,
LEVEL_UP LEVEL_UP
} DIALOGUE_STATE; } DIALOGUE_STATE;
@ -52,15 +53,21 @@ class Chat
static Internal::MessageNode GetLastMessage(CHAT_TYPE Type); static Internal::MessageNode GetLastMessage(CHAT_TYPE Type);
static DIALOGUE_STATE GetDialogueState(); static DIALOGUE_STATE GetDialogueState();
static bool HasDialogue();
static std::vector<std::string> GetDialogueOptions(); static std::vector<std::string> GetDialogueOptions();
static std::string GetDialogueTitle(); static std::string GetDialogueTitle();
static std::string GetDialogueMessage(); static std::string GetDialogueMessage();
static std::int32_t GetDialogueOptionIndexOf(const std::string& Option);
static std::int32_t GetDialogueOptionIndexOf(const std::vector<std::string>& Options);
static bool ClickContinue(bool UseKeyboard = false); static bool ClickContinue(bool UseKeyboard = false);
static bool EnterAmount(std::int32_t Amount); static bool EnterAmount(std::int32_t Amount);
static bool SelectDialogueOption(std::uint32_t Index, bool UseKeyboard = false); // Index starts at 0
static bool SelectDialogueOption(const std::string& Option, bool UseKeyboard = false); static bool SelectDialogueOption(const std::string& Option, bool UseKeyboard = false);
static bool SelectDialogueOption(const std::vector<std::string>& Options, bool UseKeyboard = false); static bool SelectDialogueOption(const std::vector<std::string>& Options, bool UseKeyboard = false);
static bool SelectDialogueOption(std::uint32_t OptionIndex, bool UseKeyboard = false); // OptionIndex has to be 1-4
static bool WaitDialogueState(std::uint32_t Duration, std::uint32_t Step, Chat::DIALOGUE_STATE State, bool Result = true); // Waits until the current chat state equals State
}; };
/** @} */ /** @} */

Binary file not shown.