PluginHeader{
	RailSimVersion = 2.12;
	PluginType = Struct;
	PluginName = "[道路]歩道01";
	PluginAuthor = "NyahoTaro";
	IconTexture = "../common_nya/nyaicon.png";
	Description = "";
}
StructInfo{
}

DefineSwitch "幅員"{
	Entry = "1.5m";
	Entry = "2.0m";
	Entry = "2.5m";
	Entry = "3.0m";
	Entry = "3.5m";
	Entry = "4.0m";
}

DefineSwitch "形状"{
//suro-pu
	Entry = "終端-縁石";
	Entry = "直線-スロープ終端L-1.0m";
	Entry = "直線-スロープ終端R-1.0m";
	Entry = "直線-スロープ中間-0.5m";
	Entry = "直線-スロープ中間-1.0m";
	Entry = "直線-スロープ中間-2.0m";
/*
	Entry = "直線-0.5m";
	Entry = "直線-1m";
	Entry = "直線-2m";
	Entry = "直線-4m";
	Entry = "直線-5m";
	Entry = "直線-10m";
	Entry = "直線-20m";
	Entry = "直線-25m";
	Entry = "直線-40m";
	Entry = "直線-50m";
	Entry = "直線-100m";
	Entry = "終端-左";
	Entry = "終端-右";

	Entry = "内角-R10m";
*/
//内角-Rxx
//外角-Rxx
}

DefineSwitch "テクスチャ"{
	Entry = "0";				//0
	Entry = "1";
//	Entry = "2";
//	Entry = "3";
//	Entry = "4";				//0
//	Entry = "5";
//	Entry = "6";
//	Entry = "7";
}

DefineSwitch "設置基準"{
	Entry = "順";
	Entry = "逆";
}

PrimaryAssembly{
	Object3D "Dummy"{
		ModelFileName = "";	ModelScale = 1.0;
		ApplySwitch "設置基準"{
		Case 1:
			ApplySwitch "形状"{
			Case 0:		StaticMove{		Displacement = (0.0, 0.0, -0.0);	}
			Case 1:		StaticMove{		Displacement = (0.0, 0.0, -1.0);	}
			Case 2:		StaticMove{		Displacement = (0.0, 0.0, -1.0);	}
			Case 3:		StaticMove{		Displacement = (0.0, 0.0, -0.5);	}
			Case 4:		StaticMove{		Displacement = (0.0, 0.0, -1.0);	}
			Case 5:		StaticMove{		Displacement = (0.0, 0.0, -2.0);	}
			Case 6:		StaticMove{		Displacement = (0.0, 0.0, -20.0);	}
			Case 7:		StaticMove{		Displacement = (0.0, 0.0, -25.0);	}
			Case 8:		StaticMove{		Displacement = (0.0, 0.0, -40.0);	}
			Case 9:		StaticMove{		Displacement = (0.0, 0.0, -50.0);	}
			Case 10:	StaticMove{		Displacement = (0.0, 0.0, -100.0);	}
			}
		}
		Joint3D "_LOCAL"{
			AttachCoord = (0.0, 0.0, 0.0);
			AttachDir = (0.0, 0.0, -1.0);
		}
	}
	Object3D "Body"{
		ModelFileName = "";	ModelScale = 1.0;
		ChangeTexture = 1, "../nya_Road_cm/Concrete_Groove01.dds";
		ApplySwitch "幅員"{
		Case 0://1.5m
			ApplySwitch "形状"{
			Case 0:		ChangeModel = "1.5_EndA.x", 100.0;
			Case 1:		ChangeModel = "1.5_SlopeEndL1.0.x", 100.0;
			Case 2:		ChangeModel = "1.5_SlopeEndR1.0.x", 100.0;
			Case 3:		ChangeModel = "1.5_Slope0.5.x", 100.0;
			Case 4:		ChangeModel = "1.5_Slope1.0.x", 100.0;
			Case 5:		ChangeModel = "1.5_Slope2.0.x", 100.0;
			}

		Case 1://2.0m
			ApplySwitch "形状"{
			Case 0:		ChangeModel = "2.0_EndA.x", 100.0;
			Case 1:		ChangeModel = "2.0_SlopeEndL1.0.x", 100.0;
			Case 2:		ChangeModel = "2.0_SlopeEndR1.0.x", 100.0;
			Case 3:		ChangeModel = "2.0_Slope0.5.x", 100.0;
			Case 4:		ChangeModel = "2.0_Slope1.0.x", 100.0;
			Case 5:		ChangeModel = "2.0_Slope2.0.x", 100.0;
			}

		Case 2://2.5m
			ApplySwitch "形状"{
			Case 0:		ChangeModel = "2.5_EndA.x", 100.0;
			Case 1:		ChangeModel = "2.5_SlopeEndL1.0.x", 100.0;
			Case 2:		ChangeModel = "2.5_SlopeEndR1.0.x", 100.0;
			Case 3:		ChangeModel = "2.5_Slope0.5.x", 100.0;
			Case 4:		ChangeModel = "2.5_Slope1.0.x", 100.0;
			Case 5:		ChangeModel = "2.5_Slope2.0.x", 100.0;
			}

		Case 3://3.0m
			ApplySwitch "形状"{
			Case 0:		ChangeModel = "3.0_EndA.x", 100.0;
			Case 1:		ChangeModel = "3.0_SlopeEndL1.0.x", 100.0;
			Case 2:		ChangeModel = "3.0_SlopeEndR1.0.x", 100.0;
			Case 3:		ChangeModel = "3.0_Slope0.5.x", 100.0;
			Case 4:		ChangeModel = "3.0_Slope1.0.x", 100.0;
			Case 5:		ChangeModel = "3.0_Slope2.0.x", 100.0;
			}

		Case 4://3.5m
			ApplySwitch "形状"{
			Case 0:		ChangeModel = "3.5_EndA.x", 100.0;
			Case 1:		ChangeModel = "3.5_SlopeEndL1.0.x", 100.0;
			Case 2:		ChangeModel = "3.5_SlopeEndR1.0.x", 100.0;
			Case 3:		ChangeModel = "3.5_Slope0.5.x", 100.0;
			Case 4:		ChangeModel = "3.5_Slope1.0.x", 100.0;
			Case 5:		ChangeModel = "3.5_Slope2.0.x", 100.0;
			}

		Case 5://4m
			ApplySwitch "形状"{
			Case 0:		ChangeModel = "4.0_EndA.x", 100.0;
			Case 1:		ChangeModel = "4.0_SlopeEndL1.0.x", 100.0;
			Case 2:		ChangeModel = "4.0_SlopeEndR1.0.x", 100.0;
			Case 3:		ChangeModel = "4.0_Slope0.5.x", 100.0;
			Case 4:		ChangeModel = "4.0_Slope1.0.x", 100.0;
			Case 5:		ChangeModel = "4.0_Slope2.0.x", 100.0;
/*
			Case 0:		ChangeModel = "4x0.5.x", 100.0;
			Case 1:		ChangeModel = "4x1.x", 100.0;
			Case 2:		ChangeModel = "4x2.x", 100.0;
			Case 3:		ChangeModel = "4x4.x", 100.0;
			Case 4:		ChangeModel = "4x5.x", 100.0;
			Case 5:		ChangeModel = "4x10.x", 100.0;
			Case 6:		ChangeModel = "4x20.x", 100.0;
			Case 7:		ChangeModel = "4x25.x", 100.0;
			Case 8:		ChangeModel = "4x40.x", 100.0;
			Case 9:		ChangeModel = "4x50.x", 100.0;
			Case 10:	ChangeModel = "4x100.x", 100.0;
			Case 11:	ChangeModel = "4xEndL.x", 100.0;
			Case 12:	ChangeModel = "4xEndR.x", 100.0;
			Case 13:	ChangeModel = "4xInR-10.x", 100.0;
*/
			}
		}

		ApplySwitch "テクスチャ"{
		Case 0:		ChangeTexture = 0, "../nya_Road_cm/AsphaltBase01.dds";
		//			ScaleTexture = 0, 8.0, 8.0, 0.0, 0.0;
		Case 1:		ChangeTexture = 0, "../nya_Road_cm/AsphaltBase02.dds";
		Case 2:		ChangeTexture = 0, "../nya_Road_cm/TileBase01.png";
				ScaleTexture = 0, 16.0, 16.0, 0.0, 0.0;
		Case 3:		ChangeTexture = 0, "../nya_Road_cm/TileBase02.png";
				ScaleTexture = 0, 16.0, 16.0, 0.0, 0.0;

		Case 4:		ChangeTexture = 0, "../nya_Road_cm/TileBase03.png";
				ScaleTexture = 0, 16.0, 16.0, 0.0, 0.0;
		Case 5:		ChangeTexture = 0, "../nya_Road_cm/TileBase04.png";
				ScaleTexture = 0, 16.0, 16.0, 0.0, 0.0;
		}

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

