mirror of
https://github.com/litruv/picoGraph.git
synced 2026-07-24 02:36:04 +10:00
Initial commit
moved from private version control
This commit is contained in:
27
scripts/nodes/library/lua/coroutineRunning.js
Normal file
27
scripts/nodes/library/lua/coroutineRunning.js
Normal file
@@ -0,0 +1,27 @@
|
||||
import { createNodeModule } from "../../nodeTypes.js";
|
||||
|
||||
/**
|
||||
* Returns the currently running coroutine via coroutine.running().
|
||||
*/
|
||||
export const luaCoroutineRunningNode = createNodeModule(
|
||||
{
|
||||
id: "lua_coroutine_running",
|
||||
title: "Coroutine Running",
|
||||
category: "Lua",
|
||||
description: "Access the currently running coroutine reference.",
|
||||
searchTags: ["coroutine", "running", "lua"],
|
||||
inputs: [],
|
||||
outputs: [
|
||||
{
|
||||
id: "coroutine",
|
||||
name: "Coroutine",
|
||||
direction: "output",
|
||||
kind: "any",
|
||||
},
|
||||
],
|
||||
properties: [],
|
||||
},
|
||||
{
|
||||
evaluateValue: () => "coroutine.running()",
|
||||
}
|
||||
);
|
||||
Reference in New Issue
Block a user