示例#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;
            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();
        }
示例#3
0
        public rFactor(ISimulator sim)
        {
            Simulator = sim;
            Game = new MemoryPolledReader(sim);

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

            Player = new DriverPlayer();
        }