Beyond_Beyaan.Screens.NewGame.DrawGalaxyPreview C# (CSharp) Метод

DrawGalaxyPreview() приватный Метод

private DrawGalaxyPreview ( ) : void
Результат void
        private void DrawGalaxyPreview()
        {
            if (_generatingGalaxy)
            {
                //Don't draw anything, the systems may get updated in middle of drawing, and cause an exception
                return;
            }
            List<StarSystem> systems = _gameMain.Galaxy.GetAllStars();

            if (systems.Count > 0 && camera != null)
            {
                foreach (StarSystem system in systems)
                {
                    GorgonLibrary.Gorgon.CurrentShader = _gameMain.StarShader;
                    //_xPos + 30, _yPos + 430, 240, 235
                    int x = _xPos + 60 + (int)((system.X - camera.CameraX) * camera.ZoomDistance);
                    int y = _yPos + 470 + (int)((system.Y - camera.CameraY) * camera.ZoomDistance);
                    _gameMain.StarShader.Parameters["StarColor"].SetValue(system.StarColor);
                    system.Sprite.Draw(x, y, 0.4f, 0.4f);
                    GorgonLibrary.Gorgon.CurrentShader = null;
                }
                //numOfStarsLabel.Draw();
            }
        }