public void AddRendererFactory(ParticleSystemRendererFactory factory)
        {
            rendererFactoryList.Add(factory.Type, factory);

            log.InfoFormat("Particle Renderer type '{0}' registered.", factory.Type);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Registers a factory class for creating ParticleSystemRenderer instances.
        /// </summary>
        /// <param name="factory">
        /// factory Pointer to a ParticleSystemRendererFactory subclass created by the plugin or application code.
        /// </param>
        /// <remarks>
        /// Note that the object passed to this function will not be destroyed by the ParticleSystemManager,
        /// since it may have been allocted on a different heap in the case of plugins. The caller must
        /// destroy the object later on, probably on plugin shutdown.
        /// </remarks>
        public void AddRendererFactory(ParticleSystemRendererFactory factory)
        {
            this.rendererFactoryList.Add(factory.Type.ToLower().GetHashCode(), factory);

            LogManager.Instance.Write("Particle Renderer type '{0}' registered.", factory.Type);
        }