ManiaMap.Godot
Procedural generation of metroidvania style maps for Godot .NET.
AsyncResourceLoader Class Reference

Contains methods for loading Resources asynchronously. More...

Static Public Member Functions

static async Task< T > LoadAsync< T > (string path, string typeHint="", bool useSubThreads=false, ResourceLoader.CacheMode cacheMode=ResourceLoader.CacheMode.Reuse)
 Loads a Resource from file asynchronously. More...
 

Detailed Description

Contains methods for loading Resources asynchronously.

Definition at line 10 of file AsyncResourceLoader.cs.

Member Function Documentation

◆ LoadAsync< T >()

static async Task< T > LoadAsync< T > ( string  path,
string  typeHint = "",
bool  useSubThreads = false,
ResourceLoader.CacheMode  cacheMode = ResourceLoader.CacheMode.Reuse 
)
static

Loads a Resource from file asynchronously.

Parameters
pathThe resource path.
Exceptions
ThreadedResourceRequestExceptionThrown if an error occurs while loading.
Type Constraints
T :Resource 

Definition at line 17 of file AsyncResourceLoader.cs.


The documentation for this class was generated from the following file: