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 FString GetDocsUrl () override const
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 FString GetDocsUrl () const
virtual TArray< FString > GetExitTargetOptions () const
virtual ETryllNodeType GetNodeType () const
FString GetOwnerNodeName () const
virtual bool IsTtsConsumer () const
virtual flatbuffers::Offset< void > Pack (flatbuffers::FlatBufferBuilder & Fbb, ::Tryll::NodeParams::NodeParams & OutType) const
virtual void PostLoad () override
virtual void Serialize (FArchive & Ar) override
ETryllNodeType return static_cast (0)

Public Static Functions inherited from UTryllNodeParamsBase

See UTryllNodeParamsBase

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

Protected Functions inherited from UTryllNodeParamsBase

See UTryllNodeParamsBase

Type Name
virtual void ApplyOldDefaults (int32 SavedVersion)
virtual bool UpgradeFrom (int32 SavedVersion)

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;

Node to run when the test fails or the value to test is missing. Empty = end the turn. 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;

What to check: NonEmpty, IsTrue (bool Variable), Equals, EqualsIgnoreCase, Contains, Regex (against Values), or Expression (Condition).


variable ThenExit

FString UTryllBranchParams::ThenExit;

Node to run when the test passes. Empty = end the turn. Graph exit "then" — target node name; empty = END.


variable Values

TArray<FString> UTryllBranchParams::Values;

Values for Equals, EqualsIgnoreCase, Contains and Regex; the test passes if any one matches.


variable Variable

FString UTryllBranchParams::Variable;

variable bNotifyClient

bool UTryllBranchParams::bNotifyClient;

Send the game a branch_taken event with the exit taken.


variable bOverrideCondition

bool UTryllBranchParams::bOverrideCondition;

JSON condition for the Expression test, over agent variables and {"slot":"<name>"} values. Unused by other tests. Set to true to override the inherited Condition value.


variable bOverrideInput

bool UTryllBranchParams::bOverrideInput;

Text to test: the player's message or an earlier node's output. Empty = the player's message. Leave empty when Variable is set. Set to true to override the inherited Input value.


variable bOverrideVariable

bool UTryllBranchParams::bOverrideVariable;

Agent variable to test instead of Input. Leave empty to test Input. Set to true to override the inherited Variable value.


Public Functions Documentation

function GetDocsUrl

inline virtual FString UTryllBranchParams::GetDocsUrl () override const

Reference page of this node type on docs.tryllengine.com, opened by the editor's help button. Empty for test-only node types, which have no page.

Implements UTryllNodeParamsBase::GetDocsUrl


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