public void AddTile(ImageSource tileImage, ExtraImageModel extraImage, Point extraImageOffset)
 {
     _tiles.Add(new TileModel(_tiles.Count, new Tile()
     {
         ExtraImage = extraImage == null ? (ExtraImageRef?)null : new ExtraImageRef
         {
             ExtraImage = extraImage.Id,
             Offset = new Offset
             {
                 X = (int)extraImageOffset.X,
                 Y = (int)extraImageOffset.Y
             }
         }
     }, tileImage));
 }
Esempio n. 2
0
 public void AddTile(ImageSource tileImage, ExtraImageModel extraImage, Point extraImageOffset)
 {
     _tiles.Add(new TileModel(_tiles.Count, new Tile()
     {
         ExtraImage = extraImage == null ? (ExtraImageRef?)null : new ExtraImageRef
         {
             ExtraImage = extraImage.Id,
             Offset     = new Offset
             {
                 X = (int)extraImageOffset.X,
                 Y = (int)extraImageOffset.Y
             }
         }
     }, tileImage));
 }