Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Delay whenever crafting is paused PauseDelay = 1 * time.Second // Duration of potion buff PotionDuration = 15 * time.Minute // Delay after key press KeyDelay = 500 * time.Millisecond // Delay for starting craft animations StartCraftDelay = 1500 * time.Millisecond // Delay for ending craft animations EndCraftDelay = 2500 * time.Millisecond )
Variables ¶
View Source
var ( // Holds results to print out at exit Results = []Result{} )
Functions ¶
func PrintResults ¶
func PrintResults()
PrintResults prints the results to stdout once XIVCrafter stops running
Types ¶
type Crafter ¶
type Crafter struct { Status int CurrentAmount int FoodCount int PotionCount int Paused bool StopCrafterContext context.Context StopCrafterCancelFunc context.CancelFunc StopHooksContext context.Context StopHooksCancelFunc context.CancelFunc // contains filtered or unexported fields }
func NewCrafter ¶
NewCrafter returns a pointer to a Crafter struct
func (*Crafter) ExitProgram ¶
func (c *Crafter) ExitProgram()
ExitProgram sets the running value to false and the paused value to true
func (*Crafter) StartProgram ¶
func (c *Crafter) StartProgram()
StartProgram sets the paused value to false
func (*Crafter) StopProgram ¶
func (c *Crafter) StopProgram()
StopProgram sets the paused value to true
Click to show internal directories.
Click to hide internal directories.