Class InteractionTargetCacheComparer
A custom comparer that ignores differences in HitPos, HitNormal and UncachedParams.
Inheritance
System.Object
InteractionTargetCacheComparer
Assembly: Eco.Shared.dll
Syntax
public class InteractionTargetCacheComparer : Object, IEqualityComparer<InteractionTarget>
Constructors
InteractionTargetCacheComparer()
Declaration
public InteractionTargetCacheComparer()
Methods
Equals(InteractionTarget, InteractionTarget)
Declaration
public bool Equals(InteractionTarget x, InteractionTarget y)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
EqualsTest(InteractionTarget, InteractionTarget, Boolean)
Excluded HitPos, HitNormal, and uncahced params, so targets can be considered same even if pointer is pointing at a different spot
Declaration
public static bool EqualsTest(InteractionTarget x, InteractionTarget y, bool ignoreNormals)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
GetHashCode(InteractionTarget)
Excluded hitpos and hitnormal from hashcode generation, hit information is not relevant to target comparison
Declaration
public int GetHashCode(InteractionTarget target)
Parameters
Returns
| Type |
Description |
| System.Int32 |
|
GetHashCodeStatic(InteractionTarget)
Declaration
public static int GetHashCodeStatic(InteractionTarget target)
Parameters
Returns
| Type |
Description |
| System.Int32 |
|
Implements
System.Collections.Generic.IEqualityComparer<>
Extension Methods