PackList.randomGlob

Get a random resource under a file matching the pattern.

class PackList
@trusted
Resource!string
randomGlob
(
RNG
)
(
string path
,
RNG rng
)
if (
isUniformRNG!RNG
)

Parameters

path string

File path to look for.

Return Value

Type: Resource!string

A tuple with path to the file and options of the resource.

Throws

IsodiException if the path wasn't found in any of the packs.

Meta