////////////////////////////////////////////////////////////////////////////////
// 画像(全般)                                                             //
////////////////////////////////////////////////////////////////////////////////

//画像フォルダへのパス
let ImagePath        = csd ~ "Image\";

//システム画像フォルダへのパス
let SystemImagePath = ImagePath ~ "System\";

//ドット画像フォルダへのパス
let DotImagePath = ImagePath ~ "Dot\";

//カットイン画像フォルダへのパス
let CutInImagePath = ImagePath ~ "CutIn\";

////////////////////////////////////////////////////////////////////////////////
// 画像(システム)                                                             //
////////////////////////////////////////////////////////////////////////////////

//テキスト画像
let imgText  = SystemImagePath ~ "Text.png";

//ゲージ画像
let imgGauge = SystemImagePath ~ "Gauge.png";

//アイテム画像
let imgItem  = SystemImagePath ~ "Effect_Tiny.png";

//ダミー画像
let imgDummy = SystemImagePath ~ "Dummy.png";

//背景

//ステージ1道中
let imgBack_Stage1_1 = SystemImagePath ~ "11_6.png";
let imgBack_Stage1_2 = SystemImagePath ~ "fog_alpha_1.png";

//ステージ1スペル
let imgBack_Stage1_Spell_1 = SystemImagePath ~ "back08_03.png";

//魔方陣
let imgMagicCircle = SystemImagePath ~ "Circle_Sqr_L.png";

////////////////////////////////////////////////////////////////////////////////
// 画像(ドット)                                                               //
////////////////////////////////////////////////////////////////////////////////

//この変数にメインのボスキャラ画像を代入する
let imgBoss = "";

//この変数にサブのボスキャラ画像を代入する
//ほぼリリーブラック用
let imgBoss_Sub = "";

//リリーホワイト
let imgBoss_LilyWhite = DotImagePath ~ "LilyWhite.png";

//リリーブラック
let imgBoss_LilyBlack = DotImagePath ~ "LilyBlack.png";

//大妖精
let imgBoss_BigFairy = DotImagePath ~ "BigFairy.png";

//チルノ
let imgBoss_Cirno = DotImagePath ~ "Cirno.png";

//サニー
let imgBoss_Sunny = DotImagePath ~ "Sunny.png";

//ルナチャ
let imgBoss_Luna = DotImagePath ~ "Luna.png";

//スター
let imgBoss_Star = DotImagePath ~ "Star.png";

//雑魚妖精ズ
let imgFairy_Red    = DotImagePath ~ "Fairy_Red.png";
let imgFairy_Blue   = DotImagePath ~ "Fairy_Blue.png";
let imgFairy_Green  = DotImagePath ~ "Fairy_Green.png";
let imgFairy_Yellow = DotImagePath ~ "Fairy_Yellow.png";
let imgFairy_EX1    = DotImagePath ~ "Fairy_EX1.png";
let imgFairy_EX2    = DotImagePath ~ "Fairy_EX2.png";

////////////////////////////////////////////////////////////////////////////////
// 画像(カットイン)                                                           //
////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////////
// BGM                                                                        //
////////////////////////////////////////////////////////////////////////////////

//BGMフォルダへのパス
let BGMPath = csd ~ "BGM\";

//タイトル
let bgmTitle = BGMPath ~ "Title.wav";

//1面道中
let bgmStage1 = BGMPath ~ "Stage1.wav";

//1面ボス
let bgmStage1Boss = BGMPath ~ "Stage1Boss.wav";

//2面道中
let bgmStage2 = BGMPath ~ "Stage2.wav";

//2面ボス
let bgmStage2Boss = BGMPath ~ "Stage2Boss.wav";

//3面道中
let bgmStage3 = BGMPath ~ "Stage3.wav";

//3面ボス
let bgmStage3Boss = BGMPath ~ "Stage3Boss.wav";

//EX道中
let bgmStageEx = BGMPath ~ "StageEx.wav";

//裏ボス1
let bgmStageExBoss1 = BGMPath ~ "StageExBoss1.wav";

//裏ボス2
let bgmStageExBoss2 = BGMPath ~ "StageExBoss2.wav";

//裏ボス3
let bgmStageExBoss3 = BGMPath ~ "StageExBoss3.wav";

////////////////////////////////////////////////////////////////////////////////
// SE                                                                         //
////////////////////////////////////////////////////////////////////////////////

//SEフォルダへのパス
let SEPath = csd ~ "SE\";

//カウントダウン
let seCountDown = SEPath ~ "CountDown.wav";

//集中音
let seCharge = SEPath ~ "Charge.wav";

//ブザー音
let seBuzzer = SEPath ~ "Buzzer.wav";

//ポイントゲット
let sePoint = "se\seScore.wav";

//ボムゲット
let seBomb = "se\se1UP.wav";

//1UPゲット
let se1up = "se\se1UP.wav";

//ゲージアイテムゲット
let seGauge = "se\seScore.wav";

//スペカ発動音
let seUseSpell = "se\seUseSpellCard.wav";

/**
 * 素材のファイルパスをコモンデータにセットする
 */
function SetMaterialPath(){
	SetCommonDataEx( "OFT", "imgItem", imgItem );
	SetCommonDataEx( "OFT", "imgGauge", imgGauge );
	
	SetCommonDataEx( "OFT", "imgBack_Stage1_Spell_1", imgBack_Stage1_Spell_1 );
	
	SetCommonDataEx( "OFT", "imgMagicCircle", imgMagicCircle );
	
	SetCommonDataEx( "OFT", "imgBoss_LilyWhite", imgBoss_LilyWhite );
	SetCommonDataEx( "OFT", "imgBoss_LilyBlack", imgBoss_LilyBlack );
	SetCommonDataEx( "OFT", "imgBoss_BigFairy", imgBoss_BigFairy );
	SetCommonDataEx( "OFT", "imgBoss_Cirno", imgBoss_Cirno );
	SetCommonDataEx( "OFT", "imgBoss_Sunny", imgBoss_Sunny );
	SetCommonDataEx( "OFT", "imgBoss_Luna", imgBoss_Luna );
	SetCommonDataEx( "OFT", "imgBoss_Star", imgBoss_Star );
	
	SetCommonDataEx( "OFT", "imgFairy_Red", imgFairy_Red );
	SetCommonDataEx( "OFT", "imgFairy_Blue", imgFairy_Blue );
	SetCommonDataEx( "OFT", "imgFairy_Green", imgFairy_Green );
	SetCommonDataEx( "OFT", "imgFairy_Yellow", imgFairy_Yellow );
	SetCommonDataEx( "OFT", "imgFairy_EX1", imgFairy_EX1 );
	SetCommonDataEx( "OFT", "imgFairy_EX2", imgFairy_EX2 );
	
	SetCommonDataEx( "OFT", "seCountDown", seCountDown );
	SetCommonDataEx( "OFT", "seCharge", seCharge );
	SetCommonDataEx( "OFT", "sePoint", sePoint );
	SetCommonDataEx( "OFT", "seBomb", seBomb );
	SetCommonDataEx( "OFT", "se1up", se1up );
	SetCommonDataEx( "OFT", "seGauge", seGauge );
	SetCommonDataEx( "OFT", "seUseSpell", seUseSpell );
}

/**
 * 素材のファイルパスをコモンデータから取得する
 */
function GetMaterialPath(){
	imgItem                 = GetCommonDataDefaultEx( "OFT", "imgItem", "" );
	imgGauge                = GetCommonDataDefaultEx( "OFT", "imgGauge", "" );
	
	imgBack_Stage1_Spell_1  = GetCommonDataDefaultEx( "OFT", "imgBack_Stage1_Spell_1", "" );
	
	imgMagicCircle          = GetCommonDataDefaultEx( "OFT", "imgMagicCircle", "" );
	
	imgBoss_LilyWhite       = GetCommonDataDefaultEx( "OFT", "imgBoss_LilyWhite", "" );
	imgBoss_LilyBlack       = GetCommonDataDefaultEx( "OFT", "imgBoss_LilyBlack", "" );
	imgBoss_BigFairy        = GetCommonDataDefaultEx( "OFT", "imgBoss_BigFairy", "" );
	imgBoss_Cirno           = GetCommonDataDefaultEx( "OFT", "imgBoss_Cirno", "" );
	imgBoss_Sunny           = GetCommonDataDefaultEx( "OFT", "imgBoss_Sunny", "" );
	imgBoss_Luna            = GetCommonDataDefaultEx( "OFT", "imgBoss_Luna", "" );
	imgBoss_Star            = GetCommonDataDefaultEx( "OFT", "imgBoss_Star", "" );
	
	imgFairy_Red            = GetCommonDataDefaultEx( "OFT", "imgFairy_Red", "" );
	imgFairy_Blue           = GetCommonDataDefaultEx( "OFT", "imgFairy_Blue", "" );
	imgFairy_Green          = GetCommonDataDefaultEx( "OFT", "imgFairy_Green", "" );
	imgFairy_Yellow         = GetCommonDataDefaultEx( "OFT", "imgFairy_Yellow", "" );
	imgFairy_EX1            = GetCommonDataDefaultEx( "OFT", "imgFairy_EX1", "" );
	imgFairy_EX2            = GetCommonDataDefaultEx( "OFT", "imgFairy_EX2", "" );
	
	seCountDown             = GetCommonDataDefaultEx( "OFT", "seCountDown", "" );
	seCharge                = GetCommonDataDefaultEx( "OFT", "seCharge", "" );
	sePoint                 = GetCommonDataDefaultEx( "OFT", "sePoint", "" );
	seBomb                  = GetCommonDataDefaultEx( "OFT", "seBomb", "" );
	se1up                   = GetCommonDataDefaultEx( "OFT", "se1up", "" );
	seGauge                 = GetCommonDataDefaultEx( "OFT", "seGauge", "" );
	seUseSpell              = GetCommonDataDefaultEx( "OFT", "seUseSpell", "" );
}

/**
 * 素材の読み込み
 */
function LoadMaterial(){
	//画像読み込み
	LoadGraphic( imgText );
	LoadGraphic( imgGauge );
	LoadGraphic( imgItem );
	
	LoadGraphic( imgDummy );
	
	LoadGraphic( imgBack_Stage1_1 );
	LoadGraphic( imgBack_Stage1_2 );
	
	LoadGraphic( imgBack_Stage1_Spell_1 );
	
	LoadGraphic( imgMagicCircle );
	
	LoadGraphic( imgBoss_LilyWhite );
	LoadGraphic( imgBoss_LilyBlack );
	LoadGraphic( imgBoss_BigFairy );
	LoadGraphic( imgBoss_Cirno );
	LoadGraphic( imgBoss_Sunny );
	LoadGraphic( imgBoss_Luna );
	LoadGraphic( imgBoss_Star );
	
	LoadGraphic( imgFairy_Red );
	LoadGraphic( imgFairy_Blue );
	LoadGraphic( imgFairy_Green );
	LoadGraphic( imgFairy_Yellow );
	LoadGraphic( imgFairy_EX1 );
	LoadGraphic( imgFairy_EX2 );
	
	//BGM読み込み
	
	//SE読み込み
	LoadSE( seCountDown );
	LoadSE( seCharge );
	LoadSE( seBuzzer );
	LoadSE( sePoint );
	LoadSE( seBomb );
	LoadSE( se1up );
	LoadSE( seGauge );
	LoadSE( seUseSpell );
	
	//弾定義ファイル読み込み
	LoadUserShotData( BulletPath );
	
	//コモンデータにパス登録
	SetMaterialPath();
}

/**
 * 素材の削除
 */
function UnLoadMaterial(){
	//めんどいので弾幕風に任せる
	
	//画像破棄
	
	//BGM破棄
	
	//SE破棄
	
}