2 using System.Collections.Generic;
4 using Microsoft.Xna.Framework;
5 using Microsoft.Xna.Framework.Graphics;
6 using Microsoft.Xna.Framework.Content.Pipeline;
7 using Microsoft.Xna.Framework.Content.Pipeline.Graphics;
8 using Microsoft.Xna.Framework.Content.Pipeline.Processors;
9 using Microsoft.Xna.Framework.Content.Pipeline.Serialization.Compiler;
11 using TWrite = MapProcessorLib.MapSourceCode;
13 namespace MapProcessorLib
16 /// This class will be instantiated by the XNA Framework Content Pipeline
17 /// to write the specified data type into binary .xnb format.
19 /// This should be part of a Content Pipeline Extension Library project.
22 public class MapWriter : ContentTypeWriter<TWrite>
24 protected override void Write(ContentWriter output, TWrite value)
26 output.Write(value.Lines.Length);
27 foreach (string line in value.Lines)
33 public override string GetRuntimeReader(TargetPlatform targetPlatform)
35 return "CarFire.MapReader, CarFire";