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,33 @@
import { createNodeModule } from "../../nodeTypes.js";
/**
* Opens persistent cartridge storage using cartdata.
*/
export const cartdataNode = createNodeModule(
{
id: "data_cartdata",
title: "Cart Data Init",
category: "Data",
description: "Setup persistent storage for the cartridge using CARTDATA().",
searchTags: ["cartdata", "save", "persistent", "data"],
inputs: [
{
id: "id",
name: "Identifier",
direction: "input",
kind: "string",
defaultValue: "\"my_cart\"",
},
],
outputs: [
{ id: "loaded", name: "Loaded", direction: "output", kind: "boolean" },
],
properties: [],
},
{
evaluateValue: ({ resolveValueInput }) => {
const id = resolveValueInput("id", '"pico_cart"');
return `cartdata(${id})`;
},
}
);