mirror of
https://github.com/litruv/lit.ruv.wtf.git
synced 2026-07-24 10:46:03 +10:00
28 lines
701 B
JavaScript
28 lines
701 B
JavaScript
/**
|
|
* @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);
|