Struct VisibleTile
A tile as drawn: identity plus which horizontal world copy it occupies.
public readonly struct VisibleTile : IEquatable<VisibleTile>
- Implements
Remarks
Residency, cache, and pinning never see OffsetX. One resident tile can draw in several world copies.
Constructors
VisibleTile(TileCoord, int)
Creates a drawn tile at a world copy, rejecting an out-of-range offset.
public VisibleTile(TileCoord tile, int offsetX)
Parameters
Exceptions
Fields
MaxOffset
Largest absolute world-copy offset a drawn tile may carry.
public const int MaxOffset = 64
Field Value
Properties
OffsetX
public sbyte OffsetX { get; }
Property Value
Tile
XYZ address, offset-blind.
public TileCoord Tile { get; }
Property Value
Methods
Equals(VisibleTile)
Exact equality on identity and world copy.
public bool Equals(VisibleTile other)
Parameters
otherVisibleTile
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.
ToString()
Returns "z/x/y@offset".
public override string ToString()