Azmyth.XNA.frmCreateWorld.Update C# (CSharp) Method

Update() public method

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void
        public override void Update(GameTime gameTime)
        {
            int seed = 0;

            m_viewport = Game.GraphicsDevice.Viewport;

            Rectangle                = new Rectangle(0, 0, m_viewport.Width, m_viewport.Height);
            pnlMain.Rectangle        = new Rectangle((Rectangle.Width / 2) - 385, (Rectangle.Height / 2) - 205, 770, 420);
            pnlTitle.Rectangle       = new Rectangle((Rectangle.Width / 2) - 275, (Rectangle.Height / 2) - 225, 550, 40);
            lblTitle.Rectangle       = new Rectangle(0, 0, pnlTitle.Rectangle.Width, pnlTitle.Rectangle.Height);
            btnCreateWorld.Rectangle = new Rectangle(pnlMain.Rectangle.Width - 220, pnlMain.Rectangle.Height - 50, 200, 30);
            lblWorldName.Rectangle   = new Rectangle(pnlMain.Rectangle.Width - 445, 40, 100, 30);
            txtWorldName.Rectangle   = new Rectangle(pnlMain.Rectangle.Width - 390, 40, 210 , 30);
            btnRandomName.Rectangle  = new Rectangle(pnlMain.Rectangle.Width - 170, 40, 150, 30);
            mapMiniMap.Rectangle     = new Rectangle(pnlMain.Rectangle.Width - 270, 100, 250, 250);

            m_world.TerrainNoise = (NoiseTypes)lstTerrainNoise.SelectedItem.Tag;
            m_world.RiverNoise   = (NoiseTypes)lstRiverNoise.SelectedItem.Tag;

            if (int.TryParse(txtSeed.Text, out seed))
            {
                m_world.Seed = seed;
            }

            m_world.ContinentSize = ((10 - sldContinentSize.Value) / 100);
            m_world.CoastLine = sldCoastLine.Value;
            m_world.ShoreLine = sldShoreLine.Value / 100;
            m_world.TreeLine = sldTreeLine.Value / 100;

            m_world.Name = txtWorldName.Text;

            base.Update(gameTime);
        }