Class PipelineBuildEvent
- Assembly
- MonoGame.Framework.Content.Pipeline.dll
Class to provide methods and properties for handling pipeline build events.
public class PipelineBuildEvent
- Inheritance
-
PipelineBuildEvent
- Inherited Members
Constructors
PipelineBuildEvent()
Creates a new pipeline build event.
public PipelineBuildEvent()
Fields
Extension
Gets the extension of the file to use in this pipeline event
public static readonly string Extension
Field Value
Properties
BuildAsset
Gets or sets the additional (nested) assets.
public List<string> BuildAsset { get; set; }
Property Value
Remarks
Additional assets are built by using an ExternalReference<T> and calling BuildAndLoadAsset<TInput, TOutput>(ExternalReference<TInput>, string) or BuildAsset<TInput, TOutput>(ExternalReference<TInput>, string).
Examples: The mesh processor may build textures and effects in addition to the mesh.
BuildOutput
Gets or sets the related output files.
public List<string> BuildOutput { get; set; }
Property Value
Remarks
Related output files are non-XNB files that are included in addition to the XNB files. Related output files need to be copied to the output folder by a content processor and registered by calling AddOutputFile(string).
Dependencies
Gets or sets the dependencies.
public List<string> Dependencies { get; set; }
Property Value
Remarks
Dependencies are extra files that are required in addition to the SourceFile. Dependencies are added using AddDependency(string). Changes to the dependent file causes a rebuilt of the content.
DestFile
Absolute path to the output file.
public string DestFile { get; set; }
Property Value
DestTime
The date/time stamp of the destination file.
public DateTime DestTime { get; set; }
Property Value
Importer
The name of the DLL containing the importer.
public string Importer { get; set; }
Property Value
ImporterTime
The date/time stamp of the DLL containing the importer.
public DateTime ImporterTime { get; set; }
Property Value
Parameters
Gets or sets the parameters of this build event.
public OpaqueDataDictionary Parameters { get; set; }
Property Value
Remarks
Parameter are stored in an OpaqueDataDictionary
ParametersXml
Gets or sets the list of parameters.
public List<PipelineBuildEvent.Pair> ParametersXml { get; set; }
Property Value
Processor
The name of the DLL containing the processor.
public string Processor { get; set; }
Property Value
ProcessorTime
The date/time stamp of the DLL containing the processor.
public DateTime ProcessorTime { get; set; }
Property Value
SourceFile
Absolute path to the source file.
public string SourceFile { get; set; }
Property Value
SourceTime
The date/time stamp of the source file.
public DateTime SourceTime { get; set; }
Property Value
Methods
Load(string)
Creates a pipeline build event from a file.
public static PipelineBuildEvent Load(string filePath)
Parameters
filePath
stringPath of the file to process.
Returns
- PipelineBuildEvent
PipelineBuildEvent instance.
NeedsRebuild(PipelineManager, PipelineBuildEvent)
Checks if the current content files need to be rebuilt.
public bool NeedsRebuild(PipelineManager manager, PipelineBuildEvent cachedEvent)
Parameters
manager
PipelineManagerPipeline manager.
cachedEvent
PipelineBuildEventCached build event.
Returns
- bool
true
if the content needs to be rebuilt; otherwisefalse
.
Save(string)
Saves the build event to a file as serialized Xml.
public void Save(string filePath)
Parameters
filePath
stringFull path to save the file.