Beispiel #1
0
        public void RemoveComponent(H1RayTracerComponent InComponent)
        {
            // making sure that there is no dangling
            H1RayTracerComponent Component = RayTracerComponents.Find((e) => { return(InComponent.Descriptor.Id == e.Descriptor.Id); });

            if (Component != null)
            {
                RayTracerComponents.Remove(InComponent);
            }
        }
Beispiel #2
0
        public void AddComponent(H1RayTracerComponent InComponent)
        {
            H1RayTracerComponent Component = RayTracerComponents.Find((e) => { return(InComponent.Descriptor.Id == e.Descriptor.Id); });

            if (Component == null)
            {
                // making sure that there is no overlapped adding on the list
                RayTracerComponents.Add(InComponent);
            }
        }