Rotorz Tile System Icon
Rotorz Tile System for Unity
API Reference
Available on the Unity Asset Store
TOC

TileIndex Structure

Two-dimensional index of tile in a tile system.
[SerializableAttribute]
public struct TileIndex : IEquatable<TileIndex>
[SerializableAttribute]
public struct TileIndeximplements IEquatable<TileIndex>

Constructors

TileIndex(Int32, Int32)
Initializes a new instance of the TileIndex struct.

Methods

Equals(Object)
Determines whether the specified Object is equal to the current TileIndex.
(Overrides ValueType.Equals(Object).)
Equals(TileIndex)
Determines whether the specified TileIndex is equal to the current TileIndex.
GetHashCode()
Serves as a hash function for a TileIndex object.
(Overrides ValueType.GetHashCode().)
ToString()
Returns a String that represents the current TileIndex.
(Overrides ValueType.ToString().)

Operators

Addition(TileIndex, TileIndex)
Add row and column indices of two TileIndex arguments.
Equality(TileIndex, TileIndex)
Determines whether a specified instance of TileIndex is equal to another specified TileIndex.
Inequality(TileIndex, TileIndex)
Determines whether a specified instance of TileIndex is not equal to another specified TileIndex.
Subtraction(TileIndex, TileIndex)
Subtract row and column indices of two TileIndex arguments.
UnaryNegation(TileIndex)
Negate row and column indices of TileIndex argument.

Fields

column
Zero-based column index.
invalid
Represents an invalid tile index.
row
Zero-based row index.
zero
Index of first tile in system.

Properties

EqualityComparer
Gets the IEqualityComparer<T> that should be passed to generic collections of TileIndex values instead of the default EqualityComparer implementation when deploying to platforms that require AOT.

See Also

Reference