Table of Contents

Method GetTableEntry

Namespace
Anvil.API
Assembly
NWN.Anvil.dll

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

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

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

Parameters

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, TwoDimArray<T>)

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

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

Parameters

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.