Axiom.ParticleSystems.ParticleEmitter.SetParam C# (CSharp) Method

SetParam() public method

public SetParam ( string name, string val ) : bool
name string
val string
return bool
		public bool SetParam( string name, string val )
		{
			if ( commandTable.ContainsKey( name ) )
			{
				IPropertyCommand command = (IPropertyCommand)commandTable[ name ];

				command.Set( this, val );

				return true;
			}
			else
			{
				return false;
			}
		}

Usage Example

        /// <summary>
        ///
        /// </summary>
        /// <param name="line"></param>
        /// <param name="emitter"></param>
        private void ParseEmitterAttrib(string line, ParticleEmitter emitter)
        {
            string[] values = line.Split(new char[] { ' ' }, 2);

            if (!(emitter.SetParam(values[0], values[1])))
            {
                ParseHelper.LogParserError(values[0], emitter.Type, "Command not found.");
            }
        }
All Usage Examples Of Axiom.ParticleSystems.ParticleEmitter::SetParam