Table of Contents

Struct TargetStateComponent

Namespace
MoonBark.GridPlacement.Core.Services.Targeting
Assembly
MoonBark.GridPlacement.Core.dll

Component storing target state flags. Pure domain struct - no ECS dependency.

public readonly struct TargetStateComponent : IEquatable<TargetStateComponent>
Implements
Inherited Members

Fields

Default

public static readonly TargetStateComponent Default

Field Value

TargetStateComponent

Properties

IsLocked

public bool IsLocked { get; init; }

Property Value

bool

IsManualTargetingActive

public bool IsManualTargetingActive { get; init; }

Property Value

bool

IsReady

public bool IsReady { get; init; }

Property Value

bool

IsVisible

public bool IsVisible { get; init; }

Property Value

bool

LastUpdatedTimestamp

public long LastUpdatedTimestamp { get; init; }

Property Value

long

Methods

Equals(TargetStateComponent)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(TargetStateComponent other)

Parameters

other TargetStateComponent

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current instance.

Returns

bool

true if obj and 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 ==(TargetStateComponent, TargetStateComponent)

public static bool operator ==(TargetStateComponent left, TargetStateComponent right)

Parameters

left TargetStateComponent
right TargetStateComponent

Returns

bool

operator !=(TargetStateComponent, TargetStateComponent)

public static bool operator !=(TargetStateComponent left, TargetStateComponent right)

Parameters

left TargetStateComponent
right TargetStateComponent

Returns

bool