EntitySerializer.LoadAndRestoreWorldAsync(IEntityWorld, string, CancellationToken) Method
Definition¶
Namespace: Brine2D.ECS.Serialization
Loads and restores a world from a file. CLEARS the existing world first!
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