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;
|
||||
Array<TileMesh> meshes;
|
||||
|
||||
public int count() {
|
||||
return meshes.size;
|
||||
}
|
||||
|
||||
public TileMeshCollection(TextureAtlas atlas) {
|
||||
if (atlas == null)
|
||||
throw new IllegalArgumentException();
|
||||
|
|
Loading…
Reference in a new issue