All Downloads are FREE. Search and download functionalities are using the official Maven repository.

games.rednblack.h2d.extension.bvb.SlotRangeSkeletonContainer Maven / Gradle / Ivy

The newest version!
package games.rednblack.h2d.extension.bvb;

import games.rednblack.h2d.extension.spine.SlotRange;
import games.rednblack.talos.runtime.bvb.SkeletonContainer;
import games.rednblack.talos.runtime.render.ParticleRenderer;

public class SlotRangeSkeletonContainer extends SkeletonContainer {

    private BVBSkeletonRenderSeparator skeletonRenderSeparator;
    private SlotRange slotRange;

    public SlotRangeSkeletonContainer(SkeletonContainer skeletonContainer) {
        super(skeletonContainer);
    }

    public void setSkeletonRenderSeparator(BVBSkeletonRenderSeparator skeletonRenderSeparator) {
        this.skeletonRenderSeparator = skeletonRenderSeparator;
    }

    public void setSlotRange(SlotRange slotRange) {
        this.slotRange = slotRange;
    }

    @Override
    protected void drawSkeletonAndVFXNested(ParticleRenderer particleRenderer) {
        if (slotRange != null && skeletonRenderSeparator != null)
            skeletonRenderSeparator.draw(particleRenderer, this, skeleton, slotRange);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy