Here are the examples of the csharp api class CrewChiefV4.iRacing.Driver.ParseStaticSessionInfo(SessionInfo) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Example
0
1. Example
Project: CrewChiefV4
Source File: Driver.cs
Source File: Driver.cs
public static Driver FromSessionInfo(SessionInfo info, int carIdx) { var query = info["DriverInfo"]["Drivers"]["CarIdx", carIdx]; string name; if (!query["UserName"].TryGetValue(out name)) { // Driver not found return null; } var driver = new Driver(); driver.Id = carIdx; driver.ParseStaticSessionInfo(info); driver.ParseDynamicSessionInfo(info); return driver; }