Wiki

Clone wiki

RogueSharp / RogueSharp / Map / IndexFor

MapIndexFor Method (Cell)

Get the single dimensional array index for the specified Cell

Namespace: RogueSharp
Assembly:

Syntax

public int IndexFor(
    Cell cell
)

Parameters

cell

Type: RogueSharpCell
The Cell to get the index for

Return Value

Type: Int32
An index for the Cell which is useful if storing Cells in a single dimensional array

Implements

IMapIndexFor(Cell)

Exceptions

Exception Condition
ArgumentNullException Thrown on null cell

See Also

Reference

Map Class
RogueSharp Namespace

[5]: 2014-2016 Faron Bracy

Updated