Table of Contents

Interface IContentFileCache

Namespace
MonoGame.Framework.Content.Pipeline.Builder
Assembly
MonoGame.Framework.Content.Pipeline.dll

An interface for storing information about the compiled content.

public interface IContentFileCache

Methods

AddDependency(ContentBuilder, IContentFileCache)

Adds the specified file cache as a dependency related to the current content file.

void AddDependency(ContentBuilder builder, IContentFileCache fileCache)

Parameters

builder ContentBuilder

A ContentBuilder the added depedency is related to.

fileCache IContentFileCache

A dependent file cache.

AddDependency(ContentBuilder, string)

Adds the specified file as a dependency related to the current content file.

void AddDependency(ContentBuilder builder, string dependencyPath)

Parameters

builder ContentBuilder

A ContentBuilder the added depedency is related to.

dependencyPath string

A relative or absolute path to the dependency file.

AddOutputFile(ContentBuilder, string)

Adds the specified file as an output file related to the current content file.

void AddOutputFile(ContentBuilder builder, string outputPath)

Parameters

builder ContentBuilder

A ContentBuilder the output file is related to.

outputPath string

A relative or absolute path to the output file.

IsValid(ContentBuilder, ContentInfo)

bool IsValid(ContentBuilder builder, ContentInfo info)

Parameters

builder ContentBuilder

A ContentBuilder the added depedency is related to.

info ContentInfo

A ContentInfo for which to use to check the validity of the cached asset.

Returns

bool

true if the file cache is still valid, false otherwise.