From e16a8eb9174cb9957dc7cf10ca830e1330b6feab Mon Sep 17 00:00:00 2001 From: Eureka Date: Fri, 27 Nov 2026 22:27:17 +0000 Subject: [PATCH] Thing contract: Slot node, arm 13, in Rust, C# and TypeScript (thing2:ruling:composition-slot-node) (#9) --- crates/thing-contract/src/node.rs | 17 ++++++++-- crates/thing-contract/tests/goldens.rs | 20 +++++++++--- crates/thing-contract/tests/goldens/README.md | 6 ++-- .../tests/goldens/composition-all-params.bin | Bin 812 -> 821 bytes .../tests/goldens/nil-positions.tsv | 11 +++++-- .../tests/goldens/node-unknown-arm.bin | 2 +- .../thing-contract/tests/goldens/surface.cc | Bin 7699 -> 7708 bytes crates/thing-testkit/tests/fixtures.rs | 3 ++ packages/GameCult.Thing.Contract/Node.cs | 17 ++++++++++ packages/GameCult.Thing.Contract/Source.cs | 15 +++++++++ packages/thing-contract/src/codecs.ts | 4 +++ packages/thing-contract/src/types.ts | 11 ++++++- packages/thing-contract/test/builders.ts | 2 +- packages/thing-contract/test/codecs.test.ts | 22 ++++++++++--- packages/thing-contract/test/names.test.ts | 8 +++-- packages/thing-contract/test/refusals.test.ts | 2 +- .../GameCult.Thing.Contract.Tests/Builders.cs | 2 +- .../GoldenTests.cs | 2 +- .../SlotNodeTests.cs | 30 ++++++++++++++++++ tests/thing-contract-parity/README.md | 2 +- tests/thing-contract-parity/type-names.txt | 2 ++ tests/thing-contract-parity/written-by-cs.cc | Bin 13924 -> 13933 bytes tests/thing-contract-parity/written-by-ts.cc | Bin 12990 -> 12999 bytes 23 files changed, 152 insertions(+), 26 deletions(-) create mode 100644 tests/GameCult.Thing.Contract.Tests/SlotNodeTests.cs diff --git a/crates/thing-contract/src/node.rs b/crates/thing-contract/src/node.rs index 622e171..7a0d169 100644 --- a/crates/thing-contract/src/node.rs +++ b/crates/thing-contract/src/node.rs @@ -1,12 +1,14 @@ //! Thing Script: the closed node union, the surface document that holds a tree of nodes, and the -//! composition document that names a reusable subtree. Arm keys are fixed for v1. +//! composition document that names a reusable subtree. Arm keys are fixed: Slot (13) is the arm +//! added after the first twelve, and a decoder from before it refuses a record holding one +//! (CultCache's unknown-arm rule). use cultcache_rs::{CultSlots, CultUnion, DatabaseEntry}; use crate::domain::{Count, Segment, Version}; use crate::command::{CommandDecl, CommandRef}; use crate::keys::{NodeId, ProviderId, composition_key, surface_key}; -use crate::source::{Bind, BoolSource, CollectionSource, MemberPath, NumberSource, TextSource}; +use crate::source::{Bind, BoolSource, CollectionSource, MemberPath, NumberSource, ParamName, TextSource}; use crate::style::{BoxStyle, Paint, Role}; /// What every node carries. @@ -48,6 +50,8 @@ pub enum Node { Embed(EmbedNode), #[cultcache(key = 12)] Use(UseNode), + #[cultcache(key = 13)] + Slot(SlotNode), } #[derive(Clone, Debug, PartialEq, CultSlots)] @@ -321,6 +325,15 @@ pub struct UseNode { pub args: Vec, } +/// Where a composition body places the nodes passed for its Slot parameter `param`. Only a child +/// list of a composition body holds one, and resolve refuses it elsewhere. It carries no +/// `NodeCommon`: the argument's nodes, keeping their caller-scope ids, replace it. +#[derive(Clone, Debug, PartialEq, CultSlots)] +pub struct SlotNode { + #[cultcache(key = 0)] + pub param: ParamName, +} + #[derive(Clone, Debug, PartialEq, CultSlots)] pub struct Arg { #[cultcache(key = 0)] diff --git a/crates/thing-contract/tests/goldens.rs b/crates/thing-contract/tests/goldens.rs index d1891b7..ea96c3d 100644 --- a/crates/thing-contract/tests/goldens.rs +++ b/crates/thing-contract/tests/goldens.rs @@ -366,7 +366,10 @@ fn full_composition() -> CompositionDocument { .into_iter() .map(|(name, kind)| ParamDecl { name: name.into(), kind }) .collect(), - body: boxed("panel-root", vec![text("panel-title", "t"), inner_use]), + body: boxed( + "panel-root", + vec![text("panel-title", "t"), inner_use, Node::Slot(SlotNode { param: param("body") })], + ), } } @@ -440,6 +443,14 @@ fn envelope(key: &str, payload: Vec) -> CultCacheEnvelope } } +#[test] +fn slot_arm_bytes() { + let slot = Node::Slot(SlotNode { param: param("body") }); + let bytes = rmp_serde::to_vec(&slot).unwrap(); + assert_eq!(bytes, [0x92, 0x0D, 0x91, 0x91, 0xA4, 0x62, 0x6F, 0x64, 0x79]); + assert_eq!(rmp_serde::from_slice::(&bytes).unwrap(), slot); +} + #[test] fn goldens_match() { let mut names = BTreeSet::new(); @@ -518,10 +529,11 @@ fn refusal_payloads() -> Vec<(&'static str, Vec)> { let root = text("root", "x"); vec![ ("result-thing1-flat", rmp_serde::to_vec_named(&flat).unwrap()), - // A surface whose root is an arm key the Node union does not declare. + // A surface whose root is an arm key the Node union does not declare: 14 is the first key + // Node does not declare (Slot is 13). ( "node-unknown-arm", - rmp_serde::to_vec(&("provider.a", "main", 1i64, CANARY, (13i32, (CANARY,)), unit)).unwrap(), + rmp_serde::to_vec(&("provider.a", "main", 1i64, CANARY, (14i32, (CANARY,)), unit)).unwrap(), ), // A result whose outcome is an arm key the Outcome union does not declare. ("outcome-unknown-arm", rmp_serde::to_vec(&("inv-1", 1i32, (4i32, (CANARY,)))).unwrap()), @@ -588,7 +600,7 @@ fn refusal_cases() { } // Decoded directly, the refusal names the union and the arm key, and never the payload. - for (name, union, key) in [("node-unknown-arm", "Node", "13"), ("outcome-unknown-arm", "Outcome", "4")] { + for (name, union, key) in [("node-unknown-arm", "Node", "14"), ("outcome-unknown-arm", "Outcome", "4")] { let bytes = committed(name); let message = if union == "Node" { rmp_serde::from_slice::(&bytes).unwrap_err().to_string() diff --git a/crates/thing-contract/tests/goldens/README.md b/crates/thing-contract/tests/goldens/README.md index 4d66e7d..f9e9f74 100644 --- a/crates/thing-contract/tests/goldens/README.md +++ b/crates/thing-contract/tests/goldens/README.md @@ -12,8 +12,8 @@ when absent. Arm keys are fixed for v1. | File | Kind | Decodes to | |---|---|---| -| `surface-all-arms.bin` | `gamecult.thing.surface.v1` | One surface with all 13 node arms (Box 0, Text 1, Image 2, Button 3, Toggle 4, Slider 5, TextInput 6 as both input kinds, Text 0 and Number 1, Select 7, Repeat 8, Overlay 9, Plot 10, Embed 11, Use 12), a Box chain four levels deep, every text, number and bool source arm, every Format arm, both state sources, both member steps, every dimension and colour arm, and two declared commands | -| `composition-all-params.bin` | `gamecult.thing.composition.v1` | A composition with one parameter of each of the 7 kinds, whose body uses a composition with one argument of each of the 7 argument arms | +| `surface-all-arms.bin` | `gamecult.thing.surface.v1` | One surface with 13 of the 14 node arms (Box 0, Text 1, Image 2, Button 3, Toggle 4, Slider 5, TextInput 6 as both input kinds, Text 0 and Number 1, Select 7, Repeat 8, Overlay 9, Plot 10, Embed 11, Use 12; Slot 13 is in `composition-all-params`, a body being where a slot stands), a Box chain four levels deep, every text, number and bool source arm, every Format arm, both state sources, both member steps, every dimension and colour arm, and two declared commands | +| `composition-all-params.bin` | `gamecult.thing.composition.v1` | A composition with one parameter of each of the 7 kinds, whose body uses a composition with one argument of each of the 7 argument arms and places the body slot (Slot 13) last in its root's children | | `invocation-all-inputs.bin` | `gamecult.thing.command_invocation.v1` | An invocation with a payload record of bin bytes and one captured input of each of the 4 input arms | | `result-pending.bin` | `gamecult.thing.command_result.v1` | Outcome Pending, seq 1 | | `result-completed.bin` | same | Outcome Completed with source version 8, drafts cleared, no effect | @@ -30,7 +30,7 @@ when absent. Arm keys are fixed for v1. | File | Payload | Expected | |---|---|---| | `result-thing1-flat.bin` | a MessagePack map with named members, the shape a Thing 1 provider wrote for a command result | refused when stored as a command result; the error names the kind and the record key and never a value | -| `node-unknown-arm.bin` | a surface whose root node has arm key 13, which Node does not declare | refused; the error names the kind and the record key, and decoded directly it names the union Node and the key 13, and never a value | +| `node-unknown-arm.bin` | a surface whose root node has arm key 14, which Node does not declare | refused; the error names the kind and the record key, and decoded directly it names the union Node and the key 14, and never a value | | `outcome-unknown-arm.bin` | a result whose outcome has arm key 4, which Outcome does not declare | refused in the same way, naming the union Outcome and the key 4 | | `result-extra-slot.bin` | a Pending result with a fourth slot past the last one declared | read: it decodes to the Pending result with seq 1 (CultLib's extra-trailing-slots ruling: read, never written back) | | `result-seq-zero.bin` | a result whose seq slot is 0 | refused; the error names the kind and the record key, decoded directly it names Seq, and never a value | diff --git a/crates/thing-contract/tests/goldens/composition-all-params.bin b/crates/thing-contract/tests/goldens/composition-all-params.bin index a93e57a6f8245435e9d054e1ce5e4896e849dcbe..aeea9ede810d860f8446070856d77a14a37ebeaa 100644 GIT binary patch delta 24 gcmZ3(wv}yz10&<)&5n$(8968MPMo+TDLw?la!%r%IB`i*eoEzL5AM@K0M`NxVE_OC delta 26 icmbPZGudW?GzX*3W*H6#M#f2-V>w?lZVu!=Ed&5 &'static str { Node::Plot(_) => "Plot", Node::Embed(_) => "Embed", Node::Use(_) => "Use", + Node::Slot(_) => "Slot", } } +// The thirteen arms the fixtures place. Slot (arm 13) is not among them: a Slot stands only in a composition body, +// and placing one in f09 is resolve's cut, not the fixtures'. const ALL_ARMS: [&str; 13] = [ "Box", "Button", "Embed", "Image", "Overlay", "Plot", "Repeat", "Select", "Slider", "Text", "TextInput", "Toggle", "Use", diff --git a/packages/GameCult.Thing.Contract/Node.cs b/packages/GameCult.Thing.Contract/Node.cs index 729fbab..8b8bdd6 100644 --- a/packages/GameCult.Thing.Contract/Node.cs +++ b/packages/GameCult.Thing.Contract/Node.cs @@ -17,6 +17,7 @@ namespace GameCult.Thing.Contract; [Union(10, typeof(PlotNode))] [Union(11, typeof(EmbedNode))] [Union(12, typeof(UseNode))] +[Union(13, typeof(SlotNode))] public abstract class Node { internal Node() { } @@ -265,6 +266,22 @@ public sealed class UseNode : Node } } +/// +/// Where a composition body places the nodes passed for its Slot parameter Param. Only a child +/// list of a composition body holds one, and resolve refuses it elsewhere. It carries no +/// : the argument's nodes, keeping their caller-scope ids, replace it. +/// +[MessagePackObject] +public sealed class SlotNode : Node +{ + [Key(0)] public ParamName Param { get; } + + public SlotNode(ParamName param) + { + Param = ThingDomain.Present(param, "Param"); + } +} + [Union(0, typeof(ImageFitContain))] [Union(1, typeof(ImageFitCover))] [Union(2, typeof(ImageFitFill))] diff --git a/packages/GameCult.Thing.Contract/Source.cs b/packages/GameCult.Thing.Contract/Source.cs index bf0ef66..b794345 100644 --- a/packages/GameCult.Thing.Contract/Source.cs +++ b/packages/GameCult.Thing.Contract/Source.cs @@ -4,6 +4,21 @@ using MessagePack; namespace GameCult.Thing.Contract; +/// +/// A parameter named, where Rust's ParamName is a field (). Where it is an +/// arm payload, the arm class (TextSourceParam and the rest) carries Name itself. +/// +[MessagePackObject] +public sealed class ParamName +{ + [Key(0)] public string Name { get; } + + public ParamName(string name) + { + Name = ThingDomain.Present(name, "Name"); + } +} + [Union(0, typeof(TextLiteral))] [Union(1, typeof(TextSourceBound))] [Union(2, typeof(TextSourceParam))] diff --git a/packages/thing-contract/src/codecs.ts b/packages/thing-contract/src/codecs.ts index 1c1be30..eb55dfc 100644 --- a/packages/thing-contract/src/codecs.ts +++ b/packages/thing-contract/src/codecs.ts @@ -40,6 +40,7 @@ const readOnlyList = (item: Codec): Codec => { }; // source.rs +export const paramName = present(codecs.slots({ 0: ["name", text] }, named("ParamName"))); export const textSourceParam = present(codecs.slots({ 0: ["name", text] }, named("TextSourceParam"))); export const numberSourceParam = present(codecs.slots({ 0: ["name", text] }, named("NumberSourceParam"))); export const boolSourceParam = present(codecs.slots({ 0: ["name", text] }, named("BoolSourceParam"))); @@ -461,6 +462,8 @@ export const useNode = present(codecs.slots( named("UseNode"), )); +export const slotNode = present(codecs.slots({ 0: ["param", paramName] }, named("SlotNode"))); + const nodeUnion = present( codecs.union( "Node", @@ -478,6 +481,7 @@ const nodeUnion = present( 10: ["Plot", plotNode], 11: ["Embed", embedNode], 12: ["Use", useNode], + 13: ["Slot", slotNode], }, named("Node"), ), diff --git a/packages/thing-contract/src/types.ts b/packages/thing-contract/src/types.ts index 57adb24..40155a9 100644 --- a/packages/thing-contract/src/types.ts +++ b/packages/thing-contract/src/types.ts @@ -198,7 +198,16 @@ export type Node = | Arm<"Overlay", OverlayNode> | Arm<"Plot", PlotNode> | Arm<"Embed", EmbedNode> - | Arm<"Use", UseNode>; + | Arm<"Use", UseNode> + | Arm<"Slot", SlotNode>; +/** + * Where a composition body places the nodes passed for its Slot parameter `param`. Only a child list of a composition + * body holds one, and resolve refuses it elsewhere. It carries no NodeCommon: the argument's nodes, keeping their + * caller-scope ids, replace it. + */ +export interface SlotNode { + readonly param: ParamName; +} export interface BoxNode { readonly common: NodeCommon; readonly style: BoxStyle; diff --git a/packages/thing-contract/test/builders.ts b/packages/thing-contract/test/builders.ts index f1cd1e1..f343de4 100644 --- a/packages/thing-contract/test/builders.ts +++ b/packages/thing-contract/test/builders.ts @@ -450,7 +450,7 @@ export function fullComposition(): CompositionDocument { { name: "act", kind: { kind: "Command" } }, { name: "body", kind: { kind: "Slot" } }, ], - body: boxed("panel-root", [text("panel-title", "t"), innerUse]), + body: boxed("panel-root", [text("panel-title", "t"), innerUse, { kind: "Slot", param: { name: "body" } }]), }; } diff --git a/packages/thing-contract/test/codecs.test.ts b/packages/thing-contract/test/codecs.test.ts index a349306..9c6b9d1 100644 --- a/packages/thing-contract/test/codecs.test.ts +++ b/packages/thing-contract/test/codecs.test.ts @@ -4,16 +4,17 @@ import assert from "node:assert/strict"; import { join } from "node:path"; import test from "node:test"; -import { codecs } from "@gamecult/thing-contract"; +import { decodeDocumentPayload, documentPayloadFromBytes } from "@gamecult/cultcache-ts"; +import { codecs, compositionDocument, type Node } from "@gamecult/thing-contract"; -import { nonEmptyLines, parityDir } from "./builders.js"; +import { golden, nonEmptyLines, parityDir } from "./builders.js"; const entries = Object.entries(codecs) as [string, { typeName?: string; decode(raw: unknown): unknown }][]; const rustName = (key: string) => key[0].toUpperCase() + key.slice(1); const names = new Set(nonEmptyLines(join(parityDir, "type-names.txt"))); -test("the package exports one hundred and one codecs", () => { - assert.equal(entries.length, 101); +test("the package exports one hundred and three codecs", () => { + assert.equal(entries.length, 103); }); test("every codec's type name is a type of the C# package", () => { @@ -40,3 +41,16 @@ test("every union refuses an unknown arm by its own name, and the twenty-nine un } assert.equal(unions.length, 29); }); + +test("slot: a Slot is arm 13 holding a nested ParamName, and the composition golden places it last in the body root's children", () => { + const slot: Node = { kind: "Slot", param: { name: "body" } }; + assert.deepEqual(codecs.node.encode(slot), [13, [["body"]]]); + assert.deepStrictEqual(codecs.node.decode([13, [["body"]]]), slot); + assert.throws(() => codecs.node.decode([13, ["body"]])); + assert.throws(() => codecs.node.decode([13, [[null]]])); + + const decoded = decodeDocumentPayload(compositionDocument, documentPayloadFromBytes(golden("composition-all-params.bin"))); + assert.equal(decoded.body.kind, "Box"); + if (decoded.body.kind !== "Box") return; + assert.deepStrictEqual(decoded.body.children.at(-1), slot); +}); diff --git a/packages/thing-contract/test/names.test.ts b/packages/thing-contract/test/names.test.ts index 51bdcf1..0fa2e55 100644 --- a/packages/thing-contract/test/names.test.ts +++ b/packages/thing-contract/test/names.test.ts @@ -13,10 +13,12 @@ const NS = "GameCult.Thing.Contract."; const names = new Set(nonEmptyLines(join(parityDir, "type-names.txt"))); const entries = Object.entries(codecs) as [string, { typeName?: string; members?: readonly { typeName: string }[] }][]; -test("ParamName and Scalar are Rust names the C# package does not have; each arm has its own codec", () => { - assert.equal(names.has(`${NS}ParamName`), false); +test("Scalar is a Rust name the C# package does not have; ParamName is its type for a slot; each Param arm has its own codec", () => { assert.equal(names.has(`${NS}Scalar`), false); - for (const [key, codec] of entries) assert.doesNotMatch(codec.typeName ?? "", /\.(ParamName|Scalar)$/u, key); + for (const [key, codec] of entries) assert.doesNotMatch(codec.typeName ?? "", /.Scalar$/u, key); + assert.ok(names.has(`${NS}ParamName`)); + assert.equal(codecs.paramName.typeName, `${NS}ParamName`); + assert.equal(codecs.slotNode.typeName, `${NS}SlotNode`); const arms = { textSourceParam: "TextSourceParam", numberSourceParam: "NumberSourceParam", diff --git a/packages/thing-contract/test/refusals.test.ts b/packages/thing-contract/test/refusals.test.ts index 26e83bf..f7183e4 100644 --- a/packages/thing-contract/test/refusals.test.ts +++ b/packages/thing-contract/test/refusals.test.ts @@ -45,7 +45,7 @@ test("a Thing 1 flat map is not a command result", () => { }); test("an unknown Node arm is refused naming the union and the key", () => { - assert.match(refusal(read(surfaceDocument, "node-unknown-arm.bin")), /Union Node: unknown arm key 13/); + assert.match(refusal(read(surfaceDocument, "node-unknown-arm.bin")), /Union Node: unknown arm key 14/); }); test("an unknown Outcome arm is refused naming the union and the key", () => { diff --git a/tests/GameCult.Thing.Contract.Tests/Builders.cs b/tests/GameCult.Thing.Contract.Tests/Builders.cs index a2348f2..6a6ce2d 100644 --- a/tests/GameCult.Thing.Contract.Tests/Builders.cs +++ b/tests/GameCult.Thing.Contract.Tests/Builders.cs @@ -263,7 +263,7 @@ internal static class Builders new("act", new ParamKindCommand()), new("body", new ParamKindSlot()), }, - Boxed("panel-root", Text("panel-title", "t"), innerUse)); + Boxed("panel-root", Text("panel-title", "t"), innerUse, new SlotNode(new ParamName("body")))); } public static List<(string Name, CommandResult Result)> Results(CommandInvocation invocation) => new() diff --git a/tests/GameCult.Thing.Contract.Tests/GoldenTests.cs b/tests/GameCult.Thing.Contract.Tests/GoldenTests.cs index e71e7fb..7f56677 100644 --- a/tests/GameCult.Thing.Contract.Tests/GoldenTests.cs +++ b/tests/GameCult.Thing.Contract.Tests/GoldenTests.cs @@ -62,7 +62,7 @@ public sealed class GoldenTests [Test] public void Thing1FlatMapIsRefused() => Refused(typeof(CommandResult), "result-thing1-flat"); - [TestCase("node-unknown-arm", typeof(SurfaceDocument), "Node", "13")] + [TestCase("node-unknown-arm", typeof(SurfaceDocument), "Node", "14")] [TestCase("outcome-unknown-arm", typeof(CommandResult), "Outcome", "4")] public void UnknownArmsAreRefusedNamingUnionAndKey(string golden, Type type, string union, string key) { diff --git a/tests/GameCult.Thing.Contract.Tests/SlotNodeTests.cs b/tests/GameCult.Thing.Contract.Tests/SlotNodeTests.cs new file mode 100644 index 0000000..2de2537 --- /dev/null +++ b/tests/GameCult.Thing.Contract.Tests/SlotNodeTests.cs @@ -0,0 +1,30 @@ +using MessagePack; + +namespace GameCult.Thing.Contract.Tests; + +/// +/// thing2:ruling:composition-slot-node: a Slot is union key 13 of Node, one nested slot holding the parameter name, and a +/// composition body places it last in the root's children. +/// +public sealed class SlotNodeTests +{ + [Test] + public void SlotIsArm13WithANestedParamName() + { + Node slot = new SlotNode(new ParamName("body")); + var bytes = MessagePackSerializer.Serialize(typeof(Node), slot, Wire.Options); + Assert.That(bytes, Is.EqualTo(new byte[] { 0x92, 0x0D, 0x91, 0x91, 0xA4, 0x62, 0x6F, 0x64, 0x79 })); + var read = (SlotNode)MessagePackSerializer.Deserialize(typeof(Node), bytes, Wire.Options); + Assert.That(read.Param.Name, Is.EqualTo("body")); + } + + [Test] + public void TheCompositionGoldenHoldsTheSlotLastInTheRootsChildren() + { + var composition = (CompositionDocument)Wire.Read(typeof(CompositionDocument), Wire.Golden("composition-all-params.bin")); + var root = (BoxNode)composition.Body; + var slot = (SlotNode)root.Children[^1]; + Assert.That(slot.Param.Name, Is.EqualTo("body")); + Assert.That(root.Children, Has.Count.EqualTo(3)); + } +} diff --git a/tests/thing-contract-parity/README.md b/tests/thing-contract-parity/README.md index ea5084b..4b2c59a 100644 --- a/tests/thing-contract-parity/README.md +++ b/tests/thing-contract-parity/README.md @@ -1,6 +1,6 @@ # thing-contract-parity -The names the C# package `GameCult.Thing.Contract` gives its types. The C# package owns them because CultLib's C# reference compares catalog type names when a store reopens, and every runtime package is held to the C# names. +The names the C# package `GameCult.Thing.Contract` gives its types. The C# package owns them because CultLib's C# reference compares catalog type names when a store reopens, and every runtime package is held to the C# names. `ParamName` is in the set as `SlotNode.Param`'s type; the Param arms fold it into their own classes. | File | Rows | |---|---| diff --git a/tests/thing-contract-parity/type-names.txt b/tests/thing-contract-parity/type-names.txt index fa312ec..16fcfce 100644 --- a/tests/thing-contract-parity/type-names.txt +++ b/tests/thing-contract-parity/type-names.txt @@ -118,6 +118,7 @@ GameCult.Thing.Contract.ParamKindCommand GameCult.Thing.Contract.ParamKindNumber GameCult.Thing.Contract.ParamKindSlot GameCult.Thing.Contract.ParamKindText +GameCult.Thing.Contract.ParamName GameCult.Thing.Contract.PendingOutcome GameCult.Thing.Contract.PlotMark GameCult.Thing.Contract.PlotMarkArea @@ -144,6 +145,7 @@ GameCult.Thing.Contract.SelectOption GameCult.Thing.Contract.Size2 GameCult.Thing.Contract.SliderNode GameCult.Thing.Contract.SlotArg +GameCult.Thing.Contract.SlotNode GameCult.Thing.Contract.StateRef GameCult.Thing.Contract.StateSource GameCult.Thing.Contract.StateSourceItem diff --git a/tests/thing-contract-parity/written-by-cs.cc b/tests/thing-contract-parity/written-by-cs.cc index ebd057f953f07d49201d5c7d92941a892bc79ff6..7167c766789e8538f6e45e981e681f3e4212ca23 100644 GIT binary patch delta 145 zcmaEo^EPM0B^d!D11nQgD+5bCOH)I015@M4k7OQ6q6(T=Xd4(<85kU8Hr;$z)`5|6 y@@6^t*NmK#cqdL=l9ZoPIhj+j58WVx&C308=H$KdYMU3z@h~DxHM2CHyi>jcNx;~2v#mm-5CDYT BB?SNg delta 120 zcmX?}x-WGDpA?Uwxs|Drm9eRwg{kReDXDb=2mxc`sH4m}n{P-tFfvZsEGhGvaWb!5 rI+6|(qs