//Copyright © 
//[License]GNU Affero General Public License, version 3
//[Contact]
#pragma once
#include <SDXFrameWork.h>
#include "GUI_Factory.h"

namespace SDX_TD
{
	using namespace SDX;

	class SceneArchive : public SDX::IScene
	{
	public:
		//@Define
		UI_Text 実装中～ = { 104, {300,200,100,100} , 0.000000,1,"次のバージョンまで待ってて"};
		//@End

		SceneArchive()
		{
			LoadGUI();
			Init();
		}

		//初期化
		void Init() override
		{
		}

		//終了時
		void Final() override
		{
		}

		//更新
		void Update() override
		{
			//@Update
			//@End
		}

		//描画
		void Draw() override
		{
#ifdef _DEBUG			
			if (Input::key.Return.on){ LoadGUI(); }
#endif
			MFont::fontS[実装中～.fontNo].DrawRotate(実装中～.rect.GetCenter(),1,0,Color::Black,実装中～.text);
		}

		void LoadGUI() override
		{
#ifndef _DEBUG
			return;
#endif
			//@Load
			SDX::GUIData guiData = SDX::TMXtoGUI( TMX_FILE_NAME , "SceneArchive", GUI_Factory);

			実装中～ = *dynamic_cast<UI_Text*>(guiData.dataS[0].get());
			//@End
		}
	};
}
