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,29 @@
import { createNodeModule } from "../../nodeTypes.js";
/**
* Compares two values using rawequal().
*/
export const luaRawEqualNode = createNodeModule(
{
id: "lua_rawequal",
title: "Raw Equal",
category: "Lua",
description: "Compare values without metamethods using rawequal().",
searchTags: ["rawequal", "compare", "lua"],
inputs: [
{ id: "a", name: "A", direction: "input", kind: "any" },
{ id: "b", name: "B", direction: "input", kind: "any" },
],
outputs: [
{ id: "equal", name: "Equal", direction: "output", kind: "boolean" },
],
properties: [],
},
{
evaluateValue: ({ resolveValueInput }) => {
const a = resolveValueInput("a", "nil");
const b = resolveValueInput("b", "nil");
return `rawequal(${a}, ${b})`;
},
}
);