add tile mesh count getter
This commit is contained in:
parent
2adcc2089b
commit
57b028426a
|
@ -13,6 +13,10 @@ public class TileMeshCollection {
|
||||||
public final TextureAtlas atlas;
|
public final TextureAtlas atlas;
|
||||||
Array<TileMesh> meshes;
|
Array<TileMesh> meshes;
|
||||||
|
|
||||||
|
public int count() {
|
||||||
|
return meshes.size;
|
||||||
|
}
|
||||||
|
|
||||||
public TileMeshCollection(TextureAtlas atlas) {
|
public TileMeshCollection(TextureAtlas atlas) {
|
||||||
if (atlas == null)
|
if (atlas == null)
|
||||||
throw new IllegalArgumentException();
|
throw new IllegalArgumentException();
|
||||||
|
|
Loading…
Reference in a new issue