Class UTryllAgentVariables¶
ClassList > UTryllAgentVariables
#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¶
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¶
function GetFloatVariable¶
function GetIntVariable¶
function GetStringSetVariable¶
TArray< FString > UTryllAgentVariables::GetStringSetVariable (
const FString & Name,
bool & bFound
) const
function GetStringVariable¶
function Initialize¶
Bind this wrapper to an agent. Safe to re-bind (e.g. after the agent is recreated).
function IsDirty¶
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¶
function SetBoolVariable¶
function SetFloatVariable¶
function SetIntVariable¶
function SetStringSetVariable¶
FTryllError UTryllAgentVariables::SetStringSetVariable (
const FString & Name,
const TArray< FString > & Values
)
function SetStringVariable¶
The documentation for this class was generated from the following file C:/_tryll/_monorepo3/tryll/clients/unreal/Source/TryllClient/Public/TryllAgentVariables.h