This C# code sample demonstrates how to retrieve simulation data from a running Microsoft ESP simulation using the SimConnect API.
The functionality of the sample lays the groundwork for many practical applications of the SimConnect API, some examples of which include:
- Storing data collected from a session for:
- Replay later as an After Action Review component of training
- Statistical analysis
- Creating a graphical representation of a session
- Pushing simulation variable data back into the simulation in order to:
- Give waypoints to AI objects
- Place simulation objects directly
- Affect custom panel gauges
The Monitoring AI Objects sample makes the following SimConnect API calls:
- AddToDataDefinition
- SubscribeToSystemEvent
- SetSystemEventState
- RequestDataOnSimObjectType
- RequestDataOnSimObject
The article that accompanies the code sample focuses on RequestDataOnSimObjectType, RequestDataOnSimObject and the relationship between these two SimConnect API calls.
|