Skip to content

Class UTryllBranchParams

ClassList > UTryllBranchParams

More...

  • #include <TryllBranchParams.h>

Inherits the following classes: UTryllNodeParamsBase

Public Attributes

Type Name
FString Condition
FString ElseExit
FTryllSlotInput Input
ETryllBranchTest Test = ETryllBranchTest::NonEmpty
FString ThenExit
TArray< FString > Values
FString Variable
bool bNotifyClient = false
bool bOverrideCondition = false
bool bOverrideInput = false
bool bOverrideVariable = false

Public Functions

Type Name
virtual ETryllNodeType GetNodeType () override const
virtual flatbuffers::Offset< void > Pack (flatbuffers::FlatBufferBuilder & Fbb, Tryll::NodeParams::NodeParams & OutType) override const

Public Functions inherited from UTryllNodeParamsBase

See UTryllNodeParamsBase

Type Name
virtual TArray< FString > GetExitTargetOptions () const
virtual ETryllNodeType GetNodeType () const
FString GetOwnerNodeName () const
virtual flatbuffers::Offset< void > Pack (flatbuffers::FlatBufferBuilder & Fbb, ::Tryll::NodeParams::NodeParams & OutType) const
ETryllNodeType return static_cast (0)

Public Static Functions inherited from UTryllNodeParamsBase

See UTryllNodeParamsBase

Type Name
const FTryllGraphDescription * FindEnclosingGraph (const UObject * Obj)

Detailed Description

Conditional routing node. Evaluates a test against a turn-local slot or an agent variable and takes then_exit or else_exit. Reader-only: no model, no slot write, no wire emission.

Public Attributes Documentation

variable Condition

FString UTryllBranchParams::Condition;

variable ElseExit

FString UTryllBranchParams::ElseExit;

Exit taken when the test does not match, Expression is false, or the operand is missing. Empty = END. Graph exit "else" — target node name; empty = END.


variable Input

FTryllSlotInput UTryllBranchParams::Input;

Upstream inter-node slot this field consumes. Empty = context default.


variable Test

ETryllBranchTest UTryllBranchParams::Test;

Which predicate to run. Changing this recompiles the active condition.


variable ThenExit

FString UTryllBranchParams::ThenExit;

Exit taken when the test matches (or Expression is true). Empty = END. Graph exit "then" — target node name; empty = END.


variable Values

TArray<FString> UTryllBranchParams::Values;

Candidate literals for Equals / EqualsIgnoreCase / Contains / Regex. Match = any element matches. Unused under NonEmpty / IsTrue / Expression. Mutable — the game can remap cases between turns without recreating the agent.


variable Variable

FString UTryllBranchParams::Variable;

variable bNotifyClient

bool UTryllBranchParams::bNotifyClient;

When true, fire OnNodeEvent("branch_taken", …) after routing.


variable bOverrideCondition

bool UTryllBranchParams::bOverrideCondition;

JSON filter condition used when test=Expression. Supports the retrieve filter grammar plus {"slot":"<name>"} operands. Unused under other tests. Set to true to override the inherited Condition value.


variable bOverrideInput

bool UTryllBranchParams::bOverrideInput;

Slot discriminant. Empty = "user_message". Mutually exclusive with a non-empty variable. Unused under test=Expression. Set to true to override the inherited Input value.


variable bOverrideVariable

bool UTryllBranchParams::bOverrideVariable;

Variable discriminant (name of a declared agent variable). Mutually exclusive with a non-empty input. Unused under test=Expression. Set to true to override the inherited Variable value.


Public Functions Documentation

function GetNodeType

inline virtual ETryllNodeType UTryllBranchParams::GetNodeType () override const

Implements UTryllNodeParamsBase::GetNodeType


function Pack

virtual flatbuffers::Offset< void > UTryllBranchParams::Pack (
    flatbuffers::FlatBufferBuilder & Fbb,
    Tryll::NodeParams::NodeParams & OutType
) override const

Implements UTryllNodeParamsBase::Pack



The documentation for this class was generated from the following file C:/_tryll/_monorepo3/tryll/clients/unreal/Source/TryllClient/Public/Generated/Nodes/TryllBranchParams.h