diff --git a/Include/Game/Interfaces/Menu.hpp b/Include/Game/Interfaces/Menu.hpp index 947aed8..2e46983 100644 --- a/Include/Game/Interfaces/Menu.hpp +++ b/Include/Game/Interfaces/Menu.hpp @@ -55,7 +55,7 @@ class Menu * @description By default the game includes html code in menu actions/targets * This function returns those actions without the removal of the html code * @return std::vector of raw menu actions - * @note The result can be inaccurate if the menu isn't open before calling this function + * @warning The result can be inaccurate if the menu isn't open before calling this function */ static std::vector GetActionsRaw(); @@ -65,7 +65,7 @@ class Menu * @description By default the game includes html code in menu actions/targets * This function returns those targets without the removal of the html code * @return std::vector of targets - * @note The result can be inaccurate if the menu isn't open before calling this function + * @warning The result can be inaccurate if the menu isn't open before calling this function */ static std::vector GetTargetsRaw(); @@ -76,7 +76,7 @@ class Menu * 'Use' - action 'gold bar' - target * 'Attack' - action 'Guard (level-21)' - target * @return std::vector array of menu actions - * @note The result can be inaccurate if the menu isn't open before calling this function + * @warning The result can be inaccurate if the menu isn't open before calling this function */ static std::vector GetActions(); @@ -87,7 +87,7 @@ class Menu * 'Use' - action 'gold bar' - target * 'Attack' - action 'Guard (level-21)' - target * @return std::vector array of menu targets - * @note The result can be inaccurate if the menu isn't open before calling this function + * @warning The result can be inaccurate if the menu isn't open before calling this function */ static std::vector GetTargets(); @@ -100,7 +100,7 @@ class Menu * 'Use gold bar' - option * 'Attack Guard (level-21)' - option * @return std::vector array of menu options - * @note The result can be inaccurate if the menu isn't open before calling this function + * @warning The result can be inaccurate if the menu isn't open before calling this function */ static std::vector GetOptions(); @@ -116,9 +116,10 @@ class Menu * If you pass 'Attack' as the 'Option' to look for, it'll select the very first guard, regardless of level. * If you pass 'Attack Guard (level-40)' as the 'Option' to look for, it'll attack the guard whose level is 40. * @param Option %Menu option to look for, can be very specific, or very lenient - * @return std::int32_t The index of the first found option, -1 if the menu isn't open, or the option wasn't found + * @return std::int32_t The index of the first found option, -1 if the option wasn't found * @note Notice that 'Attack Guard (level-40)' has a double space after 'Guard', menu options can vary, in this case the menu option i'm looking for * has a double space after 'Guard'. + * @warning The result can be inaccurate if the menu isn't open before calling this function */ static std::int32_t IndexOf(const std::string& Option); @@ -129,8 +130,9 @@ class Menu * This function is just Menu::IndexOf(const std::string& Option), but instead of looking for one single option, this function looks for multiple * * @param %Options %Menu options to look for, returns on first option found, the more specific the options, the more accurate the result will be - * @return std::int32_t The index of the first found option, -1 if the menu isn't open, or the option wasn't found + * @return std::int32_t The index of the first found option, -1 if the option wasn't found * @see Menu::IndexOf(const std::string& Option) + * @warning The result can be inaccurate if the menu isn't open before calling this function */ static std::int32_t IndexOf(const std::vector& Options); @@ -140,10 +142,11 @@ class Menu * * @param Index The index of the menu option to look at * @return std::tuple - * std::int32_t [0] = Index of the option that was found, -1 if the menu isn't open, or the option wasn't found + * std::int32_t [0] = Index of the option that was found, -1 if the option wasn't found * std::string [1] = Action that was found at index * std::string [2] = Target that was found at index * @see Menu::IndexOf(const std::string& Option) + * @warning The result can be inaccurate if the menu isn't open before calling this function */ static std::tuple FindOption(std::uint32_t Index); @@ -152,10 +155,11 @@ class Menu * * @param Option %Menu option to look for, the more specific, the more accurate the result will be * @return std::tuple - * std::int32_t [0] = Index of the option that was found, -1 if the menu isn't open, or the option wasn't found + * std::int32_t [0] = Index of the option that was found, -1 if the option wasn't found * std::string [1] = Action that was found * std::string [2] = Target that was found * @see Menu::IndexOf(const std::string& Option) + * @warning The result can be inaccurate if the menu isn't open before calling this function */ static std::tuple FindOption(const std::string& Option); @@ -164,10 +168,11 @@ class Menu * * @param %Options %Menu options to look for, returns on first option found, the more specific the options, the more accurate the result will be * @return std::tuple - * std::int32_t [0] = Index of the option that was found, -1 if the menu isn't open, or the option wasn't found + * std::int32_t [0] = Index of the option that was found, -1 if the option wasn't found * std::string [1] = Action that was found * std::string [2] = Target that was found * @see Menu::IndexOf(const std::string& Options) + * @warning The result can be inaccurate if the menu isn't open before calling this function */ static std::tuple FindOption(const std::vector& Options); @@ -176,9 +181,10 @@ class Menu * * @param Option %Menu option to look for, the more specific the option, the more accurate the result will be * @return std::vector> - * std::int32_t [0] = Index of the option that was found, -1 if the menu isn't open, or the option wasn't found + * std::int32_t [0] = Index of the option that was found, -1 if the option wasn't found * std::string [1] = Action that was found * std::string [2] = Target that was found + * @warning The result can be inaccurate if the menu isn't open before calling this function * @see Menu::IndexOf(const std::string& Option) */ static std::vector> FindOptions(const std::string& Option); @@ -188,10 +194,11 @@ class Menu * * @param %Options %Menu options to look for, if the option is found within the menu options, it'll be added to the result array, the more specific the options, the more accurate the result will be * @return std::vector> - * std::int32_t [0] = Index of the option that was found, -1 if the menu isn't open, or the option wasn't found + * std::int32_t [0] = Index of the option that was found, -1 if the option wasn't found * std::string [1] = Action that was found * std::string [2] = Target that was found * @see Menu::IndexOf(const std::string& Options) + * @warning The result can be inaccurate if the menu isn't open before calling this function */ static std::vector> FindOptions(const std::vector& Options); @@ -202,6 +209,7 @@ class Menu * @param Option %Menu option to look for, the more specific the option, the more specific the option, the more accurate the result will be * @return true if the found index is valid (Index >= 0) * @see Menu::IndexOf(const std::string& Option) + * @warning The result can be inaccurate if the menu isn't open before calling this function */ static bool Contains(const std::string& Option); @@ -211,6 +219,7 @@ class Menu * @param %Options %Menu options to look for, returns on first option found, the more specific the options, the more accurate the result will be * @return true if the found index is valid (Index >= 0) * @see Menu::IndexOf(const std::string& Options) + * @warning The result can be inaccurate if the menu isn't open before calling this function */ static bool Contains(const std::vector& Options); diff --git a/Library/libAlpacaLibrary.a b/Library/libAlpacaLibrary.a index ff4d356..ef211fa 100644 Binary files a/Library/libAlpacaLibrary.a and b/Library/libAlpacaLibrary.a differ