Scripting API

Scripting API

SnapshotRestore

Record in Abyss.Core, from Abyss.Core.

What putting a WorldSnapshot back did.

public record SnapshotRestore

Constructors

SnapshotRestore

public SnapshotRestore(IReadOnlyList<(ulong Was, ulong Is)> Respawned, int Despawned)

What putting a WorldSnapshot back did.

Parameters

  • Respawned: Entities that had gone and are back, as their old id and their new one: Bevy gives an id out once, so something that pointed at the old one — a selection — has to be pointed at the new.
  • Despawned: How many entities that appeared since were taken away.

Properties

Respawned

public IReadOnlyList<(ulong Was, ulong Is)> Respawned { get; init; }

Entities that had gone and are back, as their old id and their new one: Bevy gives an id out once, so something that pointed at the old one — a selection — has to be pointed at the new.

Despawned

public int Despawned { get; init; }

How many entities that appeared since were taken away.