Vixen
caa30e12
csharp
public sealed class ContainerResult

What happened when a transaction was applied.

Read the guide page for this →

Remarks

The change list is what a ledger entry is written from. Doc 28 § Inventory: a mutation that crosses an ownership boundary is recorded in doc 27's ledger. The kernel does not know what an owner is, so it reports what moved and the caller decides whether that crossed one.

Fields and properties (5)

  • public static ContainerResult Empty

    Nothing was asked for, and nothing went wrong.

  • public ContainerFailure Failure

    Why it did not apply, or None.

  • public bool Applied

    Whether it applied.

  • public string Message

    What went wrong, in a sentence, or the empty string.

  • public IReadOnlyList<ContainerChange> Changes

    What moved, in order. Empty when it did not apply.

Used by (5)

  • AtomicityTestsVixen.Gameplay.Inventory.Tests
  • BindingTestsVixen.Gameplay.Inventory.Tests
  • ConservationOracleTestsVixen.Gameplay.Inventory.Tests
  • ContainerSetVixen.Gameplay.Inventory
  • ContainerTransactionTestsVixen.Gameplay.Inventory.Tests