Beispiel #1
0
        public override bool SetProperty(string propertyName, string value, string[] source, ref int line)
        {
            switch (propertyName)
            {
            case "Max Instances":
                m_maxInstances = Parser.ParseInt(value, line);
                break;

            case "Transition Type":
                m_transitionType = Parser.ParseInt(value, line);
                break;

            case "Behavior":
                m_behaviour = Parser.ParseInt(value, line);
                break;

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

            default:
                return(false);
            }

            return(true);
        }
Beispiel #2
0
		public override bool SetProperty( string propertyName, string value, string[] source, ref int line )
		{
			switch ( propertyName )
			{
				case "Max Instances":
					m_maxInstances = Parser.ParseInt( value, line );
					break;

				case "Transition Type":
					m_transitionType = Parser.ParseInt( value, line );
					break;

				case "Behavior":
					m_behaviour = Parser.ParseInt( value, line );
					break;

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

				default:
					return false;
			}

			return true;
		}
Beispiel #3
0
        public override bool SetProperty(string propertyName, string value, string[] source, ref int line)
        {
            switch (propertyName)
            {
            case "Sound Index":
                m_soundIndex = Parser.ParseInt(value, line);
                break;

            case "Source Marker Min":
                m_sourceMarkerMin = Parser.ParseInt(value, line);
                break;

            case "Source Marker Max":
                m_sourceMarkerMax = Parser.ParseInt(value, line);
                break;

            case "Destination Marker Min":
                m_destMarkerMin = Parser.ParseInt(value, line);
                break;

            case "Destination Marker Max":
                m_destMarkerMax = Parser.ParseInt(value, line);
                break;

            case "Transition Type":
                m_transitionType = Parser.ParseInt(value, line);
                break;

            case "Transition Source":
                m_transitionSource = Parser.ParseInt(value, line);
                break;

            case "Transition Destination":
                m_transitionDest = Parser.ParseInt(value, line);
                break;

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

            default:
                return(false);
            }

            return(true);
        }
Beispiel #4
0
		public override bool SetProperty( string propertyName, string value, string[] source, ref int line )
		{
			switch ( propertyName )
			{
				case "Sound Index":
					m_soundIndex = Parser.ParseInt( value, line );
					break;

				case "Source Marker Min":
					m_sourceMarkerMin = Parser.ParseInt( value, line );
					break;

				case "Source Marker Max":
					m_sourceMarkerMax = Parser.ParseInt( value, line );
					break;

				case "Destination Marker Min":
					m_destMarkerMin = Parser.ParseInt( value, line );
					break;

				case "Destination Marker Max":
					m_destMarkerMax = Parser.ParseInt( value, line );
					break;

				case "Transition Type":
					m_transitionType = Parser.ParseInt( value, line );
					break;

				case "Transition Source":
					m_transitionSource = Parser.ParseInt( value, line );
					break;

				case "Transition Destination":
					m_transitionDest = Parser.ParseInt( value, line );
					break;

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

				default:
					return false;
			}

			return true;
		}