Skip to content

EntitySerializer.SaveWorldAsync(IEntityWorld, string, CancellationToken) Method

Definition

Namespace: Brine2D.ECS.Serialization

Saves a world snapshot to a file.

public System.Threading.Tasks.Task SaveWorldAsync(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