상속: IGarage
예제 #1
0
        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();
        }
예제 #2
0
        public rFactor(ISimulator sim)
        {
            Simulator = sim;
            Game = new MemoryPolledReader(sim);

            Garage = new rFactorGarage();
            Session = new Session();
            Drivers = new Drivers();

            Player = new DriverPlayer();
        }