public ObjectLayer(MapLayerModel model) { Name = model.Name; Objects = model.Objects.Select(o => new ObjectCoordinate(o.Id, o.X, o.Y)); }
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(); } }