Axiom.ParticleSystems.ParticleAffector.CopyTo C# (CSharp) Method

CopyTo() public method

public CopyTo ( ParticleAffector affector ) : void
affector ParticleAffector
return void
		public virtual void CopyTo( ParticleAffector affector )
		{
			// loop through all registered commands and copy from this instance to the target instance
			foreach ( string key in commandTable.Keys )
			{
				// get the value of the param from this instance
				string val = ( (IPropertyCommand)commandTable[ key ] ).Get( this );

				// set the param on the target instance
				affector.SetParam( key, val );
			}
		}