
PluginHeader{
	RailSimVersion = 2.00;
	PluginType = Train;
	PluginName = "墶昹怴搒巗岎捠1000宍 拞娫幵";
	PluginAuthor = "n";
	IconTexture = "icon.png";
	Description = "僔乕僒僀僪儔僀儞偺弶戙幵椉偱偡丅";
}

TrainInfo{
	FrontLimit = 4.2;
	TailLimit = -4.2;
	MaxVelocity = 60.0;
	MaxAcceleration = 3.5;
	MaxDeceleration = 3.5;
	DoorClosingTime = 5.0;
}
DefineSwitch "仭揹尮愝掕"{
}
DefineSwitch "劋揹尮"{
GroupCommon = "nYNT1000揹尮";
	Entry = "擖";
	Entry = "愗";
}
DefineSwitch "仭媞幒愝掕"{
}
DefineSwitch "劌媞幒徠柧"{
GroupCommon = "nYNT1000媞幒摂";
	Entry = "擖";
	Entry = "愗";
}
DefineSwitch "劌忔崀斷憖嶌"{
GroupCommon = "nYNT1000忔崀斷憖嶌";
	Entry = "帺摦";
	Entry = "慡奐";
	Entry = "掲愗";
}
DefineSwitch "劋媞惾僇乕僥儞"{
	Entry = "奐";
	Entry = "敿奐";
	Entry = "暵";
}
DefineSwitch "仭幵椉愝掕"{
}
DefineSwitch "劌曇惉"{
GroupCommon = "nYNT1000曇惉";
	Entry = "1010";
	Entry = "1020";
	Entry = "1030";
	Entry = "1040";
	Entry = "1050";
	Entry = "1060";
	Entry = "1070";
	Entry = "1080";
	Entry = "1090";
	Entry = "1100";
	Entry = "1110";
	Entry = "1120";
	Entry = "1130";
	Entry = "1140";
	Entry = "1150";
	Entry = "1160";
	Entry = "1170";
}
DefineSwitch "劌崋幵"{
	Entry = "2崋幵";
	Entry = "3崋幵";
	Entry = "4崋幵";
}
DefineSwitch "劌巇條"{
GroupCommon = "nYNT1000巇條";
	Entry = "搊応帪";
	Entry = "帺摦塣揮奐巒丒攔忈婍姺憰屻(1994?乣)";
	Entry = "幵懱峏怴丒幵堉巕僗儁乕僗愝抲屻(2008乣)";
}
DefineSwitch "劌仩寉検壔愝掕"{
}
DefineSwitch "劆劋寉検壔"{
GroupCommon = "nYNT1000寉検壔";
	Entry = "愗";
	Entry = "擖";
	Entry = "10m埲忋偐傜擖";
	Entry = "30m埲忋偐傜擖";
	Entry = "50m埲忋偐傜擖";
	Entry = "100m埲忋偐傜擖";
	Entry = "300m埲忋偐傜擖";
	Entry = "500m埲忋偐傜擖";
	Entry = "1000m埲忋偐傜擖";
}
DefineSwitch "劌廤揹婍婯奿"{
GroupCommon = "nYNT1000廤揹婍婯奿";
	Entry = "1";
	Entry = "2";
}
DefineSwitch "劋娙堈堿"{
	GroupCommon = "nYNT1000娙堈堿";
	Entry = "擖";
	Entry = "愗";
}
PrimaryAssembly{
	Axle "FrontDummyWheel"{
		ModelFileName = "";
		ModelScale = 1.0;
		Diameter = 1.0;
		Symmetric = 12;
		Coord = (2.5, 0.51);
	}
	Axle "TailDummyWheel"{
		ModelFileName = "";
		ModelScale = 1.0;
		Diameter = 1.0;
		Symmetric = 12;
		Coord = (-2.5, 0.51);
	}
	Body "Dummy"{
		ModelFileName = "";
		ModelScale = 1.0;
		ApplySwitch "劌崋幵"{
		Case 0,2:
			ApplySwitch "劌廤揹婍婯奿"{
				Case 0:ChangeModel = "../n_ynt1001/bogie1002_0.x", 1.0;
				Case 1:ChangeModel = "../n_ynt1001/bogie1002_1.x", 1.0;
			}
		Case 1:
			ApplySwitch "劌廤揹婍婯奿"{
				Case 0:ChangeModel = "../n_ynt1001/bogie1003_0.x", 1.0;
				Case 1:ChangeModel = "../n_ynt1001/bogie1003_1.x", 1.0;
			}
		}
		JointZY "FrontDummyWheel"{
			AttachCoord = (0.0, 0.0);
			LocalCoord = (2.5, 0.51);
		}
		JointZY "TailDummyWheel"{
			AttachCoord = (0.0, 0.0);
			LocalCoord = (-2.5, 0.51);
		}
	}
	Object3D "FrontRightWheel"{
		ModelFileName = "../n_ynt1001/wheel.x";
		ModelScale = 1.085106382978723;
		Joint3D "Dummy"{
			AttachCoord = (0.85, 0.51, 2.5);
			DirLink = "FrontDummyWheel";
			AttachDir = (5.0, 0.0, 0.0);
			UpLink = "FrontDummyWheel";
			AttachUp = (0.0, 0.0, 1.0);
		}
	}
	Object3D "FrontLeftWheel"{
		ModelFileName = "../n_ynt1001/wheel.x";
		ModelScale = 1.085106382978723;
		Joint3D "Dummy"{
			AttachCoord = (-0.85, 0.51, 2.5);
			DirLink = "FrontDummyWheel";
			AttachDir = (-1.0, 0.0, 0.0);
			UpLink = "FrontDummyWheel";
			AttachUp = (0.0, 0.0, 1.0);
		}
	}
	Object3D "TailRightWheel"{
		ModelFileName = "../n_ynt1001/wheel.x";
		ModelScale = 1.085106382978723;
		Joint3D "Dummy"{
			AttachCoord = (0.85, 0.51, -2.5);
			DirLink = "Dummy";
			AttachDir = (1.0, 0.0, 0.0);
			UpLink = "FrontDummyWheel";
			AttachUp = (0.0, 0.0, 1.0);
		}
	}
	Object3D "TailLeftWheel"{
		ModelFileName = "../n_ynt1001/wheel.x";
		ModelScale = 1.085106382978723;
		Joint3D "Dummy"{
			AttachCoord = (-0.85, 0.51, -2.5);
			DirLink = "Dummy";
			AttachDir = (-1.0, 0.0, 0.0);
			UpLink = "FrontDummyWheel";
			AttachUp = (0.0, 0.0, 1.0);
		}
	}
	Object3D "Doorll"{
		ModelFileName = "../n_ynt1001/Doorll.x";
		ModelScale = 1.0;
		Transparent = 6,7;
		If "劋揹尮"==0 && "劌媞幒徠柧"==0{
			ChangeMaterial{
				MaterialID = 2,3,4;
				Emissive = 0.5, 0.5, 0.5;
			}
丂丂丂丂丂丂丂丂}
		If "劌忔崀斷憖嶌"==0 && "_DOOR1" ||"劌忔崀斷憖嶌"==1{
			StaticMove{
				Displacement = (0.0, 0.0, 0.61);
				PreAnimationDelay = 1.0;
				AnimationTime = 2.0;
				 PreReverseDelay = 0.0;
				ReverseTime = 2.0;
			}
			StaticMove{
				Displacement = (0.0, 0.0, 0.05);
				PreAnimationDelay = 3.0;
				AnimationTime = 1.0;
				PreReverseDelay = 2.1;
				ReverseTime = 1.0;
			}
		}
		ApplySwitch "劌曇惉"{
			Case 11:
				ApplySwitch "劌巇條"{
					Case 2:ChangeTexture = 0, "../n_ynt1001/tex/幵懱媞梡斷_1120.png";
				}
			Case 16:ChangeTexture = 0, "../n_ynt1001/tex/幵懱媞梡斷_1170.png";
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}

	Object3D "Doorlr"{
		ModelFileName = "../n_ynt1001/Doorlr.x";
		ModelScale = 1.0;
		Transparent = 6,7;
		If "劋揹尮"==0 && "劌媞幒徠柧"==0{
			ChangeMaterial{
				MaterialID = 2,3,4;
				Emissive = 0.5, 0.5, 0.5;
			}
丂丂丂丂丂丂丂丂}
		If "劌忔崀斷憖嶌"==0 && "_DOOR1" ||"劌忔崀斷憖嶌"==1{
			StaticMove{
				Displacement = (0.0, 0.0, -0.61);
				PreAnimationDelay = 1.0;
				AnimationTime = 2.0;
				 PreReverseDelay = 0.0;
				ReverseTime = 2.0;
			}
			StaticMove{
				Displacement = (0.0, 0.0, -0.05);
				PreAnimationDelay = 3.0;
				AnimationTime = 1.0;
				PreReverseDelay = 2.1;
				ReverseTime = 1.0;
			}
		}
		ApplySwitch "劌曇惉"{
			Case 11:
				ApplySwitch "劌巇條"{
					Case 2:ChangeTexture = 0, "../n_ynt1001/tex/幵懱媞梡斷_1120.png";
				}
			Case 16:ChangeTexture = 0, "../n_ynt1001/tex/幵懱媞梡斷_1170.png";
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "Doorrl"{
		ModelFileName = "../n_ynt1001/Doorrl.x";
		ModelScale = 1.0;
		Transparent = 6,7;
		If "劋揹尮"==0 && "劌媞幒徠柧"==0{
			ChangeMaterial{
				MaterialID = 2,3,4;
				Emissive = 0.5, 0.5, 0.5;
			}
丂丂丂丂丂丂丂丂}
		If "劌忔崀斷憖嶌"==0 && "_DOOR2" ||"劌忔崀斷憖嶌"==1{
			StaticMove{
				Displacement = (0.0, 0.0, 0.61);
				PreAnimationDelay = 1.0;
				AnimationTime = 2.0;
				 PreReverseDelay = 0.0;
				ReverseTime = 2.0;
			}
			StaticMove{
				Displacement = (0.0, 0.0, 0.05);
				PreAnimationDelay = 3.0;
				AnimationTime = 1.0;
				PreReverseDelay = 2.1;
				ReverseTime = 1.0;
			}
		}
		ApplySwitch "劌曇惉"{
			Case 11:
				ApplySwitch "劌巇條"{
					Case 2:ChangeTexture = 0, "../n_ynt1001/tex/幵懱媞梡斷_1120.png";
				}
			Case 16:ChangeTexture = 0, "../n_ynt1001/tex/幵懱媞梡斷_1170.png";
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}

	Object3D "Doorrr"{
		ModelFileName = "../n_ynt1001/Doorrr.x";
		ModelScale = 1.0;
		Transparent = 6,7;
		If "劋揹尮"==0 && "劌媞幒徠柧"==0{
			ChangeMaterial{
				MaterialID = 2,3,4;
				Emissive = 0.5, 0.5, 0.5;
			}
丂丂丂丂丂丂丂丂}
		If "劌忔崀斷憖嶌"==0 && "_DOOR2" ||"劌忔崀斷憖嶌"==1{
			StaticMove{
				Displacement = (0.0, 0.0, -0.61);
				PreAnimationDelay = 1.0;
				AnimationTime = 2.0;
				 PreReverseDelay = 0.0;
				ReverseTime = 2.0;
			}
			StaticMove{
				Displacement = (0.0, 0.0, -0.05);
				PreAnimationDelay = 3.0;
				AnimationTime = 1.0;
				PreReverseDelay = 2.1;
				ReverseTime = 1.0;
			}
		}
		ApplySwitch "劌曇惉"{
			Case 11:
				ApplySwitch "劌巇條"{
					Case 2:ChangeTexture = 0, "../n_ynt1001/tex/幵懱媞梡斷_1120.png";
				}
			Case 16:ChangeTexture = 0, "../n_ynt1001/tex/幵懱媞梡斷_1170.png";
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "Interior"{
		ModelFileName = "";
		ModelScale = 1.0;
		EnvMap = 0;
		If "劋揹尮"==0 && "劌媞幒徠柧"==0{
			ChangeMaterial{
				MaterialID = 0,1,2,3,4;
				Emissive = 0.5, 0.5, 0.5;
			}
丂丂丂丂丂丂丂丂}
		If "劆劋寉検壔"==0 || "劆劋寉検壔"==2 && "_CAMDIST" < 10 || "劆劋寉検壔"==3 && "_CAMDIST" < 30 || "劆劋寉検壔"==4 && "_CAMDIST" < 50 || "劆劋寉検壔"==5 && "_CAMDIST" < 100 || "劆劋寉検壔"==6 && "_CAMDIST" < 300 || "劆劋寉検壔"==7 && "_CAMDIST" < 500 || "劆劋寉検壔"==8 && "_CAMDIST" < 1000 {
			ApplySwitch "劌崋幵"{
				Case 0:
					ApplySwitch "劌巇條"{
						Case 2:ChangeModel = "../n_ynt1001/1002_interior.x", 1.0;
						Default:ChangeModel = "../n_ynt1001/1003_interior.x", 1.0;
					}
				Case 1:ChangeModel = "../n_ynt1001/1003_interior.x", 1.0;
				Case 2:ChangeModel = "../n_ynt1001/1003_interior.x", 1.0;
			}
		}
		ApplySwitch "劌崋幵"{
			Case 0,2:
				ShiftTexture = 1, 0.5, 0.0;
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "Curtain"{
		ModelFileName = "";
		ModelScale = 1.0;
		If "劋揹尮"==0 && "劌媞幒徠柧"==0{
			ChangeMaterial{
				MaterialID = 0;
				Emissive = 0.3, 0.3, 0.3;
			}
丂丂丂丂丂丂丂丂}
		ApplySwitch "劋媞惾僇乕僥儞"{
			Case 0:ChangeModel = "../n_ynt1001/curtain_1002_1.x", 1.0;
			Case 1:ChangeModel = "../n_ynt1001/curtain_1002_2.x", 1.0;
			Case 2:ChangeModel = "../n_ynt1001/curtain_1002_3.x", 1.0;
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "Mainbody"{
		ModelFileName = "";
		ModelScale = 1.0;
		EnvMap = 5;
		NoCastShadow = 29,30;
		Transparent = 25,26,27,28;
		ChangeAlpha = 30, 0.0;
		ApplySwitch "劌崋幵"{
			Case 0:
				ApplySwitch "劌巇條"{
					Case 2 :ChangeModel = "../n_ynt1001/1012_body.x", 1.0;
					Default:ChangeModel = "../n_ynt1001/1002_body.x", 1.0;
				}
			Case 1:ChangeModel = "../n_ynt1001/1003_body.x", 1.0;
			Case 2:ChangeModel = "../n_ynt1001/1004_body.x", 1.0;
		}
		If "劋揹尮"==0 && "劌媞幒徠柧"==0{
			ChangeMaterial{
				MaterialID = 0,1,2,3,4,5,6,7,8,9,10,11;
				Emissive = 0.5, 0.5, 0.5;
			}
丂丂丂丂丂丂丂丂}
		ApplySwitch "劌崋幵"{
		Case 0:
			ApplySwitch "劌曇惉"{
				Case 0:ChangeTexture = 29, "../n_ynt1001/tex/幵斣/1012.png";
				Case 1:ChangeTexture = 29, "../n_ynt1001/tex/幵斣/1022.png";
				Case 2:ChangeTexture = 29, "../n_ynt1001/tex/幵斣/1032.png";
				Case 3:ChangeTexture = 29, "../n_ynt1001/tex/幵斣/1042.png";
				Case 4:ChangeTexture = 29, "../n_ynt1001/tex/幵斣/1052.png";
				Case 5:ChangeTexture = 29, "../n_ynt1001/tex/幵斣/1062.png";
				Case 6:ChangeTexture = 29, "../n_ynt1001/tex/幵斣/1072.png";
				Case 7:ChangeTexture = 29, "../n_ynt1001/tex/幵斣/1082.png";
				Case 8:ChangeTexture = 29, "../n_ynt1001/tex/幵斣/1092.png";
				Case 9:ChangeTexture = 29, "../n_ynt1001/tex/幵斣/1102.png";
				Case 10:ChangeTexture = 29, "../n_ynt1001/tex/幵斣/1112.png";
				Case 11:
					ApplySwitch "劌巇條"{
						Case 2: ChangeTexture = 12, "../n_ynt1001/tex/幵懱懁柺_1122.png";
							ShiftTexture = 13, 0.0, 0.5;
					}
					ChangeTexture = 29, "../n_ynt1001/tex/幵斣/1122.png";
				Case 12:ChangeTexture = 29, "../n_ynt1001/tex/幵斣/1132.png";
				Case 13:ChangeTexture = 29, "../n_ynt1001/tex/幵斣/1142.png";
				Case 14:ChangeTexture = 29, "../n_ynt1001/tex/幵斣/1152.png";
				Case 15:ChangeTexture = 29, "../n_ynt1001/tex/幵斣/1162.png";
				Case 16:
					ApplySwitch "劌巇條"{
						Case 2:丂ChangeTexture = 12, "../n_ynt1001/tex/幵懱懁柺_1172.png";
						Default:丂ChangeTexture = 12, "../n_ynt1001/tex/幵懱懁柺_1173.png";
					}
					ShiftTexture = 13, 0.5, 0.0;
					ShiftTexture = 14, 0.125, 0.0;
					ChangeAlpha = 29, 0.0;
					ChangeAlpha = 30, 1.0;
					ChangeTexture = 30, "../n_ynt1001/tex/幵斣/1172.png";
			}
			ApplySwitch "劌巇條"{
				Case 2 :ChangeModel = "../n_ynt1001/1012_body.x", 1.0;
				Default:ChangeModel = "../n_ynt1001/1002_body.x", 1.0;
			}
		Case 1:
			ApplySwitch "劌曇惉"{
				Case 0:ChangeTexture = 29, "../n_ynt1001/tex/幵斣/1013.png";
				Case 1:ChangeTexture = 29, "../n_ynt1001/tex/幵斣/1023.png";
				Case 2:ChangeTexture = 29, "../n_ynt1001/tex/幵斣/1033.png";
				Case 3:ChangeTexture = 29, "../n_ynt1001/tex/幵斣/1043.png";
				Case 4:ChangeTexture = 29, "../n_ynt1001/tex/幵斣/1053.png";
				Case 5:ChangeTexture = 29, "../n_ynt1001/tex/幵斣/1063.png";
				Case 6:ChangeTexture = 29, "../n_ynt1001/tex/幵斣/1073.png";
				Case 7:ChangeTexture = 29, "../n_ynt1001/tex/幵斣/1083.png";
				Case 8:ChangeTexture = 29, "../n_ynt1001/tex/幵斣/1093.png";
				Case 9:ChangeTexture = 29, "../n_ynt1001/tex/幵斣/1103.png";
				Case 10:ChangeTexture = 29, "../n_ynt1001/tex/幵斣/1113.png";
				Case 11:
					ApplySwitch "劌巇條"{
						Case 2: ChangeTexture = 12, "../n_ynt1001/tex/幵懱懁柺_1123.png";
							ShiftTexture = 13, 0.0, 0.5;
					}
					ChangeTexture = 29, "../n_ynt1001/tex/幵斣/1123.png";
				Case 12:ChangeTexture = 29, "../n_ynt1001/tex/幵斣/1133.png";
				Case 13:ChangeTexture = 29, "../n_ynt1001/tex/幵斣/1143.png";
				Case 14:ChangeTexture = 29, "../n_ynt1001/tex/幵斣/1153.png";
				Case 15:ChangeTexture = 29, "../n_ynt1001/tex/幵斣/1163.png";
				Case 16:ChangeTexture = 12, "../n_ynt1001/tex/幵懱懁柺_1173.png";
					ShiftTexture = 13, 0.5, 0.0;
					ShiftTexture = 14, 0.125, 0.0;
					ChangeAlpha = 29, 0.0;
					ChangeAlpha = 30, 1.0;
					ChangeTexture = 30, "../n_ynt1001/tex/幵斣/1173.png";
			}
			ChangeModel = "1003_body.x", 1.0;
		Case 2:
			ApplySwitch "劌曇惉"{
				Case 0:ChangeTexture = 29, "../n_ynt1001/tex/幵斣/1014.png";
				Case 1:ChangeTexture = 29, "../n_ynt1001/tex/幵斣/1024.png";
				Case 2:ChangeTexture = 29, "../n_ynt1001/tex/幵斣/1034.png";
				Case 3:ChangeTexture = 29, "../n_ynt1001/tex/幵斣/1044.png";
				Case 4:ChangeTexture = 29, "../n_ynt1001/tex/幵斣/1054.png";
				Case 5:ChangeTexture = 29, "../n_ynt1001/tex/幵斣/1064.png";
				Case 6:ChangeTexture = 29, "../n_ynt1001/tex/幵斣/1074.png";
				Case 7:ChangeTexture = 29, "../n_ynt1001/tex/幵斣/1084.png";
				Case 8:ChangeTexture = 29, "../n_ynt1001/tex/幵斣/1094.png";
				Case 9:ChangeTexture = 29, "../n_ynt1001/tex/幵斣/1104.png";
				Case 10:ChangeTexture = 29, "../n_ynt1001/tex/幵斣/1114.png";
				Case 11:
					ApplySwitch "劌巇條"{
						Case 2: ChangeTexture = 12, "../n_ynt1001/tex/幵懱懁柺_1123.png";
							ShiftTexture = 13, 0.0, 0.5;
					}
					ChangeTexture = 29, "../n_ynt1001/tex/幵斣/1124.png";
				Case 12:ChangeTexture = 29, "../n_ynt1001/tex/幵斣/1134.png";
				Case 13:ChangeTexture = 29, "../n_ynt1001/tex/幵斣/1144.png";
				Case 14:ChangeTexture = 29, "../n_ynt1001/tex/幵斣/1154.png";
				Case 15:ChangeTexture = 29, "../n_ynt1001/tex/幵斣/1164.png";
				Case 16:ChangeTexture = 12, "../n_ynt1001/tex/幵懱懁柺_1173.png";
					ShiftTexture = 13, 0.5, 0.0;
					ShiftTexture = 14, 0.125, 0.0;
					ChangeAlpha = 29, 0.0;
					ChangeAlpha = 30, 1.0;
					ChangeTexture = 30, "../n_ynt1001/tex/幵斣/1174.png";
			}
			ChangeModel = "1004_body.x", 1.0;
		}
		ApplySwitch "劌巇條"{
		Case 2:
				ApplySwitch "劌曇惉"{
					Case 9:
					Default:
						ChangeTexture = 6, "../n_ynt1001/tex/幵撪嵗惾嵗柺_1.png";
				}
		}	
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "shadow"{
		ModelFileName = "";
		ModelScale = 1.0;
		NoCastShadow = 0;
		ApplySwitch "劋娙堈堿"{
		Case 0:ChangeModel = "../n_ynt1001/shadow_1002.x", 1.0;
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	FrontCabin{
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
}
