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]); }
public void Set(TileSource source) { image = source.Image; src = source.Src; }
public void SetTile(int x, int y, TileSource source) { tiles [x, y].Set(source); }