示例#1
0
 internal static void Remove(LightComponent3D light)
 {
     if (lights.Contains(light))
     {
         lights.Remove(light);
     }
 }
示例#2
0
 internal static void Add(LightComponent3D light)
 {
     if (!lights.Contains(light))
     {
         lights.Add(light);
     }
 }
示例#3
0
        /// <summary>
        /// Finds a LightComponent.
        /// </summary>
        /// <param name="id">The LightComponent to be found.</param>
        /// <returns>A found LightComponent or null.</returns>
        public static LightComponent3D GetLight(string id)
        {
            LightComponent3D l = null;

            l = (from i in lights
                 where i.ID == id
                 select i).FirstOrDefault();

            return(l);
        }