Class AGymConnectorManager
Class AGymConnectorManager
- Defined in File GymConnectorManager.h
Inheritance Relationships
Base Type
public AActor
class AGymConnectorManager : public AActorSource: Source/Schola/Training/Public/TrainingUtils/GymConnectorManager.h
Dependencies: UAbstractGymConnector
Actor-based container for gym connectors in the Unreal Engine world.
Provides a simple way to add a gym connector to your level.
This actor manages the lifecycle of a gym connector, handling initialization and per-frame updates. Place this actor in your level to manage training connections. It will automatically collect environments from the connector and step the connector every frame. To handle more complex training scenarios, you can implement your own AActor to manage the gym connector lifecycle.
Public Functions
| Symbol | Details |
|---|---|
AGymConnectorManager | Default constructor for the gym connector manager. |
Tick | Called every frame to update the connector state. |
AGymConnectorManager
AGymConnectorManager()Default constructor for the gym connector manager.
Source: Source/Schola/Training/Public/TrainingUtils/GymConnectorManager.h
Implementation: Source/Schola/Training/Private/TrainingUtils/GymConnectorManager.cpp
Tick
virtual void Tick(float DeltaTime) overrideCalled every frame to update the connector state.
Parameters
DeltaTime – [in] The time elapsed since the last frame.
| # | Direction | Name | Type | Description |
|---|---|---|---|---|
| 1 | — | DeltaTime | float | The time elapsed since the last frame. |
Attributes: virtual
Source: Source/Schola/Training/Public/TrainingUtils/GymConnectorManager.h
Implementation: Source/Schola/Training/Private/TrainingUtils/GymConnectorManager.cpp
Public Members
| Symbol | Details |
|---|---|
Connector | The gym connector instance managed by this actor. |
Connector
UAbstractGymConnector *Connector = nullptrThe gym connector instance managed by this actor.
Set this to the type of connector you want to use (e.g., gRPC, Manual).
Protected Functions
| Symbol | Details |
|---|---|
BeginPlay | Called when the game starts or when the actor is spawned. |
BeginPlay
virtual void BeginPlay() overrideCalled when the game starts or when the actor is spawned.
Initializes the connector and starts the training process.
Attributes: virtual
Source: Source/Schola/Training/Public/TrainingUtils/GymConnectorManager.h
Implementation: Source/Schola/Training/Private/TrainingUtils/GymConnectorManager.cpp