Axiom.Serialization.MaterialSerializer.ParseReceiveShadows C# (CSharp) Метод

ParseReceiveShadows() приватный Метод

private ParseReceiveShadows ( string parameters, MaterialScriptContext context ) : bool
parameters string
context MaterialScriptContext
Результат bool
		protected static bool ParseReceiveShadows( string parameters, MaterialScriptContext context )
		{
			if ( parameters != "on" && parameters != "off" )
			{
				LogParseError( context, "Bad receive_shadows attribute, valid parameters are 'on' or 'off'." );
			}

			context.material.ReceiveShadows = StringConverter.ParseBool( parameters );

			return false;
		}