예제 #1
0
파일: Events.cs 프로젝트: atom0s/Detox
            /// <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);
            }