Table of Contents

Method IsValidResource

Namespace
Anvil.Services
Assembly
NWN.Anvil.dll

IsValidResource(string, ResRefType)

Determines if the supplied resource exists and is of the specified type.

public bool IsValidResource(string name, ResRefType type = ResRefType.UTC)

Parameters

name string

The resource name to check.

type ResRefType

The type of this resource.

Returns

bool

true if the supplied resource exists and is of the specified type, otherwise false.