Skip to content

Class UTryllAgentVariables

ClassList > UTryllAgentVariables

More...

  • #include <TryllAgentVariables.h>

Inherits the following classes: UObject

Public Functions

Type Name
FTryllError AddToSetVariable (const FString & Name, const FString & Element)
void FlushIfDirty ()
bool GetBoolVariable (const FString & Name, bool & bFound) const
float GetFloatVariable (const FString & Name, bool & bFound) const
int64 GetIntVariable (const FString & Name, bool & bFound) const
TArray< FString > GetStringSetVariable (const FString & Name, bool & bFound) const
FString GetStringVariable (const FString & Name, bool & bFound) const
void Initialize (TWeakPtr< FTryllAgent > InAgent)
bool IsDirty () const
FTryllError RemoveFromSetVariable (const FString & Name, const FString & Element)
FTryllError ResetVariable (const FString & Name)
FTryllError SetBoolVariable (const FString & Name, bool bValue)
FTryllError SetFloatVariable (const FString & Name, float Value)
FTryllError SetIntVariable (const FString & Name, int64 Value)
FTryllError SetStringSetVariable (const FString & Name, const TArray< FString > & Values)
FTryllError SetStringVariable (const FString & Name, const FString & Value)

Detailed Description

Blueprint-facing wrapper around FTryllAgentVariables. Returned by UTryllAgentComponent::GetVariables(); forwards typed setters/getters to the agent's C++ mirror. Reads are synchronous (served from the local mirror); writes are staged and flushed automatically before the next agent interaction. Setters return an FTryllError (Ok on success); an unknown name or type mismatch is rejected locally with no wire round-trip.

Public Functions Documentation

function AddToSetVariable

FTryllError UTryllAgentVariables::AddToSetVariable (
    const FString & Name,
    const FString & Element
) 

function FlushIfDirty

void UTryllAgentVariables::FlushIfDirty () 

Send every staged mutation as one batched UpdateAgentVariablesRequest. Normally automatic before Send/Resume/ChangeParams; use explicitly for debugging (Flush Now in Details). No-op success when nothing is staged.


function GetBoolVariable

bool UTryllAgentVariables::GetBoolVariable (
    const FString & Name,
    bool & bFound
) const

function GetFloatVariable

float UTryllAgentVariables::GetFloatVariable (
    const FString & Name,
    bool & bFound
) const

function GetIntVariable

int64 UTryllAgentVariables::GetIntVariable (
    const FString & Name,
    bool & bFound
) const

function GetStringSetVariable

TArray< FString > UTryllAgentVariables::GetStringSetVariable (
    const FString & Name,
    bool & bFound
) const

function GetStringVariable

FString UTryllAgentVariables::GetStringVariable (
    const FString & Name,
    bool & bFound
) const

function Initialize

inline void UTryllAgentVariables::Initialize (
    TWeakPtr< FTryllAgent > InAgent
) 

Bind this wrapper to an agent. Safe to re-bind (e.g. after the agent is recreated).


function IsDirty

bool UTryllAgentVariables::IsDirty () const

True when one or more mutations are staged and not yet flushed to the server.


function RemoveFromSetVariable

FTryllError UTryllAgentVariables::RemoveFromSetVariable (
    const FString & Name,
    const FString & Element
) 

function ResetVariable

FTryllError UTryllAgentVariables::ResetVariable (
    const FString & Name
) 

function SetBoolVariable

FTryllError UTryllAgentVariables::SetBoolVariable (
    const FString & Name,
    bool bValue
) 

function SetFloatVariable

FTryllError UTryllAgentVariables::SetFloatVariable (
    const FString & Name,
    float Value
) 

function SetIntVariable

FTryllError UTryllAgentVariables::SetIntVariable (
    const FString & Name,
    int64 Value
) 

function SetStringSetVariable

FTryllError UTryllAgentVariables::SetStringSetVariable (
    const FString & Name,
    const TArray< FString > & Values
) 

function SetStringVariable

FTryllError UTryllAgentVariables::SetStringVariable (
    const FString & Name,
    const FString & Value
) 


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