Skip to content

AotEntitySerializer.LoadAndRestoreWorldAsync(IEntityWorld, string, CancellationToken) Method

Definition

Namespace: Brine2D.ECS.Serialization

Loads and restores a world from a file. Clears the existing world first.

C#
public System.Threading.Tasks.Task LoadAndRestoreWorldAsync(Brine2D.ECS.IEntityWorld world, string path, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken));

Parameters

world IEntityWorld

path System.String

cancellationToken System.Threading.CancellationToken

Returns

System.Threading.Tasks.Task