take out the TextureAtlas dependency. we'll reverse it (optional dependency)
This commit is contained in:
parent
ef12cab540
commit
a5a063cf2f
|
@ -14,14 +14,9 @@ public class MaterialTileMapping {
|
|||
}
|
||||
|
||||
final ObjectMap<String, TileTexture> mappings;
|
||||
public final TextureAtlas atlas;
|
||||
|
||||
public MaterialTileMapping(TextureAtlas atlas) {
|
||||
if (atlas == null)
|
||||
throw new IllegalArgumentException("atlas cannot be null.");
|
||||
|
||||
public MaterialTileMapping() {
|
||||
this.mappings = new ObjectMap<String, TileTexture>();
|
||||
this.atlas = atlas;
|
||||
}
|
||||
|
||||
public MaterialTileMapping add(String materialName, TextureRegion region) {
|
||||
|
|
Loading…
Reference in a new issue