/// <param name="position">The position.</param>
        /// <param name="ignoredLights">A set of lights to ignore, if any. If this value is a HashSet of LightSources it will be used directly, otherwise the sequence is copied.</param>
        /// <returns>The created receiver</returns>
        public LightReceiver AddLightReceiver (Vector2 position, LightIgnorePredicate lightIgnorePredicate = null) {
            var result = new LightReceiver {
                Position = position,
                LightIgnorePredicate = lightIgnorePredicate
            };

            LightReceivers.Add(result);

            return result;
        }
Exemplo n.º 2
0
        /// <param name="position">The position.</param>
        /// <param name="ignoredLights">A set of lights to ignore, if any. If this value is a HashSet of LightSources it will be used directly, otherwise the sequence is copied.</param>
        /// <returns>The created receiver</returns>
        public LightReceiver AddLightReceiver(Vector2 position, LightIgnorePredicate lightIgnorePredicate = null)
        {
            var result = new LightReceiver {
                Position             = position,
                LightIgnorePredicate = lightIgnorePredicate
            };

            LightReceivers.Add(result);

            return(result);
        }