-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathGroundItemInstance.cs
More file actions
25 lines (20 loc) · 930 Bytes
/
GroundItemInstance.cs
File metadata and controls
25 lines (20 loc) · 930 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
using ExileCore;
using ExileCore.PoEMemory;
using ExileCore.PoEMemory.Components;
using ExileCore.PoEMemory.Elements;
using ExileCore.PoEMemory.MemoryObjects;
using ExileCore.Shared.Helpers;
using SharpDX;
using Vector2 = System.Numerics.Vector2;
namespace UniqueFinder;
public class GroundItemInstance(LabelOnGround labelOnGround, WorldItem worldItem, Mods mods, RenderItem renderItem, string itemName, GameController gc)
{
public Entity WorldEntity => labelOnGround.ItemOnGround;
public Vector2 Location => WorldEntity.GridPosNum;
public float Distance => gc?.Player?.GridPosNum.Distance(Location) ?? float.MaxValue;
public ColorBGRA TextColor => labelOnGround.Label.TextColor;
public ColorBGRA BorderColor => labelOnGround.Label.BordColor;
public ColorBGRA BackgroundColor => labelOnGround.Label.BgColor;
public string ItemName => itemName;
public Element Label => labelOnGround.Label;
}