This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| local engine = require("engine"); -- Require the engine api (engine.lua file) | |
| engine.registerNode({ | |
| uid = "this is an id (00000000-0000-0000-0000-000000000000)", | |
| title = "this is a title", | |
| value = 20, -- this is how much your node costs/sells for | |
| pins = { | |
| Pin1 = { | |
| index = 0, | |
| accepts = "any", -- accepted resource types |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- Engine API mockup for LSP | |
| return { | |
| registerNode = function(node, description) end, | |
| debug_printnodes = function(uid) end, | |
| scatterNode = function(node, count, color) end, | |
| UIButton = function(text, func) end, | |
| UILabel = function(text) end, | |
| UIProgressbar = function(value, max, width) end, | |
| sendSignal = function(pin, data) end, |