Table of Contents

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

int

IsFlippedHorizontal

public bool IsFlippedHorizontal { get; init; }

Property Value

bool

IsFlippedVertical

public bool IsFlippedVertical { get; init; }

Property Value

bool

IsPreviewMode

public bool IsPreviewMode { get; init; }

Property Value

bool

Rotation

public int Rotation { get; init; }

Property Value

int

SourceEntityId

public int SourceEntityId { get; init; }

Property Value

int

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

other MoveGhostState

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 ==(MoveGhostState, MoveGhostState)

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

Parameters

left MoveGhostState
right MoveGhostState

Returns

bool

operator !=(MoveGhostState, MoveGhostState)

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

Parameters

left MoveGhostState
right MoveGhostState

Returns

bool