nw::Resource
-
struct Resource
A
nw::Resourceconsists of anw::Resrefand anw::ResourceType. Since NWN1/EE doesn’t have any notion of hierarchical organization (paths, etc), it represents a fully-qualified resource identifier.Public Functions
-
Resource() noexcept
-
Resource(const Resref &resref_, ResourceType::type type_) noexcept
-
Resource(StringView resref_, ResourceType::type type_) noexcept
-
String filename() const
Gets a Resrefs file name with extension.
-
bool valid() const noexcept
A resource is valid if resref is not empty and resref type is not invalid.
-
Resource() noexcept