PluginHeader{
	RailSimVersion = 2.15;
	PluginType = Train;
	PluginName = "yEnthˋԁzNRRTOO`_VQ";
	PluginAuthor = "Enthiesia";
	IconTexture = "../Common_Enth/enthiesiaicon.png";
	Description = "`t@CXV:211231";
}
TrainInfo{
	FrontLimit = 8.0;
	TailLimit = -8.0;
	MaxVelocity = 105.0;
	MaxAcceleration = 3.0;
	MaxDeceleration = 3.0;
	DoorClosingTime = 7;
}
DefineSwitch"\\d\\"{
	Entry = "@";
}
DefineSwitch"d"{
	GroupCommon = "d"; 
	Entry = "";
	Entry = "񑗃[hiƖ̂ݐ؁j";
	Entry = "؁ivEƖSj";
	Entry = "p^";
}
DefineSwitch"\\ځ\\"{
	Entry = "@";
}
DefineSwitch"PBR"{
	GroupCommon = "PBR";
	Entry = "iBumpLEEnvLEORMLj";
	Entry = "ʃ}bv̂݁iBumpLEEnvEORMj";
	Entry = "ȂiBumpEEnvEORMj";
}
DefineSwitch""{
	GroupCommon = "";
	Entry = "()";		//0
	Entry = "e@";
	Entry = "e@Vh";
	Entry = "e@l";
	Entry = "e@{";
	Entry = "e@t";
	Entry = "e@";
	Entry = "e@Fs{";
	Entry = "e@";
	Entry = "";
	Entry = "^]";	//10
	Entry = "e@䃖";
	Entry = "}s@䃖";
	Entry = "e@]";
	Entry = "}s@]";
	Entry = "e@";
}
DefineSwitch"hAJ"{
	GroupCommon = "hAJ";
	Entry = "iz[ԎɊJB̃[ĥ݊Jv_܂j";
	Entry = "펞";
	Entry = "펞isJ";
	Entry = "펞isEJ";
	Entry = "펞J";
}
DefineSwitch"p^Ot"{
	Entry = "Ȃ";
	Entry = "i㏸j";
	Entry = "i~j";
}
DefineSwitch"\\bݒ\\"{
	Entry = "@";
}
DefineSwitch""{
	GroupCommon = "";
	Entry = "";
	Entry = "Ȃ";
}
DefineSwitch"ԕ"{
	GroupCommon = "ԕ"; 
	Entry = "Ԃ̂ݓ_";
	Entry = "펞";
	Entry = "펞";
}
DefineSwitch"ȈՃVhE"{
	GroupCommon = "ȈՃVhE";
	Entry = "";
	Entry = "Ȃ";
}
DefineSwitch"O"{
	GroupCommon = "O"; 
	Entry = "O1067mm";
	Entry = "WO1435mm";
}
DefineSwitch"Ԕ"{
	Entry = "501";
	Entry = "502";
	Entry = "503";
	Entry = "504";
	Entry = "505";
	Entry = "506";
	Entry = "507";
	Entry = "508";
	Entry = "551";
	Entry = "552";
	Entry = "553";
	Entry = "554";
	Entry = "555";
	Entry = "556";
	Entry = "557";
	Entry = "558";
}
DefineSwitch"擪"{
	Entry = "擪";
	Entry = "Ԏ";
}
DefineSwitch""{
	Entry = "P";
	Entry = "Q";
	Entry = "R";
	Entry = "S";
	Entry = "T";
	Entry = "U";
}
DefineSwitch"dA"{
	Entry = "Ȃ";
	Entry = "";
}
DefineAnimation"500LCD"{
	Frame="tex_exterior.png",180;
	ShiftTexture=0.0, 0.00;
	Frame="tex_exterior.png",180;
	ShiftTexture=0.0, 0.05;
	Frame="tex_exterior.png",180;
	ShiftTexture=0.0, 0.10;
}
PrimaryAssembly{
	Axle"syarinn1"{
		ModelFileName = "model_syarin80_n.x";
		ModelScale = 1.0;
		Turn = no;
		CastShadow = yes;

		ApplySwitch"O"{
			Case 1: ChangeModel = "model_syarin80_w.x",1.0;
		}//Ԃɒ

		Diameter = 0.8;
		Symmetric = 32;
		Coord = (6.2,0.4);
		WheelSound = yes;
	}
	Axle"syarinn2"{
		ModelFileName = "model_syarin80_n.x";
		ModelScale = 1.0;
		Turn = no;
		CastShadow = yes;

		ApplySwitch"O"{
			Case 1: ChangeModel = "model_syarin80_w.x",1.0;
		}//Ԃɒ

		Diameter = 0.8;
		Symmetric = 32;
		Coord = (4.2,0.4);
		WheelSound = yes;
	}
	Axle"syarinn3"{
		ModelFileName = "model_syarin80_n.x";
		ModelScale = 1.0;
		Turn = no;
		CastShadow = yes;

		ApplySwitch"O"{
			Case 1: ChangeModel = "model_syarin80_w.x",1.0;
		}//Ԃɒ

		Diameter = 0.8;
		Symmetric = 32;
		Coord = (-4.2,0.4);
		WheelSound = yes;
	}
	Axle"syarinn4"{
		ModelFileName = "model_syarin80_n.x";
		ModelScale = 1.0;
		Turn = no;
		CastShadow = yes;

		ApplySwitch"O"{
			Case 1: ChangeModel = "model_syarin80_w.x",1.0;
		}//Ԃɒ

		Diameter = 0.8;
		Symmetric = 32;
		Coord = (-6.2,0.4);
		WheelSound = yes;
	}
	Body"daisya1"{
		ModelFileName = "model_daisya_n.x";
		ModelScale = 1.0;
		Turn = no;
		CastShadow = yes;

		ApplySwitch"O"{
			Case 1: ChangeModel = "model_daisya_w.x",1.0;
		}

		JointZY"syarinn1"{
			AttachCoord = (0.0,0.0);
			LocalCoord = (1.0,0.4);
		}
		JointZY"syarinn2"{
			AttachCoord = (0.0,0.0);
			LocalCoord = (-1.0,0.4);
		}
	}
	Body"daisya2"{
		ModelFileName = "model_daisya_n.x";
		ModelScale = 1.0;
		Turn = no;
		CastShadow = yes;

		ApplySwitch"O"{
			Case 1: ChangeModel = "model_daisya_w.x",1.0;
		}

		JointZY"syarinn3"{
			AttachCoord = (0.0,0.0);
			LocalCoord = (1.0,0.4);
		}
		JointZY"syarinn4"{
			AttachCoord = (0.0,0.0);
			LocalCoord = (-1.0,0.4);
		}
	}

	Body"syatai"{ //interior
		ModelFileName = "";
		ModelScale = 1.0;
		CastShadow = no;

		NoCastShadow = 3,4;
		Transparent = 4;

		If!""{
		ApplySwitch"擪"{
			Case 0:
				If("d" < 1){ //ON
					ChangeModel = "model_interior_s_light.x", 1.0;
				} Else { //OFF
					ChangeModel = "model_interior_s.x", 1.0;
					ChangeAlpha = 2, 0.0;
				}
			Case 1:
				If("d" < 1){ //ON
					ChangeModel = "model_interior_t_light.x", 1.0;
				} Else { //OFF
					ChangeModel = "model_interior_t.x", 1.0;
					ChangeAlpha = 2, 0.0;
				}
		}
		}

		SetAnimation = 2,"500LCD";

		JointZY"daisya1"{
			AttachCoord = (0.0,-0.0);
			LocalCoord = (5.2,0.0);
		}
		JointZY"daisya2"{
			AttachCoord = (0.0,-0.0);
			LocalCoord = (-5.2,0.0);
		}
	}

	Object3D"exterior"{
		ModelFileName = "";
		ModelScale = 1.0;
		Turn = no;

		NoReceiveShadow = 4, 5, 6, 7, 8;
		NoCastShadow = 9, 12;
		Transparent = 10, 11;

		ApplySwitch"擪"{
			Case 0:ChangeModel = "model_body_s.x", 1.0;
			Case 1:ChangeModel = "model_body_t.x", 1.0;
		}

		ApplySwitch"PBR"{
			Case 0:
				BumpMap = 1,2,3,9,10,11,12; EnvMap = 1,2,3,9,10,11,12;
				ChangeTexture = 1,"tex_exterior_orm.png",pbr;
				ChangeTexture = 2,"tex_exterior_orm.png",pbr;
				ChangeTexture = 3,"tex_exterior_orm.png",pbr;
				ChangeTexture = 9,"tex_exterior_orm.png",pbr;
				ChangeTexture = 10,"tex_exterior_orm.png",pbr;
				ChangeTexture = 11,"tex_exterior_orm.png",pbr;
				ChangeTexture = 12,"tex_exterior_orm.png",pbr;
			Case 1:BumpMap = 1,2,3,9,10,11,12;
		}

		ChangeAlpha =4, 0.0; ChangeAlpha =5, 0.0; ChangeAlpha =7, 0.0;
		If"_FRONT" == 0 && "_CONNECT1" == 0{	//擪
			ChangeAlpha =4, 1.0;
		}
		If"_FRONT" && "_CONNECT1" == 0{	//Ō
			ChangeAlpha =5, 1.0;
		}
		ApplySwitch"ԕ"{
			Case 0:
			If"_NIGHT"{
				ChangeAlpha =7, 1.0;
			}
			Case 2:
				ChangeAlpha =7, 1.0;
		}
		If("d" < 2){	//hA܂ĂƂA˕
			If ("_DOOR1" == 0 && "_DOOR2" == 0 && "hAJ" == 0) || "hAJ" == 1{
				ChangeAlpha = 6, 0.0;
			}
		}
		If("d" > 1){
			ChangeAlpha = 4, 0.0;
			ChangeAlpha = 5, 0.0;
			ChangeAlpha = 6, 0.0;
			ChangeAlpha = 7, 0.0;
			ChangeAlpha = 8, 0.0;
		}

//BDefineSwitchőΏ
		ApplySwitch""{
			Case 1:ShiftTexture = 8, 0.00, 0.0625;
			Case 2:ShiftTexture = 8, 0.00, 0.125;
			Case 3:ShiftTexture = 8, 0.00, 0.1875;
			Case 4:ShiftTexture = 8, 0.00, 0.25;
			Case 5:ShiftTexture = 8, 0.00, 0.3125;
			Case 6:ShiftTexture = 8, 0.00, 0.375;
			Case 7:ShiftTexture = 8, 0.00, 0.4375;
			Case 8:ShiftTexture = 8, 0.00, 0.5;
			Case 9:ShiftTexture = 8, 0.00, 0.5625;
			Case 10:ShiftTexture =8, 0.00, 0.625;
			Case 11:ShiftTexture = 8, 0.00, 0.6875;
			Case 12:ShiftTexture = 8, 0.00, 0.75;
			Case 13:ShiftTexture = 8, 0.00, 0.8125;
			Case 14:ShiftTexture = 8, 0.00, 0.875;
			Case 15:ShiftTexture = 8, 0.00, 0.9375;
		}
		ApplySwitch"Ԕ"{
			Case 1:ShiftTexture = 9, 0.00, 0.0625;
			Case 2:ShiftTexture = 9, 0.00, 0.125;
			Case 3:ShiftTexture = 9, 0.00, 0.1875;
			Case 4:ShiftTexture = 9, 0.00, 0.25;
			Case 5:ShiftTexture = 9, 0.00, 0.3125;
			Case 6:ShiftTexture = 9, 0.00, 0.375;
			Case 7:ShiftTexture = 9, 0.00, 0.4375;
			Case 8:ShiftTexture = 9, 0.00, 0.5;
			Case 9:ShiftTexture = 9, 0.00, 0.5625;
			Case 10:ShiftTexture = 9, 0.00, 0.625;
			Case 11:ShiftTexture = 9, 0.00, 0.6875;
			Case 12:ShiftTexture = 9, 0.00, 0.75;
			Case 13:ShiftTexture = 9, 0.00, 0.8125;
			Case 14:ShiftTexture = 9, 0.00, 0.875;
			Case 15:ShiftTexture = 9, 0.00, 0.9375;
		}
		ApplySwitch""{
			Case 1:ShiftTexture = 12, 0.05, 0.00;
			Case 2:ShiftTexture = 12, 0.00, 0.05;
			Case 3:ShiftTexture = 12, 0.05, 0.05;
			Case 4:ShiftTexture = 12, 0.00, 0.10;
			Case 5:ShiftTexture = 12, 0.05, 0.10;
			Case 6:ShiftTexture = 12, 0.00, 0.15;
			Case 7:ShiftTexture = 12, 0.05, 0.15;
		}

		Joint3D"syatai"{
			AttachCoord = (0, 0, 0);
		}
	}

	Object3D"bodyshadow"{
		ModelFileName = "";
		ModelScale = 1.0;
		CastShadow = no;

		NoReceiveShadow = 0;
		Transparent = 0;

		ApplySwitch"ȈՃVhE"{
			Case 0:ChangeModel = "model_bodyshadow.x", 1.0;
		}

		Joint3D"syatai"{
			AttachCoord = (0, 0, 0);
		}
	}

	Object3D"panta"{
		ModelFileName = "";
		ModelScale = 1.0;
		ApplySwitch"p^Ot"{
			Case 1:
				If("d" < 3){
					ChangeModel = "model_panta_a.x", 1.0;
				} Else {
					ChangeModel = "model_panta_b.x", 1.0;
				}
			Case 2:ChangeModel = "model_panta_b.x", 1.0;
		}
		Joint3D"syatai"{
			AttachCoord = (0, 0, 0);
		}
	}

	Object3D"coupler"{
		ModelFileName = "";
		ModelScale = 1.0;
		If!"擪"{
			ApplySwitch"dA"{
				Case 0:ChangeModel = "model_coup_a.x", 1.0;
				Case 1:ChangeModel = "model_coup_b.x", 1.0;
			}
		}
		Joint3D"syatai"{
			AttachCoord = (0, 0, 0);
		}
	}

	Object3D"airspring"{
		ModelFileName = "";
		ModelScale = 1.0;
		ApplySwitch"O"{
			Case 0:ChangeModel = "model_airspring_n.x", 1.0;
			Case 1:ChangeModel = "model_airspring_w.x", 1.0;
		}
		Joint3D"syatai"{
			AttachCoord = (0, 0, 0);
		}
	}

	Object3D"daisyatan"{
		ModelFileName = "";
		ModelScale = 1.0;
		If!"擪"{
			If!"O"{
				ChangeModel = "model_daisyatan_n.x", 1.0;
			} Else {
				ChangeModel = "model_daisyatan_w.x", 1.0;
			}
		}
		Joint3D"daisya1"{
			AttachCoord = (0, 0, 0);
		}
	}

//hAJBDOORXCb`ZB
//
	Object3D"doorRL"{
		ModelFileName = "model_door_LL.x";
		ModelScale = 1.0;
		NoShadow = 4,5;
//		Transparent = 4,5;
		If("d" > 0){
			ChangeAlpha =2, 0.0;
		}
		ApplySwitch"PBR"{
			Case 0:
				BumpMap = 3,4,5; EnvMap = 3,4,5;
				ChangeTexture = 3,"tex_exterior_orm.png",pbr;
				ChangeTexture = 4,"tex_exterior_orm.png",pbr;
				ChangeTexture = 5,"tex_exterior_orm.png",pbr;
			Case 1:BumpMap = 3,4,5;
		}
		If"_FRONT"{
			ApplySwitch"hAJ"{
			Case 3:
				StaticMove{
					Displacement = (0,0,0.645);
					PreAnimationDelay = 0;
					AnimationTime = 3;
					PostAnimationDelay = 0;
				}
			}
		}
		If!"_FRONT"{
			ApplySwitch"hAJ"{
			Case 2:
				StaticMove{
					Displacement = (0,0,0.645);
					PreAnimationDelay = 0;
					AnimationTime = 3;
					PostAnimationDelay = 0;
				}
			}
		}
		ApplySwitch"hAJ"{
		Case 4:
			StaticMove{
				Displacement = (0,0,0.645);
				PreAnimationDelay = 0;
				AnimationTime = 3;
				PostAnimationDelay = 0;
			}
		}
		If"_DOOR1"{
			ApplySwitch"hAJ"{
			Case 0:
				StaticMove{
					Displacement = (0,0,0.645);
					PreAnimationDelay = 1;
					AnimationTime = 3;
					PostAnimationDelay = 2;
				}
			}
		}
		Joint3D"syatai"{
			AttachCoord = (0,0,0);
		}
	}
//E
	Object3D"doorRR"{
		ModelFileName = "model_door_LR.x";
		ModelScale = 1.0;
		NoShadow = 4,5;
//		Transparent = 4,5;
		If("d" > 0){
			ChangeAlpha =2, 0.0;
		}
		ApplySwitch"PBR"{
			Case 0:
				BumpMap = 3,4,5; EnvMap = 3,4,5;
				ChangeTexture = 3,"tex_exterior_orm.png",pbr;
				ChangeTexture = 4,"tex_exterior_orm.png",pbr;
				ChangeTexture = 5,"tex_exterior_orm.png",pbr;
			Case 1:BumpMap = 3,4,5;
		}
		If"_FRONT"{
			ApplySwitch"hAJ"{
				Case 3:StaticMove{
					Displacement = (0,0,-0.645);
					PreAnimationDelay = 0;
					AnimationTime = 3;
					PostAnimationDelay = 0;
				}
			}
		}
		If!"_FRONT"{
			ApplySwitch"hAJ"{
				Case 2:StaticMove{
					Displacement = (0,0,-0.645);
					PreAnimationDelay = 0;
					AnimationTime = 3;
					PostAnimationDelay = 0;
				}
			}
		}
		ApplySwitch"hAJ"{
			Case 4:StaticMove{
					Displacement = (0,0,-0.645);
					PreAnimationDelay = 0;
					AnimationTime = 3;
					PostAnimationDelay = 0;
			}
		}
		If"_DOOR1"{
			ApplySwitch"hAJ"{
				Case 0:StaticMove{
					Displacement = (0,0,-0.645);
					PreAnimationDelay = 1;
					AnimationTime = 3;
					PostAnimationDelay = 2;
				}
			}
		}
		Joint3D"syatai"{
			AttachCoord = (0,0,0);
		}
	}
//E
	Object3D"doorLL"{
		ModelFileName = "model_door_RL.x";
		ModelScale = 1.0;
		NoShadow = 4,5;
//		Transparent = 4,5;
		If("d" > 0){
			ChangeAlpha =2, 0.0;
		}
		ApplySwitch"PBR"{
			Case 0:
				BumpMap = 3,4,5; EnvMap = 3,4,5;
				ChangeTexture = 3,"tex_exterior_orm.png",pbr;
				ChangeTexture = 4,"tex_exterior_orm.png",pbr;
				ChangeTexture = 5,"tex_exterior_orm.png",pbr;
			Case 1:BumpMap = 3,4,5;
		}
		If"_FRONT"{
			ApplySwitch"hAJ"{
				Case 2:StaticMove{
					Displacement = (0,0,-0.645);
					PreAnimationDelay = 0;
					AnimationTime = 3;
					PostAnimationDelay = 0;
				}
			}
		}
		If!"_FRONT"{
			ApplySwitch"hAJ"{
				Case 3:StaticMove{
					Displacement = (0,0,-0.645);
					PreAnimationDelay = 0;
					AnimationTime = 3;
					PostAnimationDelay = 0;
				}
			}
		}
		ApplySwitch"hAJ"{
			Case 4:StaticMove{
					Displacement = (0,0,-0.645);
					PreAnimationDelay = 0;
					AnimationTime = 3;
					PostAnimationDelay = 0;
			}
		}
		If"_DOOR2"{
			ApplySwitch"hAJ"{
				Case 0:StaticMove{
					Displacement = (0,0,-0.645);
					PreAnimationDelay = 1;
					AnimationTime = 3;
					PostAnimationDelay = 2;
				}
			}
		}
		Joint3D"syatai"{
			AttachCoord = (0,0,0);
		}
	}
//EE
	Object3D"doorLR"{
		ModelFileName = "model_door_RR.x";
		ModelScale = 1.0;
		NoShadow = 4,5;
//		Transparent = 4,5;
		If("d" > 0){
			ChangeAlpha =2, 0.0;
		}
		ApplySwitch"PBR"{
			Case 0:
				BumpMap = 3,4,5; EnvMap = 3,4,5;
				ChangeTexture = 3,"tex_exterior_orm.png",pbr;
				ChangeTexture = 4,"tex_exterior_orm.png",pbr;
				ChangeTexture = 5,"tex_exterior_orm.png",pbr;
			Case 1:BumpMap = 3,4,5;
		}
		If"_FRONT"{
			ApplySwitch"hAJ"{
				Case 2:StaticMove{
					Displacement = (0,0,0.645);
					PreAnimationDelay = 0;
					AnimationTime = 3;
					PostAnimationDelay = 0;
				}
			}
		}
		If!"_FRONT"{
			ApplySwitch"hAJ"{
				Case 3:StaticMove{
					Displacement = (0,0,0.645);
					PreAnimationDelay = 0;
					AnimationTime = 3;
					PostAnimationDelay = 0;
				}
			}
		}
		ApplySwitch"hAJ"{
			Case 4:StaticMove{
					Displacement = (0,0,0.645);
					PreAnimationDelay = 0;
					AnimationTime = 3;
					PostAnimationDelay = 0;
			}
		}
		If"_DOOR2"{
			ApplySwitch"hAJ"{
				Case 0:StaticMove{
					Displacement = (0,0,0.645);
					PreAnimationDelay = 1;
					AnimationTime = 3;
					PostAnimationDelay = 2;
				}
			}
		}
		Joint3D"syatai"{
			AttachCoord = (0,0,0);
		}
	}
	If"_FRONT" == 0 && "_CONNECT1" == 0 && ("d" < 2){	//is̐擪ԂłAdI
		Headlight{
			AttachObject = "syatai";
			SourceCoord = (-0.92, 1.33, 7.63);
			Direction = (0.0, 0.0, 15.0);
			MaxDistance = 100.0;
			LensFlare{
				StartAngle = 90.0;
				Circle{
					Distance = 0.0;
					Radius = 0.2;
					InnerColor = #f3ffffff;
					//InnerColor = #f3ffff9a;
					OuterColor = #00000000;
					//OuterColer = #00ffff75;
				}
			}
		}
		Headlight{
			AttachObject = "syatai";
			SourceCoord = (0.92, 1.33, 7.63);
			Direction = (0.0, 0.0, 15.0);
			MaxDistance = 100.0;
			LensFlare{
				StartAngle = 90.0;
				Circle{
					Distance = 0.0;
					Radius = 0.2;
					InnerColor = #f3ffffff;
					//InnerColor = #f3ffff9a;
					OuterColor = #00000000;
					//OuterColer = #00ffff75;
				}
			}
		}
	}
	FrontCabin{
		Joint3D "syatai"{
			AttachCoord = (-0.2, 2.4, 6.4);
			DirLink = "syatai";
		}
	}
}