Struct MoveGhostState
- Namespace
- MoonBark.GridPlacement.Core.Interfaces
- Assembly
- MoonBark.GridPlacement.Core.dll
Represents the current state of a move ghost entity.
public readonly struct MoveGhostState : IEquatable<MoveGhostState>
- Implements
- Inherited Members
Properties
GhostEntityId
public int GhostEntityId { get; init; }
Property Value
IsFlippedHorizontal
public bool IsFlippedHorizontal { get; init; }
Property Value
IsFlippedVertical
public bool IsFlippedVertical { get; init; }
Property Value
IsPreviewMode
public bool IsPreviewMode { get; init; }
Property Value
Rotation
public int Rotation { get; init; }
Property Value
SourceEntityId
public int SourceEntityId { get; init; }
Property Value
TargetGridPosition
public CoreVector2I TargetGridPosition { get; init; }
Property Value
- CoreVector2I
Methods
Equals(MoveGhostState)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(MoveGhostState other)
Parameters
otherMoveGhostStateAn 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 ==(MoveGhostState, MoveGhostState)
public static bool operator ==(MoveGhostState left, MoveGhostState right)
Parameters
leftMoveGhostStaterightMoveGhostState
Returns
operator !=(MoveGhostState, MoveGhostState)
public static bool operator !=(MoveGhostState left, MoveGhostState right)
Parameters
leftMoveGhostStaterightMoveGhostState