Skip to main content

Class TrafficProcess.ProcessData

Loosely-typed parameter bag passed to ProcessData) so that concrete processes can receive heterogeneous configuration without a custom constructor per subclass.

public class TrafficProcess.ProcessData

Inheritance​

Remarks​

Two typed dictionaries avoid boxing floats (distance and time thresholds) while still accepting Unity Object references (GameObjects, components).

Fields​

objectParameter​

GameObject and component references needed by the process (e.g., the lead vehicle, the actor's own GameObject). Keyed by parameter name.

public Dictionary<string, Object> objectParameter

Field Value​

Dictionary<string, Object>

valueParameter​

Numeric thresholds needed by the process (e.g., "keepDistance", "stopDistance", "stopTime"). Keyed by parameter name.

public Dictionary<string, float> valueParameter

Field Value​

Dictionary<string, float>