Initial commit

moved from private version control
This commit is contained in:
2025-10-19 21:12:41 +11:00
parent 5e84773bbe
commit e64f3e881e
187 changed files with 25372 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
import { createNodeModule } from "../../nodeTypes.js";
/**
* Produces a key-value iterator using PICO-8's pairs helper.
*/
export const tablePairsNode = createNodeModule(
{
id: "table_pairs",
title: "Pairs Iterator",
category: "Tables",
description: "Create an iterator yielding key-value pairs for a table.",
searchTags: ["pairs", "table", "iterator", "loop"],
inputs: [{ id: "table", name: "Table", direction: "input", kind: "table" }],
outputs: [
{ id: "iterator", name: "Iterator", direction: "output", kind: "any" },
],
properties: [],
},
{
evaluateValue: ({ resolveValueInput }) => {
const tableValue = resolveValueInput("table", "{}");
return `pairs(${tableValue})`;
},
}
);