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); }
protected void BuildNormalMap(string filename) { ContentBuilder.Add(filename, null, null, "NormalTextureProcessor", null); }
protected void BuildTexture(string filename, IDictionary <string, object> processorParameters = null) { ContentBuilder.Add(filename, null, null, "TextureProcessor", processorParameters); }
protected void BuildFont(string filename) { ContentBuilder.Add(filename, null, null, "FontDescriptionProcessor", null); }
protected void BuildModel(string filename, IDictionary <string, object> processorParameters = null) { ContentBuilder.Add(filename, null, null, "ExtendedModelProcessor", processorParameters); }
public void Cleanup() { ContentBuilder.Clear(); ContentBuilder.Dispose(); }
public void Initialize() { ContentBuilder = new ContentBuilder(); Content = new ContentManager(GraphicsDeviceService.AddRef()); Content.RootDirectory = ContentBuilder.OutputDirectory; }
protected void RunTheBuild() { ContentBuilder.Build(); }