public FogSystemManager(MCamera pCam, GameObject pTarget) : base(false) { _lightAlpha = new Bitmap("data/player_light_grid_map.png"); _lightSprite = new Sprite("data/player_light_grid_map.png", false, false); _brushes = new Brush[4]; SetBrushes(HatchStyle.Cross); _bg = new EasyDraw(game.width, game.height); pCam.AddChild(_bg); _bg.SetOriginToCenter(); _bg.Clear(Color.FromArgb(100, Color.Black)); _cam = pCam; _mainTarget = pTarget; string[] hatchesStrs = new string[51]; for (int i = 0; i < 51; i++) { var hatchStyle = (HatchStyle)i; hatchesStrs[i] = hatchStyle.ToString(); } hatchesStrs = hatchesStrs.OrderBy(h => h).ToArray(); _hatchStyles = new HatchStyle[51]; for (int i = 0; i < _hatchStyles.Length; i++) { var hatchStyle = Enum.Parse(typeof(HatchStyle), hatchesStrs[i]); _hatchStyles[i] = (HatchStyle)hatchStyle; } Console.WriteLine($"{this}: {string.Join("\r\n", _hatchStyles)}"); }