Method RunAroundInAreaAnd
- Namespace
- GrindFest
- Assembly
- GrindFest.dll
RunAroundInAreaAnd(Func<bool>)
Makes the hero run around in the current area while performing an action.
public bool RunAroundInAreaAnd(Func<bool> action)
Parameters
Returns
- bool
True if the action was completed, false if still running around
Remarks
This method is useful for combining area exploration with other activities.
RunAroundInAreaAnd(() => {
var item = FindNearestItem("Gold");
if (item != null)
{
return PickUp(item);
}
return false;
});