Пример #1
0
 public TileSource GetTileSource(int tileX, int tileY)
 {
     if (sources [tileX, tileY] == null)
     {
         sources [tileX, tileY] = new TileSource(image, tileX * width, tileY * height, width, height);
     }
     return(sources[tileX, tileY]);
 }
Пример #2
0
 public void Set(TileSource source)
 {
     image = source.Image;
     src   = source.Src;
 }
Пример #3
0
 public void SetTile(int x, int y, TileSource source)
 {
     tiles [x, y].Set(source);
 }