Scripting API

Scripting API

Unpacked

Record in Abyss.Core.Scenes, from Abyss.Core.

What unpacking an instance took from its entities and gave them: what packs it again.

public record Unpacked

Constructors

Unpacked

public Unpacked(AssetGuid Prefab, IReadOnlyList<(ulong Entity, ulong Id)> Unnamed, IReadOnlyList<(ulong Entity, AssetGuid Prefab)> Unparted, IReadOnlyList<(ulong Entity, AssetGuid Prefab)> Marked, IReadOnlyList<(ulong Entity, AssetGuid Prefab)> Unmarked)

What unpacking an instance took from its entities and gave them: what packs it again.

Parameters

  • Prefab: What it was an instance of.
  • Unnamed: Each entity whose prefab's name for it was taken, and the name.
  • Unparted: Each entity made the scene's that was a prefab's part, and whose; see PrefabPart.
  • Marked: Each instance it held, made an instance of its own: its root, and of what.
  • Unmarked: Each instance the scene added inside it that was unpacked with it: its root, and of what.

Properties

Prefab

public AssetGuid Prefab { get; init; }

What it was an instance of.

Unnamed

public IReadOnlyList<(ulong Entity, ulong Id)> Unnamed { get; init; }

Each entity whose prefab's name for it was taken, and the name.

Unparted

public IReadOnlyList<(ulong Entity, AssetGuid Prefab)> Unparted { get; init; }

Each entity made the scene's that was a prefab's part, and whose; see PrefabPart.

Marked

public IReadOnlyList<(ulong Entity, AssetGuid Prefab)> Marked { get; init; }

Each instance it held, made an instance of its own: its root, and of what.

Unmarked

public IReadOnlyList<(ulong Entity, AssetGuid Prefab)> Unmarked { get; init; }

Each instance the scene added inside it that was unpacked with it: its root, and of what.