update to node site

This commit is contained in:
2026-04-15 05:02:45 +10:00
parent 3c45406f6f
commit 7e7e6f2c22
710 changed files with 10532 additions and 8324 deletions

View File

@@ -0,0 +1,53 @@
/**
* @file NodeBase.js
* Abstract base class for all Blueprint graph node types.
*
* Method prefixes mirror Unreal Engine UFUNCTION macro conventions:
* BlueprintNativeEvent_ — has a native default implementation; subclasses may override
* BlueprintCallable_ — has exec-pin side effects; called during graph traversal
* BlueprintPure_ — side-effect free; does not advance exec flow
*/
/**
* @typedef {import('../GraphNode.js').GraphNode} GraphNode
* @typedef {import('./NodeRenderContext.js').NodeRenderContext} NodeRenderContext
* @typedef {import('./NodeExecutionContext.js').NodeExecutionContext} NodeExecutionContext
*/
/**
* @UCLASS(Abstract)
* Base class all node handlers inherit from. Registered via NodeRegistry.
*/
export class NodeBase {
/**
* The graph type string that maps to this class in the registry.
* Must be overridden by every subclass.
* @UCLASS(BlueprintType)
* @type {string}
*/
static NodeType = "";
/**
* Called after the node's base DOM (header, pins) has been built.
* Override to inject type-specific UI into the article element.
*
* @UFUNCTION(BlueprintNativeEvent)
* @param {HTMLElement} article
* @param {GraphNode} graphNode
* @param {NodeRenderContext} renderCtx
*/
// eslint-disable-next-line no-unused-vars
BlueprintNativeEvent_OnRender(article, graphNode, renderCtx) {}
/**
* Called when this node is reached during exec graph traversal.
* Override to implement node-specific behaviour.
* Exec flow continues automatically after this returns.
*
* @UFUNCTION(BlueprintCallable)
* @param {NodeExecutionContext} ctx
* @returns {Promise<void>}
*/
// eslint-disable-next-line no-unused-vars
async BlueprintCallable_Execute(ctx) {}
}