//----------------------------------------------------------------------------
//
//車両プラグイン用簡易テンプレート
//by kihpeos
//Ver0.2
//
//----------------------------------------------------------------------------
PluginHeader{
	RailSimVersion = 2.00;
	PluginType = Train;
	PluginName = "南条電鉄2000系中間車2";			//プラグイン名
	PluginAuthor = "seibu";		//製作者名
	IconTexture = "アイコン.png";	//プラグイン選択画面で表示されるアイコンのイメージファイル名
}

TrainInfo{
	FrontLimit = 9.0;		//前の車両がつながる位置
	TailLimit = -9.0;		//後ろの車両がつながる位置
	MaxVelocity = 130.0;		//最高速度キロメートル
	MaxAcceleration = 2.3;		//最高加速度　速度が一秒間に何㎞/h上がるか
	MaxDeceleration = 4.5;		//最高減速度　速度が一秒間に何㎞/h下がるか
	DoorClosingTime = 1.5;		//ドアの開閉にかかる時間ドアの開閉速度とは関係なし。
}
DefineSwitch "簡易シャドウ"{
GroupCommon = "シャドウ";
	Entry = "ON";
	Entry = "OFF";

}
DefineSwitch "種別"{
GroupCommon = "種別";
	Entry = "無表示";
	Entry = "各停";
	Entry = "準急";
	Entry = "急行";
}
DefineSwitch "行先"{
GroupCommon = "行先";
	Entry = "無表示";
	Entry = "回送";
	Entry = "試運転";
	Entry = "臨時";
	Entry = "糸冬台";
	Entry = "汀丘";
	Entry = "石乃井公園";
}

PrimaryAssembly{

	Axle "Wheel1"{
		ModelFileName = "../common_seibu/南条/台車/wheel.x";
		ModelScale = 1.0;
		NoCastShadow = 0,1;
		AlphaZeroTest = 0,1;
		Diameter = 1.0;
		Symmetric = 8;
		Coord = ( 7.16, 0.41);
	}

	Axle "Wheel2"{
		ModelFileName = "../common_seibu/南条/台車/wheel.x";
		ModelScale = 1.0;
		NoCastShadow = 0,1;
		AlphaZeroTest = 0,1;
		Diameter = 1.0;
		Symmetric = 8;
		Coord = ( 5.0, 0.41);
	}

	Axle "Wheel3"{
		ModelFileName = "../common_seibu/南条/台車/wheel.x";
		ModelScale = 1.0;
		NoCastShadow = 0,1;
		AlphaZeroTest = 0,1;
		Diameter = 1.0;
		Symmetric = 8;
		Coord = ( -5.0, 0.41);
	}

	Axle "Wheel4"{
		ModelFileName = "../common_seibu/南条/台車/wheel.x";
		ModelScale = 1.0;
		NoCastShadow = 0,1;
		AlphaZeroTest = 0,1;
		Diameter = 1.0;	
		Symmetric = 8;	
		Coord = ( -7.16, 0.41);	
	}

	Body "Bogie1"{
		ModelFileName = "../common_seibu/南条/台車/bogie.x";
		NoCastShadow = 1,2;
		AlphaZeroTest = 0;
		JointZY "Wheel1"{
			AttachCoord = ( 0.0, 0.0);
			LocalCoord = ( 1.09, 0.41);
		}
		JointZY "Wheel2"{
			AttachCoord = ( 0.0, 0.0);
			LocalCoord = ( -1.09, 0.41);
		}
	}

	Body "Bogie2"{
		ModelFileName = "../common_seibu/南条/台車/bogie.x";
		Turn = yes;
		NoCastShadow = 1,2;
		AlphaZeroTest = 0;
		JointZY "Wheel4"{
			AttachCoord = ( 0.0 , 0.0);
			LocalCoord = ( 1.09, 0.41);
		}
		JointZY "Wheel3"{
			AttachCoord = ( 0.0 , 0.0);
			LocalCoord = ( -1.09, 0.41);
		}
	}
	Body "Body"{					//車体の設定
		ModelFileName = "model.x";		//車体のモデルファイル名
		ModelScale = 1.0;			//上のファイルのスケール
		AlphaZeroTest = 13;
ApplySwitch "種別"{
		Case 0:
		ChangeTexture = 19,"../common_seibu/南条/種別/無表示.png";
		Case 1:
		ChangeTexture = 19,"../common_seibu/南条/種別/各停.png";
		Case 2:
		ChangeTexture = 19,"../common_seibu/南条/種別/準急.png";
		ChangeTexture = 21,"../common_seibu/南条/急行灯/点灯.png";
		Case 3:
		ChangeTexture = 19,"../common_seibu/南条/種別/急行.png";
		ChangeTexture = 21,"../common_seibu/南条/急行灯/点灯.png";
			}
ApplySwitch "行先"{
		Case 0:
		ChangeTexture = 20,"../common_seibu/南条/行き先/無表示.png";
		Case 1:
		ChangeTexture = 19,"../common_seibu/南条/種別/無表示.png";
		ChangeTexture = 20,"../common_seibu/南条/行き先/回送.png";
		ChangeTexture = 21,"../common_seibu/南条/急行灯/点灯.png";
		Case 2:
		ChangeTexture = 19,"../common_seibu/南条/種別/無表示.png";
		ChangeTexture = 20,"../common_seibu/南条/行き先/試運転.png";
		ChangeTexture = 21,"../common_seibu/南条/急行灯/点灯.png";
		Case 3:
		ChangeTexture = 19,"../common_seibu/南条/種別/無表示.png";
		ChangeTexture = 20,"../common_seibu/南条/行き先/臨時.png";
		ChangeTexture = 21,"../common_seibu/南条/急行灯/点灯.png";
		Case 4:
		ChangeTexture = 20,"../common_seibu/南条/行き先/糸冬台.png";
		Case 5:
		ChangeTexture = 20,"../common_seibu/南条/行き先/汀丘.png";
		Case 6:
		ChangeTexture = 20,"../common_seibu/南条/行き先/石乃井公園.png";
			}
		ChangeAlpha = 13, NightAlpha;
		JointZY "Bogie1"{
			AttachCoord = (0.0, 0.95);
			LocalCoord = ( 6.11, 0.95);
		}
		JointZY "Bogie2"{
			AttachCoord = (0.0, 0.0);
			LocalCoord = ( -6.11, 0.0);
		}
	}

	Object3D "shadow"{
		ModelFileName = "影.x";
		ModelScale = 1.0;
		AlphaZeroTest = 15;
		Transparent = 0;
ApplySwitch "簡易シャドウ"{
		Case 1:
			ChangeModel = "",1.0;
			}
		Joint3D "Body"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "pt"{
		ModelFileName = "pt.x";
		ModelScale = 1.0;

		
		Joint3D "Body"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "uk"{
		ModelFileName = "../common_seibu/南条/床下/yu2.x";
		ModelScale = 1.0;
		AlphaZeroTest = 0.1;
		
		Joint3D "Body"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
//***************************************************************************************
//ドア
	Object3D "DoorR"{
		ModelFileName = "door1.x";
		ModelScale = 1.0;
		AlphaZeroTest = 13;
		ChangeAlpha = 13, NightAlpha;
		If "_DOOR1"{						//右側のドアを開く
				StaticMove{
				Displacement = (0.0, 0.0, 0.6);		//移動量ＸＹＺ
				PreAnimationDelay = 0.5;		//動作が始まるまでの時間
				AnimationTime = 1.0;			//動作にかかる時間
			}
		}
		
		Joint3D "Body"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "DoorR2"{
		ModelFileName = "door2.x";
		ModelScale = 1.0;
		AlphaZeroTest = 13;
		ChangeAlpha = 13, NightAlpha;
		If "_DOOR1"{
				StaticMove{
				Displacement = (0.0, 0.0, -0.6);
				PreAnimationDelay = 0.5;
				AnimationTime = 1.0;
			}
		}
		
		Joint3D "Body"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	
	Object3D "DoorL"{
		ModelFileName = "door4.x";
		ModelScale = 1.0;
		AlphaZeroTest = 13;
		ChangeAlpha = 13, NightAlpha;
		If "_DOOR2"{
				StaticMove{
				Displacement = (-0.0, 0.0, 0.6);
				PreAnimationDelay = 0.5;
				AnimationTime = 1.0;
			}
		}
		
		Joint3D "Body"{
			AttachCoord = (0.0, 0.0, 0.0);
			//反対側は、同じモデルファイルをＺ軸反転させて使う。
		}
	}
	Object3D "DoorL2"{
		ModelFileName = "door3.x";
		ModelScale = 1.0;
		AlphaZeroTest = 13;
		ChangeAlpha = 13, NightAlpha;
		If "_DOOR2"{
			StaticMove{
				Displacement = (-0.0, 0.0, -0.6);
				PreAnimationDelay = 0.5;
				AnimationTime = 1.0;
			}
		}
		
		Joint3D "Body"{
			AttachCoord = (0.0, 0.0, 0.0);

		}
	}

	FrontCabin{						//運転席モードの時のカメラの位置
		Joint3D "Body"{
			AttachCoord = (-1.0,2.5,9.0);
		}
	}
								//単行で運転する車両の場合はTailCabinも指定したほうがいい。
}