From 0ef13c68cb8ce233a921bc998de120e8bb7d533e Mon Sep 17 00:00:00 2001 From: karashiiro <49822414+karashiiro@users.noreply.github.com> Date: Wed, 5 Aug 2020 21:37:20 -0700 Subject: [PATCH] Implement IEquatable on Actor --- Dalamud/Game/ClientState/Actors/Types/Actor.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dalamud/Game/ClientState/Actors/Types/Actor.cs b/Dalamud/Game/ClientState/Actors/Types/Actor.cs index 431f3163f..d5088776c 100644 --- a/Dalamud/Game/ClientState/Actors/Types/Actor.cs +++ b/Dalamud/Game/ClientState/Actors/Types/Actor.cs @@ -4,7 +4,7 @@ namespace Dalamud.Game.ClientState.Actors.Types { /// /// This class represents a basic FFXIV actor. /// - public class Actor { + public class Actor : IEquatable { /// /// The memory representation of the base actor. /// @@ -70,5 +70,7 @@ namespace Dalamud.Game.ClientState.Actors.Types { /// The target of the actor /// public virtual int TargetActorID => 0; + + bool IEquatable.Equals(Actor other) => this.ActorId == other.ActorId; } }