/// <summary>
 ///     Internal constructor.  This class cannot be instantiated externally.
 /// </summary>
 internal ParticleSystemManager()
 {
     if (instance == null)
     {
         instance = this;
     }
 }
        /// <summary>
        ///     Called when the engine is shutting down.
        /// </summary>
        public void Dispose()
        {
            //clear all the collections
            Clear();

            instance = null;
        }
Exemple #3
0
        /// <summary>
        ///     Internal constructor.  This class cannot be instantiated externally.
        /// </summary>
        internal ParticleSystemManager()
            : base()
        {
            if (instance == null)
            {
                instance = this;
            }

#if !AXIOM_USENEWCOMPILERS
            this._scriptPatterns.Add("*.particle");
            ResourceGroupManager.Instance.RegisterScriptLoader(this);
#endif
            // AXIOM_USENEWCOMPILERS

            //TODO : MovableObjectFactory : _psFactory = new new ParticleSystemFactory();
            //TODO : MovableObjectFactory : Root.Instance.RegisterMovableObjectFactory( _psFactory );
        }
Exemple #4
0
        /// <summary>
        /// Called when the engine is shutting down.
        /// </summary>
        /// <param name="disposeManagedResources"></param>
        protected override void dispose(bool disposeManagedResources)
        {
            if (!IsDisposed)
            {
                if (disposeManagedResources)
                {
                    //clear all the collections
                    Clear();

                    //TODO : MovableObjectFactory : Root.Instance.UnregisterMovableObjectFactory( _psFactory );
                    //TODO : MovableObjectFactory : _psFactory = null;
                    instance = null;
                }
            }

            base.dispose(disposeManagedResources);
        }
        /// <summary>
        ///     Called when the engine is shutting down.
        /// </summary>
        public void Dispose()
        {
            //clear all the collections
            Clear();

            instance = null;
        }
 /// <summary>
 ///     Internal constructor.  This class cannot be instantiated externally.
 /// </summary>
 internal ParticleSystemManager()
 {
     if (instance == null) {
         instance = this;
     }
 }
		/// <summary>
		///     Internal constructor.  This class cannot be instantiated externally.
		/// </summary>
		internal ParticleSystemManager()
			: base()
		{
			if ( instance == null )
			{
				instance = this;
			}

#if !AXIOM_USENEWCOMPILERS
			this._scriptPatterns.Add( "*.particle" );
			ResourceGroupManager.Instance.RegisterScriptLoader( this );
#endif
			// AXIOM_USENEWCOMPILERS

			//TODO : MovableObjectFactory : _psFactory = new new ParticleSystemFactory();
			//TODO : MovableObjectFactory : Root.Instance.RegisterMovableObjectFactory( _psFactory );
		}
		/// <summary>
		/// Called when the engine is shutting down.
		/// </summary>
		/// <param name="disposeManagedResources"></param>
		protected override void dispose( bool disposeManagedResources )
		{
			if ( !IsDisposed )
			{
				if ( disposeManagedResources )
				{
					//clear all the collections
					Clear();

					//TODO : MovableObjectFactory : Root.Instance.UnregisterMovableObjectFactory( _psFactory );
					//TODO : MovableObjectFactory : _psFactory = null;
					instance = null;
				}
			}

			base.dispose( disposeManagedResources );
		}