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...
 

Properties

static int ThreadStatusCheckDelay [getset]
 The delay time in milliseconds between each resource load status check. More...
 

Static Private Attributes

static int _threadStatusCheckDelay = 16
 

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 23 of file AsyncResourceLoader.cs.

Member Data Documentation

◆ _threadStatusCheckDelay

int _threadStatusCheckDelay = 16
staticprivate

Definition at line 12 of file AsyncResourceLoader.cs.

Property Documentation

◆ ThreadStatusCheckDelay

int ThreadStatusCheckDelay
staticgetset

The delay time in milliseconds between each resource load status check.

Definition at line 16 of file AsyncResourceLoader.cs.


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