Beispiel #1
0
            /// <summary>
            /// Invokes the Lighting Brightness event.
            /// </summary>
            /// <param name="x"></param>
            /// <param name="y"></param>
            /// <returns></returns>
            public static float InvokeBrightness(int x, int y)
            {
                var args = new LightingBrightnessEventArgs
                {
                    X          = x,
                    Y          = y,
                    Brightness = 0.0f
                };

                Brightness.Invoke(args);
                return(args.Handled ? args.Brightness : -1.0f);
            }