Method GetObject
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
columnIndexintThe 0-based index of the column to query.
spawnLocationLocationThe location to spawn the object.
targetInventoryNwGameObject(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
columnNamestringThe name of the column to fetch the result.
spawnLocationLocationThe location to spawn the object.
targetInventoryNwGameObject(Items only) The target inventory for the item.
Returns
- T
The deserialized object. Returns null on an error.
Type Parameters
T