Release 0.03
parent
7e47548f4b
commit
02ec43cfea
|
@ -7,11 +7,9 @@ class Object
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
void* Obj;
|
void* Obj;
|
||||||
|
|
||||||
Object();
|
Object();
|
||||||
Object(const void* Obj);
|
Object(const void* Obj);
|
||||||
Object(const Object& O);
|
Object(const Object& O);
|
||||||
void* Get() const;
|
|
||||||
Object& operator=(const Object& O);
|
Object& operator=(const Object& O);
|
||||||
bool operator==(const Object& O) const;
|
bool operator==(const Object& O) const;
|
||||||
bool operator!=(const Object& O) const;
|
bool operator!=(const Object& O) const;
|
||||||
|
|
|
@ -15,7 +15,7 @@ class Bank
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
/**
|
/**
|
||||||
* @brief Returns True if the Bank is currently Open
|
* @brief Returns true if the Bank is currently Open
|
||||||
* @return True if the Bank is currently Open
|
* @return True if the Bank is currently Open
|
||||||
* @par Example
|
* @par Example
|
||||||
* @code
|
* @code
|
||||||
|
@ -26,7 +26,7 @@ class Bank
|
||||||
static bool IsOpen();
|
static bool IsOpen();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Attempts to Close the Bank if it's Currently Open, returns True if the Bank is currently Closed
|
* @brief Attempts to Close the Bank if it's Currently Open, returns true if the Bank is currently Closed
|
||||||
* @return Returns True if the is successfully Closed, or the Bank is already Closed
|
* @return Returns True if the is successfully Closed, or the Bank is already Closed
|
||||||
* @par Example
|
* @par Example
|
||||||
* @code
|
* @code
|
||||||
|
@ -117,7 +117,7 @@ class Bank
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Returns True if the Bank contains the specified Item matching the passed ID
|
* @brief Returns true if the Bank contains the specified Item matching the passed ID
|
||||||
* @return True if the Bank contains the specified Item matching the passed ID
|
* @return True if the Bank contains the specified Item matching the passed ID
|
||||||
* @par Example
|
* @par Example
|
||||||
* @code
|
* @code
|
||||||
|
@ -126,9 +126,8 @@ class Bank
|
||||||
* @endcode
|
* @endcode
|
||||||
*/
|
*/
|
||||||
static bool Contains(std::int32_t ID);
|
static bool Contains(std::int32_t ID);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Returns True if the Bank contains the specified Item matching the passed Name
|
* @brief Returns true if the Bank contains the specified Item matching the passed Name
|
||||||
* @return True if the Bank contains the specified Item matching the passed Name
|
* @return True if the Bank contains the specified Item matching the passed Name
|
||||||
* @par Example
|
* @par Example
|
||||||
* @code
|
* @code
|
||||||
|
@ -137,29 +136,49 @@ class Bank
|
||||||
* @endcode
|
* @endcode
|
||||||
*/
|
*/
|
||||||
static bool Contains(const std::string& Name);
|
static bool Contains(const std::string& Name);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Returns True if the Bank contains any of the specified Item matching the passed IDs
|
* @brief Returns true if the Bank contains all passed Item IDs, at least once
|
||||||
* @return True if the Bank contains any of the specified Item matching the passed IDs
|
* @return True if the Bank contains all passed Item IDs, at least once
|
||||||
* @par Example
|
|
||||||
* @code
|
|
||||||
* if (!Bank::Contains(std::vector<std::int32_t> { 995, 207, 584 }))
|
|
||||||
* return false;
|
|
||||||
* @endcode
|
|
||||||
*/
|
*/
|
||||||
static bool Contains(const std::vector<std::int32_t>& IDs);
|
static bool Contains(const std::vector<std::int32_t>& IDs);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Returns True if the Bank contains any of the specified Item matching the passed Names
|
* @brief Returns true if the Bank contains all passed Item Names, at least once
|
||||||
* @return True if the Bank contains any of the specified Item matching the passed Names
|
* @return True if the Bank contains all passed Item Item Names, at least once
|
||||||
* @par Example
|
|
||||||
* @code
|
|
||||||
* if (!Bank::Contains(std::vector<std::int32_t> { "Coins", "Oak Logs", "Air Runes" }))
|
|
||||||
* return false;
|
|
||||||
* @endcode
|
|
||||||
*/
|
*/
|
||||||
static bool Contains(const std::vector<std::string>& Names);
|
static bool Contains(const std::vector<std::string>& Names);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Returns true if the Bank contains any of the passed IDs, at least once
|
||||||
|
* @return True if the Bank contains any of the passed Item IDs, at least once
|
||||||
|
*/
|
||||||
|
static bool ContainsAny(const std::vector<std::int32_t>& IDs);
|
||||||
|
/**
|
||||||
|
* @brief Returns true if the Bank contains any of the passed Item Names, at least once
|
||||||
|
* @return True if the Bank contains any of the passed Item Names, at least once
|
||||||
|
*/
|
||||||
|
static bool ContainsAny(const std::vector<std::string>& Names);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Returns true if the Bank only contains the passed Item ID
|
||||||
|
* @return True if the Bank only contains the passed Item ID
|
||||||
|
*/
|
||||||
|
static bool ContainsOnly(std::int32_t ID);
|
||||||
|
/**
|
||||||
|
* @brief Returns true if the Bank only contains the passed Item Name
|
||||||
|
* @return True if the Bank only contains the passed Item Name
|
||||||
|
*/
|
||||||
|
static bool ContainsOnly(const std::string& Name);
|
||||||
|
/**
|
||||||
|
* @brief Returns true if the Bank only contains the passed Item IDs
|
||||||
|
* @return True if the Bank only contains the passed Item IDs
|
||||||
|
*/
|
||||||
|
static bool ContainsOnly(const std::vector<std::int32_t>& IDs);
|
||||||
|
/**
|
||||||
|
* @brief Returns true if the Bank only contains the passed Item Names
|
||||||
|
* @return True if the Bank only contains the passed Item Names
|
||||||
|
*/
|
||||||
|
static bool ContainsOnly(const std::vector<std::string>& Names);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Returns the currently active Bank Tab
|
* @brief Returns the currently active Bank Tab
|
||||||
* @return The currently active Bank Tab
|
* @return The currently active Bank Tab
|
||||||
|
@ -210,7 +229,7 @@ class Bank
|
||||||
/**
|
/**
|
||||||
* @brief Attempts to Scroll to the specified Item matching the passed ID
|
* @brief Attempts to Scroll to the specified Item matching the passed ID
|
||||||
* @return True if it successfully scrolls to the specified Item matching the passed ID
|
* @return True if it successfully scrolls to the specified Item matching the passed ID
|
||||||
* @note Returns True if the Item is already in view
|
* @note Returns true if the Item is already in view
|
||||||
* @par Example
|
* @par Example
|
||||||
* @code
|
* @code
|
||||||
* if (Bank::Contains(995))
|
* if (Bank::Contains(995))
|
||||||
|
@ -222,7 +241,7 @@ class Bank
|
||||||
/**
|
/**
|
||||||
* @brief Attempts to Scroll to the specified Item matching the passed Name
|
* @brief Attempts to Scroll to the specified Item matching the passed Name
|
||||||
* @return True if it successfully scrolls to the specified Item matching the passed Name
|
* @return True if it successfully scrolls to the specified Item matching the passed Name
|
||||||
* @note Returns True if the Item is already in view
|
* @note Returns true if the Item is already in view
|
||||||
* @par Example
|
* @par Example
|
||||||
* @code
|
* @code
|
||||||
* if (Bank::Contains("Coins"))
|
* if (Bank::Contains("Coins"))
|
||||||
|
@ -233,7 +252,7 @@ class Bank
|
||||||
/**
|
/**
|
||||||
* @brief Attempts to Scroll to the specified Item matching the passed Name, and optionally Opens the Tab
|
* @brief Attempts to Scroll to the specified Item matching the passed Name, and optionally Opens the Tab
|
||||||
* @return True if it successfully scrolls to the specified Item matching the passed Name
|
* @return True if it successfully scrolls to the specified Item matching the passed Name
|
||||||
* @note Returns True if the Item is already in view
|
* @note Returns true if the Item is already in view
|
||||||
* @par Example
|
* @par Example
|
||||||
* @code
|
* @code
|
||||||
* if (Bank::Contains("Coins"))
|
* if (Bank::Contains("Coins"))
|
||||||
|
|
|
@ -48,6 +48,9 @@ class Equipment
|
||||||
static bool Contains(const std::vector<std::int32_t>& IDs);
|
static bool Contains(const std::vector<std::int32_t>& IDs);
|
||||||
static bool Contains(const std::vector<std::string>& Names);
|
static bool Contains(const std::vector<std::string>& Names);
|
||||||
|
|
||||||
|
static bool ContainsAny(const std::vector<std::int32_t>& IDs);
|
||||||
|
static bool ContainsAny(const std::vector<std::string>& Names);
|
||||||
|
|
||||||
static bool ContainsOnly(std::int32_t ID);
|
static bool ContainsOnly(std::int32_t ID);
|
||||||
static bool ContainsOnly(const std::string& Name);
|
static bool ContainsOnly(const std::string& Name);
|
||||||
static bool ContainsOnly(const std::vector<std::int32_t>& IDs);
|
static bool ContainsOnly(const std::vector<std::int32_t>& IDs);
|
||||||
|
|
|
@ -61,8 +61,8 @@ class Inventory
|
||||||
|
|
||||||
static bool Contains(std::int32_t ID);
|
static bool Contains(std::int32_t ID);
|
||||||
static bool Contains(const std::string& Name);
|
static bool Contains(const std::string& Name);
|
||||||
static bool Contains(const std::vector<std::int32_t>& IDs);
|
static bool Contains(const std::vector<std::int32_t>& IDs); // true if all items are found at least once
|
||||||
static bool Contains(const std::vector<std::string>& Names);
|
static bool Contains(const std::vector<std::string>& Names); // true if all items are found at least once
|
||||||
|
|
||||||
static bool ContainsAny(const std::vector<std::int32_t>& IDs);
|
static bool ContainsAny(const std::vector<std::int32_t>& IDs);
|
||||||
static bool ContainsAny(const std::vector<std::string>& Names);
|
static bool ContainsAny(const std::vector<std::string>& Names);
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue