Class ContentRule
- Assembly
- MonoGame.Framework.Content.Pipeline.dll
A rule by which ContentCollection includes or excludes the files.
public abstract class ContentRule
- Inheritance
-
ContentRule
- Derived
- Inherited Members
Properties
Pattern
A pattern passed from ContentCollection for using in IsMatch(string) method.
public string Pattern { get; init; }
Property Value
Methods
IsMatch(string)
Used in ContentCollection to check if the passed filePath matches the current Pattern.
public abstract bool IsMatch(string filePath)
Parameters
filePathstringRelative path to the content file.
Returns
- bool
Returns a boolean indicating if the rule has matched the file.