PluginHeader{
	RailSimVersion = 2.13;
	PluginType = Struct;
	PluginName = "[線路設備]流雪溝";
	PluginAuthor = "NyahoTaro";
	IconTexture = "../Common_nya/nyaicon.png";
	Description = "";
}
StructInfo{
}
DefineSwitch "モデル"{
	Entry = "0";
	Entry = "1";
	Entry = "2";
	Entry = "3";
	Entry = "4";
	Entry = "5";
}
DefineSwitch "蓋"{
	Entry = "0";
	Entry = "1";
	Entry = "2";
	Entry = "3";
	Entry = "4";
	Entry = "5";
}
DefineSwitch "バラスト"{
	Entry = "0";
	Entry = "1";
	Entry = "OFF";
//	Entry = "2";
//	Entry = "3";
//	Entry = "4";
//	Entry = "5";
}
DefineSwitch "X軸 0.5シフト"{
	Entry = "0";
	Entry = "+";
	Entry = "-";
//	Entry = "3";
//	Entry = "4";
//	Entry = "5";
}
DefineSwitch "冬季仕様"{
	Entry = "Auto";
	Entry = "OFF";
	Entry = "ON";
}
PrimaryAssembly{
	Object3D "Dummy"{
		ModelFileName = "";	ModelScale = 1.0;
		ApplySwitch "X軸 0.5シフト"{
		Case 1:
			StaticMove{
				Displacement = (0.5, 0.0, 0.0);
			}
		Case 2:
			StaticMove{
				Displacement = (-0.5, 0.0, 0.0);
			}
		}

//0.25
		Joint3D "_LOCAL"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}

	Object3D "Main"{
		ModelFileName = "";	ModelScale = 1.0;
		ApplySwitch "モデル"{
		Case 0:		ChangeModel = "main0.x", 1.0;
		Case 1:		ChangeModel = "main1.x", 1.0;
		Case 2:		ChangeModel = "end0.x", 1.0;
		Case 3:		ChangeModel = "main2.x", 1.0;
		Case 4:		ChangeModel = "main3.x", 1.0;
		Case 5:		ChangeModel = "end1.x", 1.0;
		}

		If ("冬季仕様"==0 & "_SEASON"==3) | "冬季仕様"==2 {
			ChangeTexture = 1, "../../Struct/common_nya/Texture/GroundSnow01.dds";
			ApplySwitch "バラスト"{
			Case 2:	ChangeAlpha = 1, 0.0;	NoShadow = 1;
			}
		}Else{
			ApplySwitch "バラスト"{
			Case 0:	ChangeTexture = 1, "../../Tie/common_nya/Set01/Ballast_Base01.dds";
			Case 1:	ChangeTexture = 1, "../../Tie/common_nya/Set01/Ballast_Base02.dds";
			Case 2:	ChangeAlpha = 1, 0.0;	NoShadow = 1;
			}
		}



//0.25
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}

	Object3D "Futa0"{
		ModelFileName = "";	ModelScale = 1.0;
		ApplySwitch "モデル"{
		Case 0,1,3,4:
			ApplySwitch "蓋"{
			Case 1:		ChangeModel = "futa1.x", 1.0;
			Case 2:		ChangeModel = "futa2.x", 1.0;
			Case 3:		ChangeModel = "futa3.x", 1.0;
			Case 4:		ChangeModel = "futa4.x", 1.0;
			Case 5:		ChangeModel = "futa5.x", 1.0;
			Case 6:		ChangeModel = "futa6.x", 1.0;
			}
		}
		Joint3D "Main"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "Futa1"{
		ModelFileName = "";	ModelScale = 1.0;
		ApplySwitch "モデル"{
		Case 1,4:
			ApplySwitch "蓋"{
			Case 1:		ChangeModel = "futa1.x", 1.0;
			Case 2:		ChangeModel = "futa2.x", 1.0;
			Case 3:		ChangeModel = "futa3.x", 1.0;
			Case 4:		ChangeModel = "futa4.x", 1.0;
			Case 5:		ChangeModel = "futa5.x", 1.0;
			Case 6:		ChangeModel = "futa6.x", 1.0;
			}
		}
		Joint3D "Main"{
			AttachCoord = (0.0, 0.0, -10.0);
		}
	}
}
