Skip to content

ITilemapLoader.LoadAsync(string, CancellationToken) Method

Definition

Namespace: Brine2D.Tilemap

Loads a tilemap from a file.

C#
System.Threading.Tasks.Task<Brine2D.Tilemap.Tilemap> LoadAsync(string path, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken));

Parameters

path System.String

Path to the tilemap file.

cancellationToken System.Threading.CancellationToken

Cancellation token.

Returns

System.Threading.Tasks.Task<Tilemap>
Loaded tilemap.