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
assemblyFilePath
string
AssignTypeConverter<TType, TTypeConverter>()
public void AssignTypeConverter<TType, TTypeConverter>()
Type Parameters
TType
TTypeConverter
BuildContent(string, string, string, string, OpaqueDataDictionary)
public PipelineBuildEvent BuildContent(string sourceFilepath, string outputFilepath = null, string importerName = null, string processorName = null, OpaqueDataDictionary processorParameters = null)
Parameters
sourceFilepath
stringoutputFilepath
stringimporterName
stringprocessorName
stringprocessorParameters
OpaqueDataDictionary
Returns
CleanContent(string, string)
public void CleanContent(string sourceFilepath, string outputFilepath = null)
Parameters
CreateImporter(string)
public IContentImporter CreateImporter(string name)
Parameters
name
string
Returns
CreateProcessor(string, OpaqueDataDictionary)
public IContentProcessor CreateProcessor(string name, OpaqueDataDictionary processorParameters)
Parameters
name
stringprocessorParameters
OpaqueDataDictionary
Returns
FindDefaultProcessor(string)
public string FindDefaultProcessor(string importer)
Parameters
importer
string
Returns
FindImporterByExtension(string)
public string FindImporterByExtension(string ext)
Parameters
ext
string
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
sourceFileName
stringThe source file name.
importerName
stringThe name of the content importer. Can be null.
processorName
stringThe name of the content processor. Can be null.
processorParameters
OpaqueDataDictionaryThe processor parameters. Can be null.
Returns
- string
The asset name.
GetImporterAssemblyTimestamp(string)
public DateTime GetImporterAssemblyTimestamp(string name)
Parameters
name
string
Returns
GetImporterTypes()
public Type[] GetImporterTypes()
Returns
- Type[]
GetProcessorAssemblyTimestamp(string)
public DateTime GetProcessorAssemblyTimestamp(string name)
Parameters
name
string
Returns
GetProcessorDefaultValues(string)
Gets the default values for the content processor parameters.
public OpaqueDataDictionary GetProcessorDefaultValues(string processorName)
Parameters
processorName
stringThe 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
name
string
Returns
GetProcessorTypes()
public Type[] GetProcessorTypes()
Returns
- Type[]
ProcessContent(PipelineBuildEvent)
public object ProcessContent(PipelineBuildEvent pipelineEvent)
Parameters
pipelineEvent
PipelineBuildEvent
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
sourceFilepath
stringoutputFilepath
stringimporterName
stringprocessorName
stringprocessorParameters
OpaqueDataDictionary
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
name
stringprocessorParameters
OpaqueDataDictionary