mirror of
https://github.com/litruv/lit.ruv.wtf.git
synced 2026-07-24 02:36:02 +10:00
update to node site
This commit is contained in:
27
website/scripts/nodes/PrintNode.js
Normal file
27
website/scripts/nodes/PrintNode.js
Normal file
@@ -0,0 +1,27 @@
|
||||
/**
|
||||
* @file PrintNode.js
|
||||
* @UCLASS(BlueprintType, Blueprintable)
|
||||
*/
|
||||
|
||||
import { NodeBase } from './NodeBase.js';
|
||||
import { NodeRegistry } from './NodeRegistry.js';
|
||||
|
||||
/**
|
||||
* @UCLASS(BlueprintType)
|
||||
* Logs a string value and fires it through the print callback.
|
||||
*/
|
||||
export class PrintNode extends NodeBase {
|
||||
/** @UCLASS(BlueprintType) */
|
||||
static NodeType = "print";
|
||||
|
||||
/**
|
||||
* @UFUNCTION(BlueprintCallable)
|
||||
* @param {import('./NodeExecutionContext.js').NodeExecutionContext} ctx
|
||||
*/
|
||||
async BlueprintCallable_Execute(ctx) {
|
||||
const value = ctx.BlueprintPure_ResolveInput("value");
|
||||
ctx.BlueprintCallable_Print(value);
|
||||
}
|
||||
}
|
||||
|
||||
NodeRegistry.UCLASS_Register(PrintNode);
|
||||
Reference in New Issue
Block a user