Skip to content

AsepriteClipLoader.LoadAsync Method

Definition

Namespace: Brine2D.Animation

Overloads
LoadAsync(string, ITexture, string, string, CancellationToken) Loads all tagged animation clips from an Aseprite JSON export file.
LoadAsync(Stream, ITexture, string, string, string, CancellationToken) Loads all tagged animation clips from a System.IO.Stream containing Aseprite JSON.
LoadAsync(ReadOnlyMemory<byte>, ITexture, string, string, string, CancellationToken) Loads all tagged animation clips from a UTF-8 encoded Aseprite JSON payload in memory.

AsepriteClipLoader.LoadAsync(string, ITexture, string, string, CancellationToken) Method

Loads all tagged animation clips from an Aseprite JSON export file.

public System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<Brine2D.Animation.AnimationClip>> LoadAsync(string path, Brine2D.Rendering.ITexture? texture=null, string? texturePath=null, string defaultClipName="default", System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken));

Parameters

path System.String

texture ITexture

texturePath System.String

defaultClipName System.String

cancellationToken System.Threading.CancellationToken

Returns

System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<AnimationClip>>

AsepriteClipLoader.LoadAsync(Stream, ITexture, string, string, string, CancellationToken) Method

Loads all tagged animation clips from a System.IO.Stream containing Aseprite JSON.

public System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<Brine2D.Animation.AnimationClip>> LoadAsync(System.IO.Stream stream, Brine2D.Rendering.ITexture? texture=null, string? texturePath=null, string sourceName="<stream>", string defaultClipName="default", System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken));

Parameters

stream System.IO.Stream

texture ITexture

texturePath System.String

sourceName System.String

defaultClipName System.String

cancellationToken System.Threading.CancellationToken

Returns

System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<AnimationClip>>

AsepriteClipLoader.LoadAsync(ReadOnlyMemory\<byte>, ITexture, string, string, string, CancellationToken) Method

Loads all tagged animation clips from a UTF-8 encoded Aseprite JSON payload in memory.

public System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<Brine2D.Animation.AnimationClip>> LoadAsync(System.ReadOnlyMemory<byte> utf8Json, Brine2D.Rendering.ITexture? texture=null, string? texturePath=null, string sourceName="<memory>", string defaultClipName="default", System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken));

Parameters

utf8Json System.ReadOnlyMemory<System.Byte>

texture ITexture

texturePath System.String

sourceName System.String

defaultClipName System.String

cancellationToken System.Threading.CancellationToken

Returns

System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<AnimationClip>>