Skip to content

Struct FTryllTextResolve

ClassList > FTryllTextResolve

More...

  • #include <TryllTextResolve.h>

Classes

Type Name
struct FTextIdRef

Public Static Functions

Type Name
TArray< FTextIdRef > CollectTextIds (const FTryllGraphDescription & Graph)
bool HasTickedFields (const FTryllGraphDescription & Graph)
bool HasTickedFields (const UTryllNodeParamsBase * Params, bool bLiveOnly=false)
bool PrepareForCreate (const FTryllGraphDescription & Graph, UObject * Outer, UTryllTextProvider * Provider, FTryllGraphDescription & OutGraph, TArray< UTryllNodeParamsBase * > & OutOwned, FTryllError & OutError)
bool ResolveParams (UTryllNodeParamsBase * Params, UTryllTextProvider * Provider, FName Table, const FString & AssetName, const FString & NodeName, bool bLiveOnly, bool & bOutChanged, FTryllError & OutError)

Detailed Description

Fills ticked Text IDs before CreateAgent and ChangeParams, and again for non-structural fields when the provider's language changes. Always works on a copy; the authored asset is not modified.

Public Static Functions Documentation

function CollectTextIds

static TArray< FTextIdRef > FTryllTextResolve::CollectTextIds (
    const FTryllGraphDescription & Graph
) 

function HasTickedFields [1/2]

static bool FTryllTextResolve::HasTickedFields (
    const FTryllGraphDescription & Graph
) 

function HasTickedFields [2/2]

static bool FTryllTextResolve::HasTickedFields (
    const UTryllNodeParamsBase * Params,
    bool bLiveOnly=false
) 

True when Params has a ticked field. bLiveOnly ignores fields inside structural containers.


function PrepareForCreate

static bool FTryllTextResolve::PrepareForCreate (
    const FTryllGraphDescription & Graph,
    UObject * Outer,
    UTryllTextProvider * Provider,
    FTryllGraphDescription & OutGraph,
    TArray< UTryllNodeParamsBase * > & OutOwned,
    FTryllError & OutError
) 

When the graph has a ticked field, duplicate its params onto Outer and replace those strings with provider text. OutOwned is every duplicate, including when resolution fails, so the caller can root or destroy them. A graph with no ticked field is copied by value and OutOwned stays empty.


function ResolveParams

static bool FTryllTextResolve::ResolveParams (
    UTryllNodeParamsBase * Params,
    UTryllTextProvider * Provider,
    FName Table,
    const FString & AssetName,
    const FString & NodeName,
    bool bLiveOnly,
    bool & bOutChanged,
    FTryllError & OutError
) 

Resolve the ticked fields of Params in place (pass a copy). bLiveOnly skips fields inside structural containers, which cannot change on a live agent. bOutChanged is true when any string that is sent changed. Errors name asset, node, field, table and ID (InvalidParamValue).



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