(FileHandle file)
| 298 | } |
| 299 | |
| 300 | public ParticleEffect getEffect(FileHandle file) { |
| 301 | if (file == null || !file.exists() || !FileType.Absolute.equals(file.type())) { |
| 302 | System.err.println("Failed to load: " + file + "!."); |
| 303 | return null; |
| 304 | } |
| 305 | ParticleEffect effect = manager().get(file.path(), ParticleEffect.class, false); |
| 306 | if (effect == null) { |
| 307 | manager().load(file.path(), ParticleEffect.class, new ParticleEffectLoader.ParticleEffectParameter()); |
| 308 | manager().finishLoadingAsset(file.path()); |
| 309 | effect = manager().get(file.path(), ParticleEffect.class); |
| 310 | } |
| 311 | return effect; |
| 312 | } |
| 313 | |
| 314 | public Texture getDefaultImage() { |
| 315 | if (defaultImage == null) { |
no test coverage detected