Table of Contents

Method GetObject

Namespace
Anvil.API
Assembly
NWN.Anvil.dll

GetObject<T>(int, Location, NwGameObject?)

Gets the serialized object result for the specified column, and spawns the object at the specified location and inventory.

public T? GetObject<T>(int columnIndex, Location spawnLocation, NwGameObject? targetInventory = null) where T : NwObject

Parameters

columnIndex int

The 0-based index of the column to query.

spawnLocation Location

The location to spawn the object.

targetInventory NwGameObject

(Items only) The target inventory for the item.

Returns

T

The deserialized object. Returns null on an error.

Type Parameters

T

GetObject<T>(string, Location, NwGameObject?)

Gets the serialized object result for the specified column, and spawns the object at the specified location and inventory.

public T? GetObject<T>(string columnName, Location spawnLocation, NwGameObject? targetInventory = null) where T : NwObject

Parameters

columnName string

The name of the column to fetch the result.

spawnLocation Location

The location to spawn the object.

targetInventory NwGameObject

(Items only) The target inventory for the item.

Returns

T

The deserialized object. Returns null on an error.

Type Parameters

T