PluginHeader{
	RailSimVersion = 2.00;
	PluginType = Struct;
	PluginName = "[建物]店舗向け汎用プレハブ建築";
	PluginAuthor = "n";
	Description = "5x10m";
}

StructInfo{}

DefineSwitch "種類"{
	Entry = "調剤薬局";
	Entry = "コインランドリー";
	Entry = "出張所";
	Entry = "キャッシュコーナー";
	Entry = "ディスカウントストア";
	Entry = "事務所";
	Entry = "居抜き";
	Entry = "ユーザー定義";
	Entry = "ユーザー定義";
	Entry = "ユーザー定義";
}

DefineSwitch "夜間発光"{
	Entry = "営業時間内のみ1(09:00〜20:00・日曜定休)";
	Entry = "営業時間内のみ2(10:00〜22:00・年中無休)";
	Entry = "入";
	Entry = "切";
}

DefineSwitch "地面"{
	Entry = "有";
	Entry = "無";
}

DefineSwitch "地面テクスチャ"{
	Entry = "デフォルト";
	Entry = "ユーザー定義";
	Entry = "ユーザー定義";
	Entry = "ユーザー定義";
}

DefineSwitch "設置面高さ"{
	Entry = "±0.0m";
	Entry = "＋0.1m";
	Entry = "＋0.2m";
	Entry = "＋0.3m";
}



PrimaryAssembly{
	　　　　Object3D "Base"{
		ModelFileName = "";
		ModelScale = 1.0;
		ApplySwitch "地面"{
			Case 0:ChangeModel = "Base.x", 1.0;
		}

		ApplySwitch "地面テクスチャ"{
			Case 1:ChangeTexture = 0, "ユーザー定義";
			Case 2:ChangeTexture = 0, "ユーザー定義";
			Case 3:ChangeTexture = 0, "ユーザー定義";
		}

		ApplySwitch "設置面高さ"{
			Case 1:
				StaticMove{
				    Displacement = (0.0, 0.1, 0.0);
				}

			Case 2:
				StaticMove{
				    Displacement = (0.0, 0.2, 0.0);
				}

			Case 3:
				StaticMove{
				    Displacement = (0.0, 0.3, 0.0);
				}
		}

		Joint3D "_LOCAL"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	　　　　Object3D "Model"{
		ModelFileName = "Model.x";
		ModelScale = 1.0;
		NoShadow = 2;
		ApplySwitch "種類"{
			Case 1:ChangeTexture = 1, "tex1.png"; ChangeTexture = 2, "tex1.png"; ShiftTexture = 0, 0.0, 0.25;
			Case 2:ChangeTexture = 1, "tex2.png"; ChangeTexture = 2, "tex2.png"; ShiftTexture = 0, 0.0, 0.5;
			Case 3:ChangeTexture = 1, "tex3.png"; ChangeTexture = 2, "tex3.png"; ShiftTexture = 0, 0.0, 0.75;
			Case 4:ChangeTexture = 0, "1.png"; ChangeTexture = 1, "tex4.png"; ChangeTexture = 2, "tex4.png";
			Case 5:ChangeTexture = 0, "1.png"; ChangeTexture = 1, "tex5.png"; ChangeTexture = 2, "tex5.png"; ShiftTexture = 0, 0.0, 0.25;
			Case 6:ChangeTexture = 0, "1.png"; ChangeTexture = 1, "tex5.png"; ChangeTexture = 2, "tex5.png"; ShiftTexture = 0, 0.0, 0.5;
			Case 7:ChangeTexture = 0, "1.png"; ChangeTexture = 1, "ユーザー定義"; ChangeTexture = 2, "ユーザー定義"; ShiftTexture = 0, 0.0, 0.5;
			Case 8:ChangeTexture = 0, "2.png"; ChangeTexture = 1, "ユーザー定義"; ChangeTexture = 2, "ユーザー定義";
			Case 9:ChangeTexture = 0, "2.png"; ChangeTexture = 1, "ユーザー定義"; ChangeTexture = 2, "ユーザー定義"; ShiftTexture = 0, 0.0, 0.25;
		}

		If "夜間発光"==0 &&"_NIGHT" && "_HOUR"<20 && "_HOUR">=9 && "_DAYOFWEEK">0 ||  "夜間発光"==1 &&"_NIGHT" && "_HOUR"<22 && "_HOUR">=10 || "夜間発光"==2 &&"_NIGHT"{
				ChangeMaterial{
					MaterialID = 0;
					Emissive = 0.5, 0.5, 0.5;
				}
			ChangeAlpha = 2, 1.0;
		}
		Else {
			ChangeAlpha = 2, 0.0;
		}

		Joint3D "Base"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}

}