Exemple #1
0
        protected string BuildObject(object input, string processor, IDictionary <string, object> processorParameters)
        {
            var filename = Guid.NewGuid().ToString("B");

            using (var writer = XmlWriter.Create(filename + ".xml"))
            {
                IntermediateSerializer.Serialize(writer, input, null);
            }
            ContentBuilder.Add(filename + ".xml", null, null, processor, processorParameters);
            return(filename);
        }
Exemple #2
0
 protected void BuildNormalMap(string filename)
 {
     ContentBuilder.Add(filename, null, null, "NormalTextureProcessor", null);
 }
Exemple #3
0
 protected void BuildTexture(string filename, IDictionary <string, object> processorParameters = null)
 {
     ContentBuilder.Add(filename, null, null, "TextureProcessor", processorParameters);
 }
Exemple #4
0
 protected void BuildFont(string filename)
 {
     ContentBuilder.Add(filename, null, null, "FontDescriptionProcessor", null);
 }
Exemple #5
0
 protected void BuildModel(string filename, IDictionary <string, object> processorParameters = null)
 {
     ContentBuilder.Add(filename, null, null, "ExtendedModelProcessor", processorParameters);
 }
Exemple #6
0
 public void Cleanup()
 {
     ContentBuilder.Clear();
     ContentBuilder.Dispose();
 }
Exemple #7
0
 public void Initialize()
 {
     ContentBuilder        = new ContentBuilder();
     Content               = new ContentManager(GraphicsDeviceService.AddRef());
     Content.RootDirectory = ContentBuilder.OutputDirectory;
 }
Exemple #8
0
 protected void RunTheBuild()
 {
     ContentBuilder.Build();
 }