Struct FSharedEnvironmentState
- struct FSharedEnvironmentState
-
A Struct representing the state of an environment given by a set of AgentStates.
Public Functions
- inline FSharedEnvironmentState()
-
Default constructor for FSharedEnvironmentState.
- inline void AddSharedAgentState(int AgentId, FTrainerState *SharedStatePointer)
-
Add a shared agent state to the shared environment state.
- Parameters:
-
-
AgentId – [in] The key to add the agent state under
-
SharedStatePointer – [inout] The shared agent state to add
-
- inline void ToProto(Schola::EnvironmentState &OutMsg) const
-
Fill a protobuf message (Schola::EnvironmentState) with the contents of this object.
- Parameters:
-
OutMsg – [out] A reference to the protobuf message to fill
- inline void ToProto(Schola::EnvironmentState *OutMsg) const
-
Fill a protobuf message (Schola::EnvironmentState) with the contents of this object.
- Parameters:
-
OutMsg – [out] A pointer to the protobuf message to fill
Public Members
- TSortedMap<int, FTrainerState*> AgentStates
-
Map from AgentId to AgentState.