Beispiel #1
0
 public ObjectLayer(MapLayerModel model)
 {
     Name    = model.Name;
     Objects = model.Objects.Select(o => new ObjectCoordinate(o.Id,
                                                              o.X,
                                                              o.Y));
 }
Beispiel #2
0
 public TileLayer(MapLayerModel model)
 {
     Name   = model.Name;
     Width  = model.Width;
     Height = model.Height;
     Type   = model.Type;
     if (model.Type == "tilelayer")
     {
         Data = model.Data.ToList();
         BuildCoordinates();
     }
 }