Table of Contents

Method GetTableEntry

Namespace
Anvil.API
Assembly
NWN.Anvil.dll

GetTableEntry<T>(int, string, TwoDimArray<T>)

Interprets the specified value as a table index, and returns the associated table entry.

public T? GetTableEntry<T>(int rowIndex, string columnName, TwoDimArray<T> table) where T : class, ITwoDimArrayEntry, new()

Parameters

rowIndex int

The index of the row to query.

columnName string

The name/label of the column to query.

table TwoDimArray<T>

The table that should be used to resolve the value.

Returns

T

The associated value, otherwise the default array entry value (typically null)

Type Parameters

T

The type of table entry.

GetTableEntry<T>(int, int, TwoDimArray<T>)

Interprets the specified value as a table index, and returns the associated table entry.

public T? GetTableEntry<T>(int rowIndex, int columnIndex, TwoDimArray<T> table) where T : class, ITwoDimArrayEntry, new()

Parameters

rowIndex int

The index of the row to query.

columnIndex int

The index of the column to query.

table TwoDimArray<T>

The table that should be used to resolve the value.

Returns

T

The associated value, otherwise the default array entry value (typically null)

Type Parameters

T

The type of table entry.