获取TextureRegions
(String name, int maxSize)
| 1940 | * 获取TextureRegions |
| 1941 | */ |
| 1942 | public TextureRegion[] getTextureRegions(String name, int maxSize) { |
| 1943 | TextureRegion[] texs = new TextureRegion[maxSize]; |
| 1944 | String path = name.substring(0, name.lastIndexOf(".")); |
| 1945 | String ext = name.substring(name.lastIndexOf(".")); |
| 1946 | for (int i = 0; i < maxSize; i++) { |
| 1947 | texs[i] = getTextureRegion(path + i + ext); |
| 1948 | } |
| 1949 | return texs; |
| 1950 | } |
| 1951 | |
| 1952 | /** |
| 1953 | * 获取TextureRegions |
nothing calls this directly
no test coverage detected