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,27 @@
import { createNodeModule } from "../../nodeTypes.js";
/**
* Retrieves the metatable associated with a table via getmetatable().
*/
export const luaGetMetatableNode = createNodeModule(
{
id: "lua_getmetatable",
title: "Get Metatable",
category: "Lua",
description: "Fetch a table's metatable using getmetatable().",
searchTags: ["getmetatable", "metatable", "lua"],
inputs: [
{ id: "table", name: "Table", direction: "input", kind: "table" },
],
outputs: [
{ id: "metatable", name: "Metatable", direction: "output", kind: "table" },
],
properties: [],
},
{
evaluateValue: ({ resolveValueInput }) => {
const tableValue = resolveValueInput("table", "{}");
return `getmetatable(${tableValue})`;
},
}
);