Table of Contents

Struct ActionResult

Namespace
GrindFest
Assembly
GrindFest.dll

Result of a bot action like PickUp, Equip, DropInto, Attack, or InteractWith.

Three core states:

  • Failed — The action could not be performed (item is null, out of range, etc.)
  • InProgress — The hero is working on it (walking to target, animating, etc.)
  • Done — The action completed this frame

Implicitly converts to bool: true if InProgress or Done, false if Failed. This makes it easy to use in priority loops:

if (PickUp(item)) return; // hero is busy picking up — don't start another action

For precise checks, compare with ==:

var result = PickUp(item);
    if (result == ActionResult.Done) Say("Got it!");
    if (result == ActionResult.InProgress) Say("Walking there...");
public readonly struct ActionResult : IEquatable<ActionResult>
Implements

Fields

Done

The action completed successfully this frame.

Failed

The action could not be performed.

InProgress

The hero is working on the action (moving, animating, etc.).

Properties

IsDone

True if the action completed this frame.

IsFailed

True if the action failed.

IsWorking

True if the action is in progress or completed (not failed).

Methods

Equals(ActionResult)
Equals(object)
GetHashCode()
ToString()

Operators

operator ==(ActionResult, ActionResult)
implicit operator bool(ActionResult)

Converts to true if the hero is busy with this action (InProgress or Done), false if the action failed.

operator !=(ActionResult, ActionResult)