Struct TargetReferencesComponent
- Namespace
- MoonBark.GridPlacement.Core.Services.Targeting
- Assembly
- MoonBark.GridPlacement.Core.dll
Component storing target node references. Pure domain struct - no ECS dependency.
public readonly struct TargetReferencesComponent : IEquatable<TargetReferencesComponent>
- Implements
- Inherited Members
Fields
Default
public static readonly TargetReferencesComponent Default
Field Value
Properties
PositionerId
public string PositionerId { get; init; }
Property Value
TargetId
public string TargetId { get; init; }
Property Value
TargetMapId
public string TargetMapId { get; init; }
Property Value
Methods
Equals(TargetReferencesComponent)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(TargetReferencesComponent other)
Parameters
otherTargetReferencesComponentAn object to compare with this object.
Returns
Equals(object?)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current instance.
Returns
- bool
true if
objand this instance are the same type and represent the same value; otherwise, false.
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()
Returns
- int
A 32-bit signed integer that is the hash code for this instance.
Operators
operator ==(TargetReferencesComponent, TargetReferencesComponent)
public static bool operator ==(TargetReferencesComponent left, TargetReferencesComponent right)
Parameters
Returns
operator !=(TargetReferencesComponent, TargetReferencesComponent)
public static bool operator !=(TargetReferencesComponent left, TargetReferencesComponent right)