Instead of having to pass the tile size as a parameter when loading a tileset, grab it automatically from a config file (e.g. a .ini file with the filename and tile sizes), or from the filename directly (in which case, a naming pattern would be enforced, e.g., myTileset_12x12.png.
Instead of having to pass the tile size as a parameter when loading a tileset, grab it automatically from a config file (e.g. a .ini file with the filename and tile sizes), or from the filename directly (in which case, a naming pattern would be enforced, e.g., myTileset_12x12.png.