Reactor.ReactorGame.Update C# (CSharp) Method

Update() protected method

Allows the game to run logic such as updating the world, checking for collisions, gathering input and playing audio.
protected Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime Provides a snapshot of timing values.
return void
        protected override void Update(GameTime gameTime)
        {
            REngine.Instance._gameTime = gameTime;

                game.Update();
            #if XBOX
                services.Update(gameTime);
            #endif
                // Allows the game to exit in case of emergency
                if (AllowEscapeQuit)
                {
                    if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed || Keyboard.GetState().IsKeyDown(Keys.Escape))
                        this.Exit();
                }
                //GraphicsDevice.Clear(ClearOptions.Target | ClearOptions.DepthBuffer, Color.CornflowerBlue, 1.0f, 0);
                //pmv.Update(gameTime);
                // TODO: Add your update logic here
                base.Update(gameTime);
        }