add tile mesh count getter

This commit is contained in:
Gered 2013-07-21 22:23:25 -04:00
parent 2adcc2089b
commit 57b028426a

View file

@ -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();