public rFactor(ISimulator sim) { Simulator = sim; MMF = new rFactorMMF(); if (Simulator.UseMemoryReader) { Game = new MemoryPolledReader(sim); } else { Game = null; } Garage = new rFactorGarage(); Session = new Session(); Drivers = new Drivers(); Player = new DriverPlayer(); Game.Diagnostic = true; var t = new Timer(1000); t.AutoReset = true; t.Elapsed += (a, b) => Debug.WriteLine("RPM: " + Game.ReadCalls); t.Start(); }
// TODO: This class should do version detect first before initializing session, drivers and driverplayer classes. public rFactor2(Simulator simulator) { Sim = simulator; Game = new MemoryPolledReader(simulator); Session = new Session(); Drivers = new Drivers(); Player = new DriverPlayer(); Garage = new rFactor2Garage(); }
public rFactor(ISimulator sim) { Simulator = sim; Game = new MemoryPolledReader(sim); Garage = new rFactorGarage(); Session = new Session(); Drivers = new Drivers(); Player = new DriverPlayer(); }
public void Initialize() { _Memory = new MemoryPolledReader(this); new FalconBms(); _Modules = new SimulatorModules(); _Modules.Track_Coordinates = false; _Modules.Track_MapFile = false; _Modules.Times_LapsBasic = false; _Modules.Times_LastSectors = false; _Modules.Times_History_LapTimes = false; _Modules.Engine_Power = false; _Modules.Engine_PowerCurve = false; _Modules.Aero_Drag = false; }
public void Initialize() { SimulatorModules _Modules = new SimulatorModules(); _Modules.Time_Available = false; // The plug-in knows the session time. _Modules.Track_Coordinates = true; _Modules.Track_MapFile = false; _Modules.Times_LapsBasic = false; _Modules.Times_LastSectors = true; _Modules.Times_History_LapTimes = false; _Modules.Times_History_SectorTimes = false; _Modules.Engine_Power = false; _Modules.Engine_PowerCurve = false; _Modules.Aero_Drag = false; Modules = _Modules; Drivers = new NetworkDrivers(); Player = new NetworkDriverPlayer(); Session = new NetworkSession(); Garage = new NetworkGarage(); Memory = null; Telemetry.m.Net.Change += Net_Change; }