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