Axiom.Core.Light.CreateAnimableValue C# (CSharp) Method

CreateAnimableValue() public method

public CreateAnimableValue ( string valueName ) : Axiom.Animating.AnimableValue
valueName string
return Axiom.Animating.AnimableValue
		public override AnimableValue CreateAnimableValue( string valueName )
		{
			switch ( valueName )
			{
				case "diffuseColour":
				case "Diffuse":
					return new LightDiffuseColorValue( this );
				case "specularColour":
				case "Specular":
					return new LightSpecularColorValue( this );
				case "attenuation":
					return new LightAttenuationValue( this );
				case "AttenuationRange":
					return new LightAttenuationRangeValue( this );
				case "AttenuationConstant":
					return new LightAttenuationConstantValue( this );
				case "AttenuationLinear":
					return new LightAttenuationLinearValue( this );
				case "AttenuationQuadratic":
					return new LightAttenuationQuadraticValue( this );
				case "spotlightInner":
					return new LightSpotlightInnerValue( this );
				case "spotlightOuter":
					return new LightSpotlightOuterValue( this );
				case "spotlightFalloff":
					return new LightSpotlightFalloffValue( this );
			}
			throw new Exception( string.Format( "Could not find animable attribute '{0}'", valueName ) );
		}