Exemplo n.º 1
0
        public override bool SetProperty(string propertyName, string value, string[] source, ref int line)
        {
            switch (propertyName)
            {
            case "Variable Entry":
                m_variableEntry = new VariableEntry();
                m_variableEntry.Parse(source, ref line, OwnerProject);
                break;

            case "Constant":
                m_constant = Parser.ParseFloat(value, line);
                break;

            case "Min Random":
                m_minRandom = Parser.ParseFloat(value, line);
                break;

            case "Max Random":
                m_maxRandom = Parser.ParseFloat(value, line);
                break;

            default:
                return(false);
            }

            return(true);
        }
Exemplo n.º 2
0
        public override bool SetProperty(string propertyName, string value, string[] source, ref int line)
        {
            switch (propertyName)
            {
            case "Variable Entry":
                m_variable = new VariableEntry();
                m_variable.Parse(source, ref line, OwnerProject);
                break;

            case "Equation":
                m_equation = new Equation();
                m_equation.Parse(source, ref line, OwnerProject);
                break;

            case "Recurrence":
                m_recurrence = new Recurrence();
                m_recurrence.Parse(source, ref line, OwnerProject);
                break;

            default:
                return(base.SetProperty(propertyName, value, source, ref line));
            }

            return(true);
        }
Exemplo n.º 3
0
        public override bool SetProperty(string propertyName, string value, string[] source, ref int line)
        {
            switch (propertyName)
            {
            case "Variation Type":
                m_type = Parser.ParseInt(value, line);
                break;

            case "Variation Table Type":
                m_tableType = Parser.ParseInt(value, line);
                break;

            case "New Variation on Loop":
                m_newVariationOnLoop = Parser.ParseInt(value, line);
                break;

            case "Variable Entry":                      // Docs say "Variable Index", default 0xffff
                m_variableEntry = new VariableEntry();
                m_variableEntry.Parse(source, ref line, OwnerProject);
                break;

            default:
                return(false);
            }

            return(true);
        }
Exemplo n.º 4
0
        public override bool SetProperty(string propertyName, string value, string[] source, ref int line)
        {
            switch (propertyName)
            {
            case "Name":
                m_name = value;
                break;

            case "Property":
                m_property = Parser.ParseInt(value, line);
                break;

            case "Sound":
                m_sound = Parser.ParseInt(value, line);
                break;

            case "Line Color":
                m_lineColour = Parser.ParseUint(value, line);
                break;

            case "Viewable":
                m_viewable = Parser.ParseInt(value, line);
                break;

            case "Effect Parameter Entry":
                EffectParameterEntry entry = new EffectParameterEntry();
                entry.Parse(source, ref line, OwnerProject);
                m_effectParameterEntries.Add(entry);
                break;

            case "RPC Point":
                RpcPoint point = new RpcPoint();
                point.Parse(source, ref line, OwnerProject);
                m_rpcPoints.Add(point);
                break;

            case "Variable Entry":                      // Not in the docs!
                m_variable = new VariableEntry();
                m_variable.Parse(source, ref line, OwnerProject);
                // XXX can you have more than one? If so we need a List
                break;

            default:
                return(false);
            }

            return(true);
        }
Exemplo n.º 5
0
		public override bool SetProperty( string propertyName, string value, string[] source, ref int line )
		{
			switch ( propertyName )
			{
				case "Name":
					m_name = value;
					break;

				case "Comment":
					m_comment = Parser.ParseComment( value, source, ref line );
					break;

				case "Variable Entry":
					VariableEntry entry = new VariableEntry();
					entry.Parse( source, ref line, OwnerProject );
					m_variables.Add( entry.FindVariable() );
					break;

				case "RPC Curve":
					RpcCurve curve = new RpcCurve();
					curve.Parse( source, ref line, OwnerProject );
					m_rpcCurves.Add( curve );
					m_variables.Add( curve.m_variable.FindVariable() );
					break;

				case "Effect Entry":
					m_effectEntry = new EffectEntry();
					m_effectEntry.Parse( source, ref line, OwnerProject );
					// XXX what if you can have more than one? We'd need a List
					break;

				default:
					return false;
			}

			return true;
		}
Exemplo n.º 6
0
        public override bool SetProperty(string propertyName, string value, string[] source, ref int line)
        {
            switch (propertyName)
            {
            case "Name":
                m_name = value;
                break;

            case "Comment":
                m_comment = Parser.ParseComment(value, source, ref line);
                break;

            case "Variable Entry":
                VariableEntry entry = new VariableEntry();
                entry.Parse(source, ref line, OwnerProject);
                m_variables.Add(entry.FindVariable());
                break;

            case "RPC Curve":
                RpcCurve curve = new RpcCurve();
                curve.Parse(source, ref line, OwnerProject);
                m_rpcCurves.Add(curve);
                m_variables.Add(curve.m_variable.FindVariable());
                break;

            case "Effect Entry":
                m_effectEntry = new EffectEntry();
                m_effectEntry.Parse(source, ref line, OwnerProject);
                // XXX what if you can have more than one? We'd need a List
                break;

            default:
                return(false);
            }

            return(true);
        }
Exemplo n.º 7
0
		public override bool SetProperty( string propertyName, string value, string[] source, ref int line )
		{
			switch ( propertyName )
			{
				case "Name":
					m_name = value;
					break;

				case "Property":
					m_property = Parser.ParseInt( value, line );
					break;

				case "Sound":
					m_sound = Parser.ParseInt( value, line );
					break;

				case "Line Color":
					m_lineColour = Parser.ParseUint( value, line );
					break;

				case "Viewable":
					m_viewable = Parser.ParseInt( value, line );
					break;

				case "Effect Parameter Entry":
					EffectParameterEntry entry = new EffectParameterEntry();
					entry.Parse( source, ref line, OwnerProject );
					m_effectParameterEntries.Add( entry );
					break;

				case "RPC Point":
					RpcPoint point = new RpcPoint();
					point.Parse( source, ref line, OwnerProject );
					m_rpcPoints.Add( point );
					break;

				case "Variable Entry":	// Not in the docs!
					m_variable = new VariableEntry();
					m_variable.Parse( source, ref line, OwnerProject );
					// XXX can you have more than one? If so we need a List
					break;

				default:
					return false;
			}

			return true;
		}
Exemplo n.º 8
0
		public override bool SetProperty( string propertyName, string value, string[] source, ref int line )
		{
			switch ( propertyName )
			{
				case "Variation Type":
					m_type = Parser.ParseInt( value, line );
					break;

				case "Variation Table Type":
					m_tableType = Parser.ParseInt( value, line );
					break;

				case "New Variation on Loop":
					m_newVariationOnLoop = Parser.ParseInt( value, line );
					break;

				case "Variable Entry":	// Docs say "Variable Index", default 0xffff
					m_variableEntry = new VariableEntry();
					m_variableEntry.Parse( source, ref line, OwnerProject );
					break;

				default:
					return false;
			}

			return true;
		}
Exemplo n.º 9
0
		public override bool SetProperty( string propertyName, string value, string[] source, ref int line )
		{
			switch ( propertyName )
			{
				case "Variable Entry":
					m_variableEntry = new VariableEntry();
					m_variableEntry.Parse( source, ref line, OwnerProject );
					break;

				case "Constant":
					m_constant = Parser.ParseFloat( value, line );
					break;

				case "Min Random":
					m_minRandom = Parser.ParseFloat( value, line );
					break;

				case "Max Random":
					m_maxRandom = Parser.ParseFloat( value, line );
					break;

				default:
					return false;
			}

			return true;
		}
Exemplo n.º 10
0
		public override bool SetProperty( string propertyName, string value, string[] source, ref int line )
		{
			switch ( propertyName )
			{
				case "Variable Entry":
					m_variable = new VariableEntry();
					m_variable.Parse( source, ref line, OwnerProject );
					break;
				
				case "Equation":
					m_equation = new Equation();
					m_equation.Parse( source, ref line, OwnerProject );
					break;

				case "Recurrence":
					m_recurrence = new Recurrence();
					m_recurrence.Parse( source, ref line, OwnerProject );
					break;

				default:
					return base.SetProperty( propertyName, value, source, ref line );
			}

			return true;
		}