forked from MonoGame/MonoGame
-
Notifications
You must be signed in to change notification settings - Fork 0
/
TestImporterContext.cs
47 lines (40 loc) · 1.25 KB
/
TestImporterContext.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
using Microsoft.Xna.Framework.Content.Pipeline;
using System;
using System.Collections.Generic;
namespace MonoGame.Tests.ContentPipeline
{
class TestImporterContext : ContentImporterContext
{
readonly string _intermediateDirectory;
readonly string _outputDirectory;
readonly TestContentBuildLogger _logger;
List<string> _dependencies;
public TestImporterContext(string intermediateDirectory, string outputDirectory)
{
_intermediateDirectory = intermediateDirectory;
_outputDirectory = outputDirectory;
_logger = new TestContentBuildLogger();
_dependencies = new List<string>();
}
public List<string> Dependencies
{
get { return _dependencies; }
}
public override string IntermediateDirectory
{
get { return _intermediateDirectory; }
}
public override ContentBuildLogger Logger
{
get { return _logger; }
}
public override string OutputDirectory
{
get { return _outputDirectory; }
}
public override void AddDependency(string filename)
{
_dependencies.Add(filename);
}
}
}