DungeonMasterEngine.DungeonContent.Dungeon.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)
        {
            Time = gameTime;
            if (currentVisibleTiles == null)
                CurrentPlayer_LocationChanged(this, new EventArgs());

            Effect.World = Matrix.Identity;
            Effect.View = Theron.View;
            Effect.Projection = Theron.Projection;

            foreach (var tile in CurrentLevel.Tiles)
            {
                tile.Update(gameTime);
            }

            base.Update(gameTime);
        }