PipelineManager¶
-
class
PipelineManager
: System.Object -
readonly string
ProjectDirectory
-
readonly string
OutputDirectory
-
readonly string
IntermediateDirectory
-
ContentBuildLogger
Logger
-
readonly System.Collections.Generic.List<String>
Assemblies
-
GraphicsProfile
Profile
The current target graphics profile for which all content is built.
-
TargetPlatform
Platform
The current target platform for which all content is built.
-
string
Config
The build configuration passed thru to content processors.
-
bool
CompressContent
Gets or sets if the content is compressed.
-
bool
RethrowExceptions
If true exceptions thrown from within an importer or processor are caught and then thrown from the context. Default value is true.
-
public void
AssignTypeConverter<TType, TTypeConverter>
() Type Parameters: - TType –
- TTypeConverter –
-
public void
AddAssembly
(string assemblyFilePath) Parameters: - assemblyFilePath (string) –
-
public System.Type[]
GetImporterTypes
()
-
public System.Type[]
GetProcessorTypes
()
-
public IContentImporter
CreateImporter
(string name) Parameters: - name (string) –
-
public string
FindImporterByExtension
(string ext) Parameters: - ext (string) –
-
public System.DateTime
GetImporterAssemblyTimestamp
(string name) Parameters: - name (string) –
-
public string
FindDefaultProcessor
(string importer) Parameters: - importer (string) –
-
public System.Type
GetProcessorType
(string name) Parameters: - name (string) –
-
public void
ResolveImporterAndProcessor
(string sourceFilepath, ref string importerName, ref string processorName) Parameters: - sourceFilepath (string) –
- (ref) importerName (string) –
- (ref) processorName (string) –
-
public IContentProcessor
CreateProcessor
(string name, OpaqueDataDictionary processorParameters) Parameters: - name (string) –
- processorParameters (Microsoft.Xna.Framework.Content.Pipeline.OpaqueDataDictionary) –
-
public OpaqueDataDictionary
GetProcessorDefaultValues
(string processorName) Gets the default values for the content processor parameters.
Parameters: - processorName (string) – The name of the content processor.
Returns: A dictionary containing the default value for each parameter. Returns :ref:`` if the content processor has not been created yet.
-
public System.DateTime
GetProcessorAssemblyTimestamp
(string name) Parameters: - name (string) –
-
public OpaqueDataDictionary
ValidateProcessorParameters
(string name, OpaqueDataDictionary processorParameters) Parameters: - name (string) –
- processorParameters (Microsoft.Xna.Framework.Content.Pipeline.OpaqueDataDictionary) –
-
public void
RegisterContent
(string sourceFilepath, string outputFilepath, string importerName, string processorName, OpaqueDataDictionary processorParameters) Parameters: - sourceFilepath (string) –
- outputFilepath (string) –
- importerName (string) –
- processorName (string) –
- processorParameters (Microsoft.Xna.Framework.Content.Pipeline.OpaqueDataDictionary) –
-
public PipelineBuildEvent
BuildContent
(string sourceFilepath, string outputFilepath, string importerName, string processorName, OpaqueDataDictionary processorParameters) Parameters: - sourceFilepath (string) –
- outputFilepath (string) –
- importerName (string) –
- processorName (string) –
- processorParameters (Microsoft.Xna.Framework.Content.Pipeline.OpaqueDataDictionary) –
-
public System.Object
ProcessContent
(PipelineBuildEvent pipelineEvent) Parameters: - pipelineEvent (MonoGame.Framework.Content.Pipeline.Builder.PipelineBuildEvent) –
-
public void
CleanContent
(string sourceFilepath, string outputFilepath) Parameters: - sourceFilepath (string) –
- outputFilepath (string) –
-
public string
GetAssetName
(string sourceFileName, string importerName, string processorName, OpaqueDataDictionary processorParameters) Gets an automatic asset name, such as “AssetName_0”.
Parameters: - sourceFileName (string) – The source file name.
- importerName (string) – The name of the content importer. Can be :ref:``.
- processorName (string) – The name of the content processor. Can be :ref:``.
- processorParameters (Microsoft.Xna.Framework.Content.Pipeline.OpaqueDataDictionary) – The processor parameters. Can be :ref:``.
Returns: The asset name.
-
readonly string