コード例 #1
0
ファイル: Category.cs プロジェクト: matrix4x4/Space
        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 "Public":
                m_public = Parser.ParseInt(value, line);
                break;

            case "Background Music":
                m_backgroundMusic = Parser.ParseInt(value, line);
                break;

            case "Volume":
                m_volume = Parser.ParseInt(value, line);
                break;

            case "Category Entry":
            case "Parent":                      // So say the docs, but not the XAP file!
                m_parentCategory = new CategoryEntry();
                m_parentCategory.Parse(source, ref line, OwnerProject);
                break;

            case "Instance Limit":
                m_instanceLimit = new InstanceLimit();
                m_instanceLimit.Parse(source, ref line, OwnerProject);
                break;

            default:
                return(false);
            }

            return(true);
        }
コード例 #2
0
ファイル: Category.cs プロジェクト: GlennSandoval/JSIL
		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 "Public":
					m_public = Parser.ParseInt( value, line );
					break;

				case "Background Music":
					m_backgroundMusic = Parser.ParseInt( value, line );
					break;

				case "Volume":
					m_volume = Parser.ParseInt( value, line );
					break;
					
				case "Category Entry":
				case "Parent":	// So say the docs, but not the XAP file!
					m_parentCategory = new CategoryEntry();
					m_parentCategory.Parse( source, ref line, OwnerProject );
					break;

				case "Instance Limit":
					m_instanceLimit = new InstanceLimit();
					m_instanceLimit.Parse( source, ref line, OwnerProject );
					break;

				default:
					return false;
			}

			return true;
		}
コード例 #3
0
ファイル: Cue.cs プロジェクト: matrix4x4/Space
        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 "Variation":
                m_variation = new Variation();
                m_variation.Parse(source, ref line, OwnerProject);
                break;

            case "Sound Entry":
                SoundEntry entry = new SoundEntry();
                entry.Parse(source, ref line, OwnerProject);
                m_soundEntries.Add(entry);
                break;

            case "Instance Limit":
                m_instanceLimit = new InstanceLimit();
                m_instanceLimit.Parse(source, ref line, OwnerProject);
                break;

            case "Transition Entry":                     // Docs say "Transition"
                TransitionEntry transitionEntry = new TransitionEntry();
                transitionEntry.Parse(source, ref line, OwnerProject);
                m_transitionEntries.Add(transitionEntry);
                break;

            default:
                return(false);
            }

            return(true);
        }
コード例 #4
0
ファイル: Cue.cs プロジェクト: GlennSandoval/JSIL
		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 "Variation":
					m_variation = new Variation();
					m_variation.Parse( source, ref line, OwnerProject );
					break;

				case "Sound Entry":
					SoundEntry entry = new SoundEntry();
					entry.Parse( source, ref line, OwnerProject );
					m_soundEntries.Add( entry );
					break;

				case "Instance Limit":
					m_instanceLimit = new InstanceLimit();
					m_instanceLimit.Parse( source, ref line, OwnerProject );
					break;

				case "Transition Entry": // Docs say "Transition"
					TransitionEntry transitionEntry = new TransitionEntry();
					transitionEntry.Parse( source, ref line, OwnerProject );
					m_transitionEntries.Add( transitionEntry );
					break;

				default:
					return false;
			}

			return true;
		}