Exemplo n.º 1
0
 public void Write(BinaryWriterEx output)
 {
     output.WriteAscii("8WVR", 4);
     output.Write(LandRangeX);
     output.Write(LandRangeY);
     output.Write(TerrainRangeX);
     output.Write(TerrainRangeY);
     output.Write(CellSize);
     output.WriteFloats(Elevation);
     output.WriteUshorts(MaterialIndex);
     output.Write(MatNames.Length);
     foreach (var mat in MatNames)
     {
         if (!string.IsNullOrEmpty(mat))
         {
             output.WriteAscii32(mat);
         }
         output.WriteAscii32("");
     }
     foreach (var obj in Objects)
     {
         obj.Write(output);
     }
 }
 internal void Write(BinaryWriterEx output)
 {
     Transform.Write(output);
     output.Write(ObjectID);
     output.WriteAscii32(Model);
 }