Table of Contents

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

tile TileCoord

XYZ address, offset-blind.

offsetX int

Horizontal world copy, 0 = canonical world.

Exceptions

ArgumentOutOfRangeException

offsetX is outside -MaxOffset to MaxOffset.

Fields

MaxOffset

Largest absolute world-copy offset a drawn tile may carry.

public const int MaxOffset = 64

Field Value

int

Properties

OffsetX

Horizontal world copy, 0 = canonical world, range -MaxOffset to MaxOffset.

public sbyte OffsetX { get; }

Property Value

sbyte

Tile

XYZ address, offset-blind.

public TileCoord Tile { get; }

Property Value

TileCoord

Methods

Equals(VisibleTile)

Exact equality on identity and world copy.

public bool Equals(VisibleTile other)

Parameters

other VisibleTile

Returns

bool

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.

ToString()

Returns "z/x/y@offset".

public override string ToString()

Returns

string