#include "../Const_IDs.dnh"

let ImgPath = [
GetCurrentScriptDirectory ~ "./img/Cherry.png",
GetCurrentScriptDirectory ~ "./img/Circle.png",
GetCurrentScriptDirectory ~ "./img/ConcentrationCircle.png",
GetCurrentScriptDirectory ~ "./img/Flower.png",
GetCurrentScriptDirectory ~ "./img/Heart.png",
GetCurrentScriptDirectory ~ "./img/Inverse.png",
GetCurrentScriptDirectory ~ "./img/Magic.png",
GetCurrentScriptDirectory ~ "./img/Maple.png",
GetCurrentScriptDirectory ~ "./img/Music.png",
GetCurrentScriptDirectory ~ "./img/Snow.png",
GetCurrentScriptDirectory ~ "./img/Star.png",
GetCurrentScriptDirectory ~ "./img/Default_Effect.png"];

function ImgEvent(){
    alternative(GetEventType)
        case(BOSS_IS_CONC){
			ConcA1(atoi(GetEventArgument(0)[0]),GetEventArgument(0)[1],GetEventArgument(0)[2],atoi(GetEventArgument(0)[3]),GetEventArgument(0)[4]);
        }
        case(BOSS_IS_CONC_RAINBOW){
            ConcA1_Rainbow(atoi(GetEventArgument(0)[0]),GetEventArgument(0)[1],atoi(GetEventArgument(0)[2]));
        }
        case(BOSS_IS_CONC2){
			ConcA2(atoi(GetEventArgument(0)[0]),GetEventArgument(0)[1]);
        }
        case(BOSS_IS_BURST){
            BurstA1(atoi(GetEventArgument(0)[0]),GetEventArgument(0)[1],GetEventArgument(0)[2],GetEventArgument(0)[3]);
        }
        case(BOSS_IS_BURST_RAINBOW){
            BurstA1_Rainbow(atoi(GetEventArgument(0)[0]),GetEventArgument(0)[1],GetEventArgument(0)[2]);
        }
        case(BOSS_IS_EXPLODE){
            ExpA1(atoi(GetEventArgument(0)[0]),GetEventArgument(0)[1],GetEventArgument(0)[2],GetEventArgument(0)[3]);
        }
        case(BOSS_IS_EXPLODE2){
            ExpA2(atoi(GetEventArgument(0)[0]),atoi(GetEventArgument(0)[1]),GetEventArgument(0)[2],GetEventArgument(0)[3],GetEventArgument(0)[4]);
        }
}

task Img_Load{
	ascent(i in 0..length(ImgPath)){
		LoadTexture(ImgPath[i]);
	}
}

function GetImg(type){
	let img_pl = 0;
	alternative(type)
		case("Cherry"){
			img_pl = 0;
		}
		case("Circle"){
			img_pl = 1;
		}
		case("ConcentrationCircle"){
			img_pl = 2;
		}
		case("Flower"){
			img_pl = 3;
		}
		case("Heart"){
			img_pl = 4;
		}
		case("Inverse"){
			img_pl = 5;
		}
		case("Magic"){
			img_pl = 6;
		}
		case("Maple"){
			img_pl = 7;
		}
		case("Music"){
			img_pl = 8;
		}
		case("Snow"){
			img_pl = 9;
		}
		case("Star"){
			img_pl = 10;
		}
		case("Default_Effect"){
			img_pl = 10;
		}
		
		return img_pl;
}