Release 1.88

master
Kasi 2023-03-09 17:15:48 +00:00
parent 7cfe0917de
commit 632273a030
25 changed files with 103 additions and 0 deletions

View File

@ -136,6 +136,7 @@ namespace Internal
std::int32_t GetCrosshairState();
std::vector<std::int32_t> GetCurrentLevels();
std::int32_t GetCurrentWorld();
Widget GetDraggingWidget();
std::int32_t GetDraggingItemDuration();
Cache GetDynamicObjectCache();
std::vector<ExchangeOffer> GetExchangeOffers();

View File

@ -12,6 +12,7 @@
#include "../../Game/Tools/Camera.hpp"
#include <cstdint>
#include <functional>
#include <regex>
namespace Interactable
{
@ -47,6 +48,7 @@ namespace Interactable
bool Hover() const;
bool Interact(const Button& B = BUTTON_LEFT) const;
bool Interact(const std::regex& Option, bool CheckTarget = false) const;
bool Interact(const std::string& Option, bool CheckTarget = true) const;
bool Interact(const std::vector<std::string>& Options, bool CheckTarget = true) const;
bool Interact(const std::function<bool (const std::vector<Point>&)>& InteractMethod) const;

View File

@ -12,6 +12,7 @@
#include "../../Game/Tools/Camera.hpp"
#include <cstdint>
#include <functional>
#include <regex>
namespace Interactable
{
@ -49,6 +50,7 @@ namespace Interactable
bool Hover() const;
bool Interact(const Button& B = BUTTON_LEFT) const;
bool Interact(const std::regex& Option, bool CheckTarget = false) const;
bool Interact(const std::string& Option, bool CheckTarget = true) const;
bool Interact(const std::vector<std::string>& Options, bool CheckTarget = true) const;
bool Interact(const std::function<bool (const std::vector<Point>&)>& InteractMethod) const;

View File

@ -12,6 +12,7 @@
#include "../../Game/Tools/Camera.hpp"
#include <cstdint>
#include <functional>
#include <regex>
namespace Interactable
{
@ -50,6 +51,7 @@ namespace Interactable
bool Hover() const;
bool Interact(const Button& B = BUTTON_LEFT) const;
bool Interact(const std::regex& Option, bool CheckTarget = false) const;
bool Interact(const std::string& Option, bool CheckTarget = true) const;
bool Interact(const std::vector<std::string>& Options, bool CheckTarget = true) const;
bool Interact(const std::function<bool (const std::vector<Point>&)>& InteractMethod) const;

View File

@ -12,6 +12,7 @@
#include "../../Game/Tools/Camera.hpp"
#include <cstdint>
#include <functional>
#include <regex>
namespace Interactable
{
@ -47,6 +48,7 @@ namespace Interactable
bool Hover() const;
bool Interact(const Button& B = BUTTON_LEFT) const;
bool Interact(const std::regex& Option, bool CheckTarget = false) const;
bool Interact(const std::string& Option, bool CheckTarget = true) const;
bool Interact(const std::vector<std::string>& Options, bool CheckTarget = true) const;
bool Interact(const std::function<bool (const std::vector<Point>&)>& InteractMethod) const;

View File

@ -9,6 +9,7 @@
#include "../../Core/Input.hpp"
#include <cstdint>
#include <functional>
#include <regex>
namespace Interactable
{
@ -46,6 +47,7 @@ namespace Interactable
bool Hover() const;
bool Interact(const Button& B = BUTTON_LEFT) const;
bool Interact(const std::regex& Option, bool CheckTarget = false) const;
bool Interact(const std::string& Option, bool CheckTarget = false) const;
bool Interact(const std::vector<std::string>& Options, bool CheckTarget = false) const;
bool Interact(const std::function<bool (const Convex&)>& InteractMethod) const;

View File

@ -12,6 +12,7 @@
#include "../../Game/Tools/Camera.hpp"
#include <cstdint>
#include <functional>
#include <regex>
namespace Interactable
{
@ -51,6 +52,7 @@ namespace Interactable
bool Hover() const;
bool Interact(const Button& B = BUTTON_LEFT) const;
bool Interact(const std::regex& Option, bool CheckTarget = false) const;
bool Interact(const std::string& Option, bool CheckTarget = true) const;
bool Interact(const std::vector<std::string>& Options, bool CheckTarget = true) const;
bool Interact(const std::function<bool (const std::vector<Point>&)>& InteractMethod) const;

View File

@ -12,6 +12,7 @@
#include "../../Game/Tools/Camera.hpp"
#include <cstdint>
#include <functional>
#include <regex>
namespace Interactable
{
@ -50,6 +51,7 @@ namespace Interactable
bool Hover() const;
bool Interact(const Button& B = BUTTON_LEFT) const;
bool Interact(const std::regex& Option, bool CheckTarget = false) const;
bool Interact(const std::string& Option, bool CheckTarget = true) const;
bool Interact(const std::vector<std::string>& Options, bool CheckTarget = true) const;
bool Interact(const std::function<bool (const std::vector<Point>&)>& InteractMethod) const;

View File

@ -12,6 +12,7 @@
#include "../../Game/Tools/Camera.hpp"
#include <cstdint>
#include <functional>
#include <regex>
namespace Interactable
{
@ -47,6 +48,7 @@ namespace Interactable
bool Hover() const;
bool Interact(const Button& B = BUTTON_LEFT) const;
bool Interact(const std::regex& Option, bool CheckTarget = false) const;
bool Interact(const std::string& Option, bool CheckTarget = true) const;
bool Interact(const std::vector<std::string>& Options, bool CheckTarget = true) const;
bool Interact(const std::function<bool (const std::vector<Point>&)>& InteractMethod) const;

View File

@ -10,6 +10,7 @@
#include "../../Core/Input.hpp"
#include <cstdint>
#include <functional>
#include <regex>
namespace Interactable
{
@ -38,6 +39,7 @@ namespace Interactable
bool Hover() const;
bool Interact(const Button& B = BUTTON_LEFT) const;
bool Interact(const std::regex& Option) const;
bool Interact(const std::string& Option) const;
bool Interact(const std::vector<std::string>& Options) const;
bool Interact(const std::function<bool (const Box&)>& InteractMethod) const;

View File

@ -42,25 +42,30 @@ namespace Bank
std::vector<Interactable::Item> GetItems();
std::vector<Interactable::Item> GetItems(std::int32_t ID);
std::vector<Interactable::Item> GetItems(const std::regex& Name);
std::vector<Interactable::Item> GetItems(const std::string& Name);
std::vector<Interactable::Item> GetItems(const std::vector<std::int32_t>& IDs);
std::vector<Interactable::Item> GetItems(const std::vector<std::string>& Names);
std::vector<Interactable::Item> GetItems(const std::function<bool (const Interactable::Item&)>& Filter);
Interactable::Item GetItem(std::int32_t ID);
Interactable::Item GetItem(const std::regex& Name);
Interactable::Item GetItem(const std::string& Name);
Interactable::Item GetItem(const std::vector<std::int32_t>& IDs);
Interactable::Item GetItem(const std::vector<std::string>& Names);
Interactable::Item GetItem(const std::function<bool (const Interactable::Item&)>& Filter);
std::int32_t Count(std::int32_t ID);
std::int32_t Count(const std::regex& Name);
std::int32_t Count(const std::string& Name);
std::int32_t Count(const Interactable::Item& Item);
std::int32_t GetIndexOf(std::int32_t ID);
std::int32_t GetIndexOf(const std::regex& Name);
std::int32_t GetIndexOf(const std::string& Name);
bool Contains(std::int32_t ID);
bool Contains(const std::regex& Name);
bool Contains(const std::string& Name);
bool Contains(const Interactable::Item& Item);
bool Contains(const std::vector<std::int32_t>& IDs); // true if all items are found at least once
@ -73,25 +78,30 @@ namespace Bank
std::int32_t GetCurrentTab();
std::int32_t GetTabOf(std::int32_t ID);
std::int32_t GetTabOf(const std::regex& Name);
std::int32_t GetTabOf(const std::string& Name);
std::int32_t GetTabOf(const Interactable::Item& Item);
bool OpenTab(std::int32_t Tab);
bool ScrollTo(std::int32_t ID, bool OpenRespectiveTab = false);
bool ScrollTo(const std::regex& Name, bool OpenRespectiveTab = false);
bool ScrollTo(const std::string& Name, bool OpenRespectiveTab = false);
bool ScrollTo(const Interactable::Item& Item, bool OpenRespectiveTab = false);
// -1 = all, 0 = all-but-one
bool Withdraw(std::int32_t ID, std::int32_t Amount, bool OpenRespectiveTab = false);
bool Withdraw(const std::regex& Name, std::int32_t Amount, bool OpenRespectiveTab = false);
bool Withdraw(const std::string& Name, std::int32_t Amount, bool OpenRespectiveTab = false);
bool Withdraw(const Interactable::Item& Item, std::int32_t Amount, bool OpenRespectiveTab = false);
// -1 = all
bool Deposit(std::int32_t ID, std::int32_t Amount);
bool Deposit(const std::regex& Name, std::int32_t Amount);
bool Deposit(const std::string& Name, std::int32_t Amount);
bool Deposit(const Interactable::Item& Item, std::int32_t Amount);
bool DepositAllExcept(std::int32_t ID, double DepsositAllChance = 0.00); // DepositAllChance = the chance it will click deposit all on the individual item, instead of left clicking if possible. Will deposit all if the current default quantity is not enough to one click it
bool DepositAllExcept(const std::regex& Name, double DepsositAllChance = 0.00);
bool DepositAllExcept(const std::string& Name, double DepsositAllChance = 0.00);
bool DepositAllExcept(const Interactable::Item& Item, double DepsositAllChance = 0.00);
bool DepositAllExcept(const std::vector<std::int32_t>& IDs, double DepsositAllChance = 0.00);

View File

@ -91,11 +91,13 @@ namespace Chat
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
bool DialogueContains(const std::regex& Text);
bool DialogueContains(const std::string& Text);
bool DialogueContains(const std::vector<std::string>& Texts);
bool ClickContinue(bool UseKeyboard = false);
bool EnterAmount(std::int32_t Amount);
bool SelectDialogueOption(const std::regex& Option, bool UseKeyboard = false);
bool SelectDialogueOption(const std::string& Option, bool UseKeyboard = false);
bool SelectDialogueOption(const std::vector<std::string>& Options, bool UseKeyboard = false);
}

View File

@ -35,6 +35,7 @@ namespace Equipment
std::vector<Interactable::Item> GetItems();
std::vector<Interactable::Item> GetItems(std::int32_t ID);
std::vector<Interactable::Item> GetItems(const std::regex& Name);
std::vector<Interactable::Item> GetItems(const std::string& Name);
std::vector<Interactable::Item> GetItems(const std::vector<SLOT>& Slots);
std::vector<Interactable::Item> GetItems(const std::vector<std::int32_t>& IDs);
@ -43,6 +44,7 @@ namespace Equipment
Interactable::Item GetItem(SLOT Slot);
Interactable::Item GetItem(std::int32_t ID);
Interactable::Item GetItem(const std::regex& Name);
Interactable::Item GetItem(const std::string& Name);
Interactable::Item GetItem(const std::vector<std::int32_t>& IDs);
Interactable::Item GetItem(const std::vector<std::string>& Names);
@ -50,6 +52,7 @@ namespace Equipment
std::int32_t Count(SLOT Slot);
std::int32_t Count(std::int32_t ID);
std::int32_t Count(const std::regex& Name);
std::int32_t Count(const std::string& Name);
std::int32_t Count(const Interactable::Item& Item);
std::int32_t Count(const std::vector<std::int32_t>& IDs);
@ -57,9 +60,11 @@ namespace Equipment
std::int32_t Count(const std::vector<Interactable::Item>& Items);
SLOT GetSlotOf(std::int32_t ID);
SLOT GetSlotOf(const std::regex& Name);
SLOT GetSlotOf(const std::string& Name);
bool Contains(std::int32_t ID);
bool Contains(const std::regex& Name);
bool Contains(const std::string& Name);
bool Contains(const Interactable::Item& Item);
bool Contains(const std::vector<std::int32_t>& IDs); // true if all items are found at least once
@ -71,6 +76,7 @@ namespace Equipment
bool ContainsAny(const std::vector<Interactable::Item>& Items);
bool ContainsOnly(std::int32_t ID);
bool ContainsOnly(const std::regex& Name);
bool ContainsOnly(const std::string& Name);
bool ContainsOnly(const Interactable::Item& Item);
bool ContainsOnly(const std::vector<std::int32_t>& IDs);
@ -79,6 +85,7 @@ namespace Equipment
bool Unequip(SLOT Slot);
bool Unequip(std::int32_t ID);
bool Unequip(const std::regex& Name);
bool Unequip(const std::string& Name);
bool Unequip(const Interactable::Item& Item);
}

View File

@ -21,12 +21,14 @@ namespace Inventory
std::vector<Interactable::Item> GetItems();
std::vector<Interactable::Item> GetItems(std::int32_t ID);
std::vector<Interactable::Item> GetItems(const std::regex& Name);
std::vector<Interactable::Item> GetItems(const std::string& Name);
std::vector<Interactable::Item> GetItems(const std::vector<std::int32_t>& IDs);
std::vector<Interactable::Item> GetItems(const std::vector<std::string>& Names);
std::vector<Interactable::Item> GetItems(const std::function<bool (const Interactable::Item&)>& Filter);
Interactable::Item GetItem(std::int32_t ID);
Interactable::Item GetItem(const std::regex& Name);
Interactable::Item GetItem(const std::string& Name);
Interactable::Item GetItem(const std::vector<std::int32_t>& IDs);
Interactable::Item GetItem(const std::vector<std::string>& Names);
@ -39,12 +41,14 @@ namespace Inventory
bool IsItemSelected();
bool IsItemSelected(std::int32_t ID);
bool IsItemSelected(const std::regex& Name);
bool IsItemSelected(const std::string& Name);
bool IsItemSelected(const Interactable::Item& Item);
std::string GetItemSelectedName();
std::int32_t Count(std::int32_t ID);
std::int32_t Count(const std::regex& Name);
std::int32_t Count(const std::string& Name);
std::int32_t Count(const Interactable::Item& Item);
std::int32_t Count(const std::vector<std::int32_t>& IDs);
@ -55,20 +59,24 @@ namespace Inventory
std::int32_t CountEmpty();
std::int32_t GetIndexOf(std::int32_t ID);
std::int32_t GetIndexOf(const std::regex& Name);
std::int32_t GetIndexOf(const std::string& Name);
std::int32_t GetIndexOf(const std::vector<std::int32_t>& IDs); // Returns first found ID index
std::int32_t GetIndexOf(const std::vector<std::string>& Names); // Returns first found Name Index
std::vector<std::int32_t> GetIndicesOf(std::int32_t ID);
std::vector<std::int32_t> GetIndicesOf(const std::regex& Name);
std::vector<std::int32_t> GetIndicesOf(const std::string& Name);
std::vector<std::int32_t> GetIndicesOf(const std::vector<std::int32_t>& IDs);
std::vector<std::int32_t> GetIndicesOf(const std::vector<std::string>& Names);
std::vector<Box> GetSlotBoxes();
std::vector<Box> GetBoxesOf(std::int32_t ID);
std::vector<Box> GetBoxesOf(const std::regex& Name);
std::vector<Box> GetBoxesOf(const std::string& Name);
bool Contains(std::int32_t ID);
bool Contains(const std::regex& Name);
bool Contains(const std::string& Name);
bool Contains(const Interactable::Item& Item);
bool Contains(const std::vector<std::int32_t>& IDs); // true if all items are found at least once
@ -80,6 +88,7 @@ namespace Inventory
bool ContainsAny(const std::vector<Interactable::Item>& Items);
bool ContainsOnly(std::int32_t ID);
bool ContainsOnly(const std::regex& Name);
bool ContainsOnly(const std::string& Name);
bool ContainsOnly(const Interactable::Item& Item);
bool ContainsOnly(const std::vector<std::int32_t>& IDs);
@ -91,10 +100,12 @@ namespace Inventory
bool Use(const Interactable::Item& Item, const Interactable::Item& Item2 = Interactable::Item(), bool UseSecondFirst = false);
bool Equip(std::int32_t ID);
bool Equip(const std::regex& Name);
bool Equip(const std::string& Name);
bool Equip(const Interactable::Item& Item);
bool Drop(std::int32_t ID, bool AllowShiftClick = true);
bool Drop(const std::regex& Name, bool AllowShiftClick = true);
bool Drop(const std::string& Name, bool AllowShiftClick = true);
bool Drop(const Interactable::Item& Item, bool AllowShiftClick = true);
}

View File

@ -8,6 +8,7 @@
#include <string>
#include <vector>
#include <functional>
#include <regex>
/**
* @brief A namespace containing various functions related to the Mainscreen
@ -57,6 +58,7 @@ namespace Mainscreen
bool IsUpText(const std::string& UpText);
bool IsUpText(const std::vector<std::string>& UpTexts);
bool UpTextContains(const std::regex& Regex);
bool UpTextContains(const std::string& UpText);
bool UpTextContains(const std::vector<std::string>& UpTexts);
bool UpTextContains(const std::string& UpText, std::uint32_t CheckTime, std::uint32_t FailCheckTime);

View File

@ -5,6 +5,7 @@
#include <cstdint>
#include <string>
#include <vector>
#include <regex>
/**
* @brief A namespace containing various functions for the right-click menu
@ -125,6 +126,19 @@ namespace Menu
*/
std::tuple<std::int32_t, std::string, std::string> FindOption(std::uint32_t Index);
/**
* @brief Looks for a menu option containing the passed Regex, and returns information about the found option
*
* @param Regex %Menu regex to look for, the more specific, the more accurate the result will be
* @return std::tuple<bool, std::string, std::string>
* 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 rarely be inaccurate if the menu isn't open before calling this function
*/
std::tuple<std::int32_t, std::string, std::string> FindOption(const std::regex& Regex);
/**
* @brief Looks for a menu option containing the passed Option, and returns information about the found option
*
@ -151,6 +165,19 @@ namespace Menu
*/
std::tuple<std::int32_t, std::string, std::string> FindOption(const std::vector<std::string>& Options);
/**
* @brief Looks for a menu option containing the passed Regex, and returns information of all options that were found
*
* @param Regex %Menu regex to look for, the more specific the option, the more accurate the result will be
* @return std::vector<std::tuple<std::int32_t, std::string, std::string>>
* 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 rarely be inaccurate if the menu isn't open before calling this function
* @see Menu::IndexOf(const std::string& Option)
*/
std::vector<std::tuple<std::int32_t, std::string, std::string>> FindOptions(const std::regex& Regex);
/**
* @brief Looks for a menu option containing the passed Option, and returns information of all options that were found
*

View File

@ -6,6 +6,7 @@
#include <cstdint>
#include <vector>
#include <string>
#include <regex>
namespace DecorativeObjects
{
@ -13,6 +14,7 @@ namespace DecorativeObjects
std::vector<Interactable::DecorativeObject> GetAll();
std::vector<Interactable::DecorativeObject> GetAll(std::int32_t ID, std::int32_t Distance = -1);
std::vector<Interactable::DecorativeObject> GetAll(const std::regex& Name, std::int32_t Distance = -1);
std::vector<Interactable::DecorativeObject> GetAll(const std::string& Name, std::int32_t Distance = -1);
std::vector<Interactable::DecorativeObject> GetAll(const std::vector<std::int32_t>& IDs, std::int32_t Distance = -1);
std::vector<Interactable::DecorativeObject> GetAll(const std::vector<std::string>& Names, std::int32_t Distance = -1);
@ -20,6 +22,7 @@ namespace DecorativeObjects
Interactable::DecorativeObject Get(const Tile& T);
Interactable::DecorativeObject Get(std::int32_t ID, std::int32_t Distance = -1);
Interactable::DecorativeObject Get(const std::regex& Name, std::int32_t Distance = -1);
Interactable::DecorativeObject Get(const std::string& Name, std::int32_t Distance = -1);
Interactable::DecorativeObject Get(const std::vector<std::int32_t>& IDs, std::int32_t Distance = -1);
Interactable::DecorativeObject Get(const std::vector<std::string>& Names, std::int32_t Distance = -1);

View File

@ -6,6 +6,7 @@
#include <cstdint>
#include <vector>
#include <string>
#include <regex>
namespace GameObjects
{
@ -14,6 +15,7 @@ namespace GameObjects
std::vector<Interactable::GameObject> GetAll();
std::vector<Interactable::GameObject> GetAll(const Tile& T);
std::vector<Interactable::GameObject> GetAll(std::int32_t ID, std::int32_t Distance = -1);
std::vector<Interactable::GameObject> GetAll(const std::regex& Name, std::int32_t Distance = -1);
std::vector<Interactable::GameObject> GetAll(const std::string& Name, std::int32_t Distance = -1);
std::vector<Interactable::GameObject> GetAll(const std::vector<std::int32_t>& IDs, std::int32_t Distance = -1);
std::vector<Interactable::GameObject> GetAll(const std::vector<std::string>& Names, std::int32_t Distance = -1);
@ -21,6 +23,7 @@ namespace GameObjects
Interactable::GameObject Get(const Tile& T);
Interactable::GameObject Get(std::int32_t ID, std::int32_t Distance = -1);
Interactable::GameObject Get(const std::regex& Name, std::int32_t Distance = -1);
Interactable::GameObject Get(const std::string& Name, std::int32_t Distance = -1);
Interactable::GameObject Get(const std::vector<std::int32_t>& IDs, std::int32_t Distance = -1);
Interactable::GameObject Get(const std::vector<std::string>& Names, std::int32_t Distance = -1);

View File

@ -6,6 +6,7 @@
#include <cstdint>
#include <vector>
#include <string>
#include <regex>
namespace GroundItems
{
@ -14,6 +15,7 @@ namespace GroundItems
std::vector<Interactable::GroundItem> GetAll();
std::vector<Interactable::GroundItem> GetAll(const Tile& T);
std::vector<Interactable::GroundItem> GetAll(std::int32_t ID, std::int32_t Distance = -1);
std::vector<Interactable::GroundItem> GetAll(const std::regex& Name, std::int32_t Distance = -1);
std::vector<Interactable::GroundItem> GetAll(const std::string& Name, std::int32_t Distance = -1);
std::vector<Interactable::GroundItem> GetAll(const std::vector<std::int32_t>& IDs, std::int32_t Distance = -1);
std::vector<Interactable::GroundItem> GetAll(const std::vector<std::string>& Names, std::int32_t Distance = -1);
@ -21,6 +23,7 @@ namespace GroundItems
Interactable::GroundItem Get(const Tile& T);
Interactable::GroundItem Get(std::int32_t ID, std::int32_t Distance = -1);
Interactable::GroundItem Get(const std::regex& Name, std::int32_t Distance = -1);
Interactable::GroundItem Get(const std::string& Name, std::int32_t Distance = -1);
Interactable::GroundItem Get(const std::vector<std::int32_t>& IDs, std::int32_t Distance = -1);
Interactable::GroundItem Get(const std::vector<std::string>& Names, std::int32_t Distance = -1);

View File

@ -6,6 +6,7 @@
#include <cstdint>
#include <vector>
#include <string>
#include <regex>
namespace GroundObjects
{
@ -13,6 +14,7 @@ namespace GroundObjects
std::vector<Interactable::GroundObject> GetAll();
std::vector<Interactable::GroundObject> GetAll(std::int32_t ID, std::int32_t Distance = -1);
std::vector<Interactable::GroundObject> GetAll(const std::regex& Name, std::int32_t Distance = -1);
std::vector<Interactable::GroundObject> GetAll(const std::string& Name, std::int32_t Distance = -1);
std::vector<Interactable::GroundObject> GetAll(const std::vector<std::int32_t>& IDs, std::int32_t Distance = -1);
std::vector<Interactable::GroundObject> GetAll(const std::vector<std::string>& Names, std::int32_t Distance = -1);
@ -20,6 +22,7 @@ namespace GroundObjects
Interactable::GroundObject Get(const Tile& T);
Interactable::GroundObject Get(std::int32_t ID, std::int32_t Distance = -1);
Interactable::GroundObject Get(const std::regex& Name, std::int32_t Distance = -1);
Interactable::GroundObject Get(const std::string& Name, std::int32_t Distance = -1);
Interactable::GroundObject Get(const std::vector<std::int32_t>& IDs, std::int32_t Distance = -1);
Interactable::GroundObject Get(const std::vector<std::string>& Names, std::int32_t Distance = -1);

View File

@ -6,6 +6,7 @@
#include <cstdint>
#include <vector>
#include <string>
#include <regex>
namespace NPCs
{
@ -14,6 +15,7 @@ namespace NPCs
std::vector<Interactable::NPC> GetAll();
std::vector<Interactable::NPC> GetAll(const Tile& T);
std::vector<Interactable::NPC> GetAll(std::int32_t ID, std::int32_t Distance = -1);
std::vector<Interactable::NPC> GetAll(const std::regex& Name, std::int32_t Distance = -1);
std::vector<Interactable::NPC> GetAll(const std::string& Name, std::int32_t Distance = -1);
std::vector<Interactable::NPC> GetAll(const std::vector<std::int32_t>& IDs, std::int32_t Distance = -1);
std::vector<Interactable::NPC> GetAll(const std::vector<std::string>& Names, std::int32_t Distance = -1);
@ -21,6 +23,7 @@ namespace NPCs
Interactable::NPC Get(const Tile& T);
Interactable::NPC Get(std::int32_t ID, std::int32_t Distance = -1);
Interactable::NPC Get(const std::regex& Name, std::int32_t Distance = -1);
Interactable::NPC Get(const std::string& Name, std::int32_t Distance = -1);
Interactable::NPC Get(const std::vector<std::int32_t>& IDs, std::int32_t Distance = -1);
Interactable::NPC Get(const std::vector<std::string>& Names, std::int32_t Distance = -1);

View File

@ -6,6 +6,7 @@
#include <cstdint>
#include <vector>
#include <string>
#include <regex>
namespace Players
{
@ -14,11 +15,13 @@ namespace Players
std::vector<Interactable::Player> GetAll();
std::vector<Interactable::Player> GetAll(const Tile& Tile);
std::vector<Interactable::Player> GetAll(const std::regex& Name, std::int32_t Distance = -1);
std::vector<Interactable::Player> GetAll(const std::string& Name, std::int32_t Distance = -1);
std::vector<Interactable::Player> GetAll(const std::vector<std::string>& Names, std::int32_t Distance = -1);
std::vector<Interactable::Player> GetAll(const std::function<bool (Interactable::Player&)>& Filter, std::int32_t Distance = -1);
Interactable::Player Get(const Tile& Tile);
Interactable::Player Get(const std::regex& Name, std::int32_t Distance = -1);
Interactable::Player Get(const std::string& Name, std::int32_t Distance = -1);
Interactable::Player Get(const std::vector<std::string>& Names, std::int32_t Distance = -1);
Interactable::Player Get(const std::function<bool (const Interactable::Player&)>& Filter, std::int32_t Distance = -1);

View File

@ -6,6 +6,7 @@
#include <cstdint>
#include <vector>
#include <string>
#include <regex>
namespace WallObjects
{
@ -13,6 +14,7 @@ namespace WallObjects
std::vector<Interactable::WallObject> GetAll();
std::vector<Interactable::WallObject> GetAll(std::int32_t ID, std::int32_t Distance = -1);
std::vector<Interactable::WallObject> GetAll(const std::regex& Name, std::int32_t Distance = -1);
std::vector<Interactable::WallObject> GetAll(const std::string& Name, std::int32_t Distance = -1);
std::vector<Interactable::WallObject> GetAll(const std::vector<std::int32_t>& IDs, std::int32_t Distance = -1);
std::vector<Interactable::WallObject> GetAll(const std::vector<std::string>& Names, std::int32_t Distance = -1);
@ -20,6 +22,7 @@ namespace WallObjects
Interactable::WallObject Get(const Tile& T);
Interactable::WallObject Get(std::int32_t ID, std::int32_t Distance = -1);
Interactable::WallObject Get(const std::regex& Name, std::int32_t Distance = -1);
Interactable::WallObject Get(const std::string& Name, std::int32_t Distance = -1);
Interactable::WallObject Get(const std::vector<std::int32_t>& IDs, std::int32_t Distance = -1);
Interactable::WallObject Get(const std::vector<std::string>& Names, std::int32_t Distance = -1);

View File

@ -6,6 +6,7 @@
#include <functional>
#include <string>
#include <cstdint>
#include <regex>
namespace Interact
{
@ -15,14 +16,17 @@ namespace Interact
bool Click(const Button& B = BUTTON_LEFT);
bool Click(const Point& P, const Button& B = BUTTON_LEFT);
bool Click(const Point& P, const std::regex& Regex, const std::regex& Target = std::regex("(.*)"));
bool Click(const Point& P, const std::string& Option, const std::string& Target = "");
bool Click(const Point& P, const std::vector<std::string>& Options, const std::string& Target = "");
bool Click(const Box& B, const Button& Button = BUTTON_LEFT);
bool Click(const Box& B, const std::regex& Regex, const std::regex& Target = std::regex("(.*)"));
bool Click(const Box& B, const std::string& Option, const std::string& Target = "");
bool Click(const Box& B, const std::vector<std::string>& Options, const std::string& Target = "");
bool Click(const Convex& C, const Button& B = BUTTON_LEFT);
bool Click(const Convex& C, const std::regex& Regex, const std::regex& Target = std::regex("(.*)"));
bool Click(const Convex& C, const std::string& Option, const std::string& Target = "");
bool Click(const Convex& C, const std::vector<std::string>& Options, const std::string& Target = "");

Binary file not shown.