package electrosphere.client.effects;

// import electrosphere.client.entity.particle.ParticleUtils;
// import electrosphere.engine.Globals;
// import electrosphere.entity.ClientEntityUtils;
// import electrosphere.entity.Entity;
// import electrosphere.entity.EntityUtils;
// import electrosphere.game.data.particle.ParticleData;

// import java.util.Random;

// import org.joml.Quaterniond;
import org.joml.Vector3d;

/**
 * Utility functions for spawning particle effects
 */
public class ParticleEffects {
    
    /**
     * Spawns bloodsplats based on a collision
     * @param position The position of the collision
     */
    public static void spawnBloodsplats(Vector3d position){
        // int max = 30;
        // int min = 10;
        // ParticleData bloodsplatData = null;
        // for(ParticleData data : Globals.gameConfigCurrent.getParticleDefinition().getData()){
        //     if(data.getName().equals("blood")){
        //         bloodsplatData = data;
        //     }
        // }
        // Random rand = new Random();
        // int num = (int)(rand.nextFloat() * (max - min)) + min;
        // for(int i = 0; i < num; i++){
        //     Vector3d destination = new Vector3d(rand.nextFloat() - 0.5f,rand.nextFloat() - 0.5f,rand.nextFloat() - 0.5f).normalize();
        //     Entity particleEntity = ParticleUtils.clientSpawnBillboardParticle(bloodsplatData, destination);
        //     ClientEntityUtils.initiallyPositionEntity(
        //         particleEntity,
        //         position,
        //         new Quaterniond()
        //     );
        //     EntityUtils.getScale(particleEntity).mul(bloodsplatData.getSize());
        // }
    }
    
}
