예제 #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();
 }