AotEntitySerializer.RestoreWorldFromSnapshot(IEntityWorld, WorldSnapshot) Method
Definition
Namespace: Brine2D.ECS.Serialization
Restores entities from a snapshot into the world, preserving the parent–child hierarchy. Clears the existing world's entities first but leaves registered systems intact.
C#
public void RestoreWorldFromSnapshot(Brine2D.ECS.IEntityWorld world, Brine2D.ECS.Serialization.WorldSnapshot snapshot);
Parameters
world IEntityWorld
snapshot WorldSnapshot