Rebornbuddy
Loading...
Searching...
No Matches
ff14bot.Managers.CraftingMacroManager Class Reference

This classes primary function is the generation and then consumption of macros for crafting. More...

Public Member Functions

class CraftingMacro (bool success, CraftingInput input, int recipeId, int progressCur, int progressMax, int qualityCur, int qualityMax, int durabilityCur, int durabilityMax, int steps, int durationSec, string[] actions)
 Class that represents the output of the macro generator. Provides information like the quality and actions needed to be taken.

Static Public Member Functions

static async Task< CraftingMacroGenerateMacro (uint recipeId, uint timeoutS=120, int targetQualityPercent=100)
 This function will generate a sequence of actions that will craft an item. The algorithm will try to get quality as high as possible while ensuring 100% progress.
static async Task< uint > SearchRecipesByItemId (uint itemId, uint timeoutMS=10000)
 Searches for all recipes that can craft the specified item.
static Composite MacroConsumerComposite (ValueRetriever< CraftingMacro > macro)
static async Task< bool > MacroConsumer (CraftingMacro macro)

Properties

record CraftingInput [get]
 A record that indicates the state of the players stats and inventory that was used during macro generation.
record Ingredient

Detailed Description

This classes primary function is the generation and then consumption of macros for crafting.

Member Function Documentation

◆ CraftingMacro()

class ff14bot.Managers.CraftingMacroManager.CraftingMacro ( bool success,
CraftingInput input,
int recipeId,
int progressCur,
int progressMax,
int qualityCur,
int qualityMax,
int durabilityCur,
int durabilityMax,
int steps,
int durationSec,
string[] actions )

Class that represents the output of the macro generator. Provides information like the quality and actions needed to be taken.

A simple check to see if the players current state is the same as it was during the macro generation

◆ GenerateMacro()

async Task< CraftingMacro > ff14bot.Managers.CraftingMacroManager.GenerateMacro ( uint recipeId,
uint timeoutS = 120,
int targetQualityPercent = 100 )
static

This function will generate a sequence of actions that will craft an item. The algorithm will try to get quality as high as possible while ensuring 100% progress.

Parameters
recipeId
timeoutSHow long to let the macro generation take in seconds
targetQualityPercentWhat percentage should we aim for?
Returns

◆ MacroConsumer()

async Task< bool > ff14bot.Managers.CraftingMacroManager.MacroConsumer ( CraftingMacro macro)
static

◆ MacroConsumerComposite()

Composite ff14bot.Managers.CraftingMacroManager.MacroConsumerComposite ( ValueRetriever< CraftingMacro > macro)
static

◆ SearchRecipesByItemId()

async Task< uint > ff14bot.Managers.CraftingMacroManager.SearchRecipesByItemId ( uint itemId,
uint timeoutMS = 10000 )
static

Searches for all recipes that can craft the specified item.

Parameters
itemIdThe item ID to search recipes for
timeoutMSHow long to let the search take in MS
Returns
Array of RecipeInfo containing all recipes that can craft the item

Property Documentation

◆ CraftingInput

record ff14bot.Managers.CraftingMacroManager.CraftingInput
get

A record that indicates the state of the players stats and inventory that was used during macro generation.

◆ Ingredient

record ff14bot.Managers.CraftingMacroManager.Ingredient