Method FromItemType
FromItemType(BaseItemType)
Resolves a NwBaseItem from a BaseItemType.
public static NwBaseItem FromItemType(BaseItemType itemType)
Parameters
itemTypeBaseItemTypeThe item type to resolve.
Returns
- NwBaseItem
The associated NwBaseItem instance.
Exceptions
- ArgumentOutOfRangeException
Thrown if itemType is not a value defined in baseitems.2da.