public static uint ExilePather.AddBoxObstacle(Vector2i min, Vector2i max, string description = null)
Add a box obstacle to tile cache
uintNo current DPB page is linked for this built-in, external, generic or compatibility-only type.Parameters
min- Parameter type:
Vector2icorner of the box
max- Parameter type:
Vector2iopposing corner of the box
description- Parameter type:
stringNo current DPB page is linked for this built-in, external, generic or compatibility-only type.Specifies description. Optional; the default is shown in the signature.
Returns: Reference to obstacle or uint.MaxValue on error
Caller is supposed to call DreamPoeBot.Loki.Bot.Pathfinding.ExilePather.UpdateObstacles to refresh the tilecache after Corners should be opposing pair, i.e. BottomRight + TopLeft or BottomLeft + TopRight, other way also works (i.e. min and max can be swapped).