TScholaEnvironment
Template wrapper that bridges Blueprint-implementable interfaces to the type-erased IScholaEnvironment.
This template allows Blueprint-implemented environments to be used through the generic IScholaEnvironment interface, enabling polymorphic environment handling in C++.
template <typename T>class TScholaEnvironment : public TScriptInterface<T>, public IScholaEnvironmentMethods
TScholaEnvironment
~TScholaEnvironment() = defaultVirtual destructor for proper cleanup.
TScholaEnvironment
inline TScholaEnvironment(UObject *InObject)Construct a typed environment wrapper from a UObject.
Parameters
InObject(UObject)
InitializeEnvironment
inline virtual void InitializeEnvironment( TMap<FString, FInteractionDefinition> &OutAgentDefinitions) overrideInitialize the environment through the Blueprint interface.
Parameters
OutAgentDefinitions(TMap<FString, FInteractionDefinition>)
SeedEnvironment
inline virtual void SeedEnvironment(int Seed) overrideSet the random seed through the Blueprint interface.
Parameters
Seed(int)
SetEnvironmentOptions
inline virtual voidSetEnvironmentOptions(const TMap<FString, FString> &Options) overrideSet environment options through the Blueprint interface.
Parameters
Options(const TMap<FString, FString>)
Reset
inline virtual voidReset(TMap<FString, FInitialAgentState> &OutAgentState) overrideReset the environment through the Blueprint interface.
Parameters
OutAgentState(TMap<FString, FInitialAgentState>)
Step
inline virtual voidStep(const TMap<FString, TInstancedStruct<FPoint>> &InActions, TMap<FString, FAgentState> &OutAgentStates) overrideExecute a step through the Blueprint interface.
Parameters
-
InActions(const TMap<FString, TInstancedStruct<FPoint>>) -
OutAgentStates(TMap<FString, FAgentState>)
Source: Source/ScholaTraining/Public/Environment/EnvironmentInterface.h