Esempio n. 1
0
 internal MapLayoutModel(MapLayoutBuilder builder)
 {
     CellSize    = builder.CellSize;
     Width       = builder.Width;
     Height      = builder.Height;
     Layers      = builder.Layers.Select(layer => layer.Build()).ToList();
     Bounds      = new RectangleF(0, 0, CellSize * Width, CellSize * Height);
     IndexBounds = GetIndexRectangle(Bounds);
 }
Esempio n. 2
0
 public MapLayoutBuilder CreateLayout()
 {
     Layout = MapLayoutBuilder.NewMapLayoutModel();
     return(Layout);
 }