Class PipelineManager
- Assembly
- MonoGame.Framework.Content.Pipeline.dll
public class PipelineManager
- Inheritance
-
PipelineManager
- Inherited Members
Constructors
PipelineManager(string, string, string)
public PipelineManager(string projectDir, string outputDir, string intermediateDir)
Parameters
Properties
Assemblies
public List<string> Assemblies { get; }
Property Value
CompressContent
Gets or sets if the content is compressed.
public bool CompressContent { get; set; }
Property Value
Config
The build configuration passed thru to content processors.
public string Config { get; set; }
Property Value
ContentStats
public ContentStatsCollection ContentStats { get; }
Property Value
IntermediateDirectory
public string IntermediateDirectory { get; }
Property Value
Logger
public ContentBuildLogger Logger { get; set; }
Property Value
OutputDirectory
public string OutputDirectory { get; }
Property Value
Platform
The current target platform for which all content is built.
public TargetPlatform Platform { get; set; }
Property Value
Profile
The current target graphics profile for which all content is built.
public GraphicsProfile Profile { get; set; }
Property Value
ProjectDirectory
public string ProjectDirectory { get; }
Property Value
RethrowExceptions
If true exceptions thrown from within an importer or processor are caught and then thrown from the context. Default value is true.
public bool RethrowExceptions { get; set; }
Property Value
Methods
AddAssembly(string)
public void AddAssembly(string assemblyFilePath)
Parameters
assemblyFilePathstring
AssignTypeConverter<TType, TTypeConverter>()
public void AssignTypeConverter<TType, TTypeConverter>()
Type Parameters
TTypeTTypeConverter
BuildContent(string, string, string, string, OpaqueDataDictionary)
public PipelineBuildEvent BuildContent(string sourceFilepath, string outputFilepath = null, string importerName = null, string processorName = null, OpaqueDataDictionary processorParameters = null)
Parameters
sourceFilepathstringoutputFilepathstringimporterNamestringprocessorNamestringprocessorParametersOpaqueDataDictionary
Returns
CleanContent(string, string)
public void CleanContent(string sourceFilepath, string outputFilepath = null)
Parameters
CreateImporter(string)
public IContentImporter CreateImporter(string name)
Parameters
namestring
Returns
CreateProcessor(string, OpaqueDataDictionary)
public IContentProcessor CreateProcessor(string name, OpaqueDataDictionary processorParameters)
Parameters
namestringprocessorParametersOpaqueDataDictionary
Returns
FindDefaultProcessor(string)
public string FindDefaultProcessor(string importer)
Parameters
importerstring
Returns
FindImporterByExtension(string)
public string FindImporterByExtension(string ext)
Parameters
extstring
Returns
GetAssetName(string, string, string, OpaqueDataDictionary)
Gets an automatic asset name, such as "AssetName_0".
public string GetAssetName(string sourceFileName, string importerName, string processorName, OpaqueDataDictionary processorParameters)
Parameters
sourceFileNamestringThe source file name.
importerNamestringThe name of the content importer. Can be null.
processorNamestringThe name of the content processor. Can be null.
processorParametersOpaqueDataDictionaryThe processor parameters. Can be null.
Returns
- string
The asset name.
GetImporterAssemblyTimestamp(string)
public DateTime GetImporterAssemblyTimestamp(string name)
Parameters
namestring
Returns
GetImporterTypes()
public Type[] GetImporterTypes()
Returns
- Type[]
GetProcessorAssemblyTimestamp(string)
public DateTime GetProcessorAssemblyTimestamp(string name)
Parameters
namestring
Returns
GetProcessorDefaultValues(string)
Gets the default values for the content processor parameters.
public OpaqueDataDictionary GetProcessorDefaultValues(string processorName)
Parameters
processorNamestringThe name of the content processor.
Returns
- OpaqueDataDictionary
A dictionary containing the default value for each parameter. Returns null if the content processor has not been created yet.
GetProcessorType(string)
public Type GetProcessorType(string name)
Parameters
namestring
Returns
GetProcessorTypes()
public Type[] GetProcessorTypes()
Returns
- Type[]
ProcessContent(PipelineBuildEvent)
public object ProcessContent(PipelineBuildEvent pipelineEvent)
Parameters
pipelineEventPipelineBuildEvent
Returns
RegisterContent(string, string, string, string, OpaqueDataDictionary)
public void RegisterContent(string sourceFilepath, string outputFilepath = null, string importerName = null, string processorName = null, OpaqueDataDictionary processorParameters = null)
Parameters
sourceFilepathstringoutputFilepathstringimporterNamestringprocessorNamestringprocessorParametersOpaqueDataDictionary
ResolveImporterAndProcessor(string, ref string, ref string)
public void ResolveImporterAndProcessor(string sourceFilepath, ref string importerName, ref string processorName)
Parameters
ValidateProcessorParameters(string, OpaqueDataDictionary)
public OpaqueDataDictionary ValidateProcessorParameters(string name, OpaqueDataDictionary processorParameters)
Parameters
namestringprocessorParametersOpaqueDataDictionary