Skip to content

Instantly share code, notes, and snippets.

@Samma2009
Created February 9, 2026 18:39
Show Gist options
  • Select an option

  • Save Samma2009/24bc5a73cf33022b34620129f2a6aaae to your computer and use it in GitHub Desktop.

Select an option

Save Samma2009/24bc5a73cf33022b34620129f2a6aaae to your computer and use it in GitHub Desktop.
Iron Logic engine api
-- 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,
requestData = function(pin) end,
saveValue = function(name, value) end,
loadValue = function(name) end,
changeMoney = function(changby) end,
applyPriceReduction = function(percentage) end,
changeGlobalStats = function(stat, changby) end,
getGlboalStat = function(stat) end,
levelUpdateBind = function(func) end,
addQuest = function(quest) end,
getUpgrade = function(upgrade) end,
registerPretigeTree = function(tree) end,
playSound = function(sound) end,
pinShape = setmetatable({
Circle = 0,
CircleFilled = 1,
Triangle = 2,
TriangleFilled = 3,
Quad = 4,
QuadFilled = 5
}, { __newindex = error }),
nodeConnectionType = setmetatable({
Input = 0,
Output = 1,
Static = 2
}, { __newindex = error })
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment