ExperimentState::Record¶
Class: ExperimentState
Records the full frame into this snapshot: visits every agent and copies the subject's TTL count, points, and displayed prompt type.
Syntax¶
void ExperimentState::Record(TArray< const UExperimentAgentComponent * > agents, AExperimentSubjectState *playerState)
Parameters¶
| Parameter | Type | Description |
|---|---|---|
agents |
TArray< const UExperimentAgentComponent * > |
Array of agent components to visit and record. |
playerState |
AExperimentSubjectState * |
The subject's replicated player state. |
Remarks¶
Call it from your subclass constructor body: at that point the object is fully constructed as your subclass, so your Visit() overrides are the ones that run. agents Array of agent components to visit and record. playerState The subject's replicated player state.