mirror of
https://github.com/litruv/lit.ruv.wtf.git
synced 2026-07-24 10:46:03 +10:00
can now add nodes
This commit is contained in:
@@ -47,4 +47,19 @@ export class NodeRegistry {
|
||||
static BlueprintPure_GetRegisteredTypes() {
|
||||
return [...this.#registry.keys()];
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns default pin configuration for a node type by delegating to the node class.
|
||||
*
|
||||
* @UFUNCTION(BlueprintPure)
|
||||
* @param {string} nodeType
|
||||
* @returns {{ inputs: Array<{id: string, name: string, direction: string, kind: string, defaultValue?: string}>, outputs: Array<{id: string, name: string, direction: string, kind: string}> }}
|
||||
*/
|
||||
static BlueprintPure_GetDefaultPins(nodeType) {
|
||||
const handler = this.BlueprintPure_Get(nodeType);
|
||||
if (!handler) {
|
||||
return { inputs: [], outputs: [] };
|
||||
}
|
||||
return handler.constructor.BlueprintPure_GetDefaultPins();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user