Table of Contents

Method GetTable

Namespace
Anvil.API
Assembly
NWN.Anvil.dll

GetTable<T>(string?, bool, bool)

Gets the specified 2d array table.

public static TwoDimArray<T>? GetTable<T>(string? twoDimArrayName, bool useCache = true, bool checkCacheType = true) where T : class, ITwoDimArrayEntry, new()

Parameters

twoDimArrayName string

The table name to query.

useCache bool

Enables/disables caching of the decoded 2da for future use.

checkCacheType bool

When using the cache, if the return type should be checked.

Returns

TwoDimArray<T>

Type Parameters

T

The type of entries contained in this 2da.

Exceptions

InvalidOperationException

Thrown if the entry type specified does not match the existing cache type and checkCacheType is set to true.

GetTable(string)

Gets the specified 2d array table.

public static TwoDimArray? GetTable(string twoDimArrayName)

Parameters

twoDimArrayName string

The table name to query.

Returns

TwoDimArray