internal static void Remove(LightComponent3D light) { if (lights.Contains(light)) { lights.Remove(light); } }
internal static void Add(LightComponent3D light) { if (!lights.Contains(light)) { lights.Add(light); } }
/// <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); }