public override bool SetProperty( string propertyName, string value, string[] source, ref int line ) { switch ( propertyName ) { case "Xbox File": m_xboxFile = value; break; case "Windows File": m_windowsFile = value; break; case "Header File": m_headerFile = value; break; case "Shared Settings File": m_sharedSettingsFile = value; break; case "Exclude Category Names": m_excludeCategoryNames = Parser.ParseInt( value, line ); break; case "Exclude Variable Names": m_excludeVariableNames = Parser.ParseInt( value, line ); break; case "Last Modified Low": m_lastModifiedLow = Parser.ParseUint( value, line ); break; case "Last Modified High": m_lastModifiedHigh = Parser.ParseUint( value, line ); break; case "Category": Category category = new Category(); category.Parse( source, ref line, OwnerProject ); m_categories.Add( category ); break; case "Variable": Variable variable = new Variable(); variable.Parse( source, ref line, OwnerProject ); m_variables.Add( variable ); break; case "Effect": Effect effect = new Effect(); effect.Parse( source, ref line, OwnerProject ); m_effects.Add( effect ); break; case "Codec Preset": // So says the docs case "Compression Preset": // So say XACT files! CompressionPreset preset = new CompressionPreset(); preset.Parse( source, ref line, OwnerProject ); m_compressionPresets.Add( preset ); break; case "RPC": Rpc rpc = new Rpc(); rpc.Parse( source, ref line, OwnerProject ); m_rpcs.Add( rpc ); break; default: return false; } return true; }
public override bool SetProperty(string propertyName, string value, string[] source, ref int line) { switch (propertyName) { case "Xbox File": m_xboxFile = value; break; case "Windows File": m_windowsFile = value; break; case "Header File": m_headerFile = value; break; case "Shared Settings File": m_sharedSettingsFile = value; break; case "Exclude Category Names": m_excludeCategoryNames = Parser.ParseInt(value, line); break; case "Exclude Variable Names": m_excludeVariableNames = Parser.ParseInt(value, line); break; case "Last Modified Low": m_lastModifiedLow = Parser.ParseUint(value, line); break; case "Last Modified High": m_lastModifiedHigh = Parser.ParseUint(value, line); break; case "Category": Category category = new Category(); category.Parse(source, ref line, OwnerProject); m_categories.Add(category); break; case "Variable": Variable variable = new Variable(); variable.Parse(source, ref line, OwnerProject); m_variables.Add(variable); break; case "Effect": Effect effect = new Effect(); effect.Parse(source, ref line, OwnerProject); m_effects.Add(effect); break; case "Codec Preset": // So says the docs case "Compression Preset": // So say XACT files! CompressionPreset preset = new CompressionPreset(); preset.Parse(source, ref line, OwnerProject); m_compressionPresets.Add(preset); break; case "RPC": Rpc rpc = new Rpc(); rpc.Parse(source, ref line, OwnerProject); m_rpcs.Add(rpc); break; default: return(false); } return(true); }