games.rednblack.h2d.extension.bvb.ResourceManagerParticlePoolProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of libgdx-bvb-extension Show documentation
Show all versions of libgdx-bvb-extension Show documentation
BVB Animation extension for HyperLap2D libgdx runtime
The newest version!
package games.rednblack.h2d.extension.bvb;
import games.rednblack.editor.renderer.resources.IResourceRetriever;
import games.rednblack.h2d.extension.talos.TalosItemType;
import games.rednblack.talos.runtime.ParticleEffectInstancePool;
import games.rednblack.talos.runtime.bvb.BVBParticleEffectPoolProvider;
public class ResourceManagerParticlePoolProvider implements BVBParticleEffectPoolProvider {
protected final IResourceRetriever rm;
public ResourceManagerParticlePoolProvider(IResourceRetriever resourceRetriever) {
rm = resourceRetriever;
}
@Override
public ParticleEffectInstancePool getPool(String effectName) {
return (ParticleEffectInstancePool) rm.getExternalItemType(TalosItemType.TALOS_TYPE, effectName + ".p");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy