コード例 #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);
        }