PluginHeader{
	RailSimVersion = 2.00;
	PluginType = Train;
	PluginName = "都電7000形更新車";
	PluginAuthor = "n";
	IconTexture = "icon.png";
	Description = "";
}

TrainInfo{
	FrontLimit = 7.0;
	TailLimit = -7.0;
	MaxVelocity = 40.0;
	MaxAcceleration = 3.0;
	MaxDeceleration = 3.5;
	DoorClosingTime = 5.0;
}
DefineSwitch "電源"{
	Entry = "入";
	Entry = "切";
}
DefineSwitch "ビューゲル向き"{
	Entry = "正方向";
	Entry = "負方向";
}
DefineSwitch "ライト"{
	Entry = "入";
	Entry = "切";
}
DefineSwitch "ブレーキライト"{
	Entry = "入";
	Entry = "切";
}
DefineSwitch "室内灯"{
	Entry = "入";
	Entry = "切";
}
DefineSwitch "幕灯"{
	Entry = "入";
	Entry = "切";
}
DefineSwitch "行先"{
	Entry = "試運転";
	Entry = "回送車";
	Entry = "貸切車";
	Entry = "早稲田";
	Entry = "三ノ輪橋";
	Entry = "大塚駅前";
	Entry = "町屋駅前";
	Entry = "荒川車庫前";
	Entry = "王子駅前";
	Entry = "早稲田(終車一本前)";
	Entry = "三ノ輪橋(終車一本前)";
	Entry = "王子駅前(終車一本前)";
	Entry = "荒川車庫前(終車一本前)";
	Entry = "早稲田(終車)";
	Entry = "三ノ輪橋(終車)";
	Entry = "大塚駅前(終車)";
	Entry = "王子駅前(終車)";
	Entry = "荒川車庫前(終車)";
}
DefineSwitch "ワンマン表示"{
	Entry = "白幕";
	Entry = "青幕";
	Entry = "";
}
DefineSwitch "ワイパー"{
	Entry = "準備中";
}

DefineSwitch "ドア開閉"{
	Entry = "自動";
	Entry = "自動(乗車扉)";
	Entry = "自動(降車扉)";
	Entry = "全開";
	Entry = "締切";
}
DefineSwitch "窓"{
	Entry = "閉";
	Entry = "一部開1";
	Entry = "一部開2";
}
DefineSwitch "混雑度"{
	Entry = "低";
	Entry = "高";
}
DefineSwitch "車両"{
	Entry = "7001(休2017)"; //1978年更新・2017年休車
	Entry = "7002(休2017・廃2018)"; //1978年更新・2017年休車・2018年廃車
	Entry = "7003(2016)"; //1978年更新・2016年廃車
	Entry = "7004(2011)"; //1977年更新・2011年廃車
	Entry = "7005(2016)"; //1978年更新・2016年廃車
	Entry = "7006(1991)"; //1978年更新・1991年廃車
	Entry = "7007(2015)"; //1977年更新・2015年廃車
	Entry = "7008(2012)"; //1977年更新・2012年廃車
	Entry = "7009(1992)"; //1978年更新・1992年廃車・豊鉄に譲渡
	Entry = "7010(2016)"; //1978年更新・2016年廃車
	Entry = "7011(1991)"; //1978年更新・1991年廃車
	Entry = "7012(1993)"; //1977年更新・1993年廃車
	Entry = "7013(2015)"; //1978年更新・2015年廃車
	Entry = "7014(1993)"; //1978年更新・1993年廃車
	Entry = "7015(2016)"; //1977年更新・2016年廃車
	Entry = "7016(2016)"; //1977年更新・2016年廃車
	Entry = "7017(2000)"; //1977年更新・2000年廃車・豊鉄に譲渡
	Entry = "7018(2016)"; //1978年更新・2016年廃車
	Entry = "7019(2015)"; //1977年更新・2015年廃車
	Entry = "7020(休2006・廃2008)"; //1978年更新・2006年休車・2008年廃車
	Entry = "7021(2000)"; //1978年更新・2000年廃車・豊鉄に譲渡
	Entry = "7022(休2017・廃2018)"; //1978年更新・2017年休車・2018年廃車
	Entry = "7023(2015)"; //1977年更新・2015年廃車
	Entry = "7024(2016)"; //1978年更新・2016年廃車
	Entry = "7025(2015)"; //1978年更新・2015年廃車
	Entry = "7026(2015)"; //1978年更新・2015年廃車
	Entry = "7027(2011)"; //1977年更新・2011年廃車
	Entry = "7028(1992)"; //1977年更新・1992年廃車・豊鉄に譲渡
	Entry = "7029(2016)"; //1977年更新・2016年廃車
	Entry = "7030(2016)"; //1977年更新・2016年廃車
	Entry = "7031(2016)"; //1978年更新・2016年廃車
	Entry = ""; //無表示
}
DefineSwitch "形態"{
	Entry = "登場時";
	Entry = "1986年〜";//塗装変更・集電機器更新・冷房設置(一部)
	Entry = "199x年〜";//銀杏マーク追加
	Entry = "2002年〜";//集電機器交換(一部)
	Entry = "2003年〜";//行先表示器更新・冷房更新(一部)
	Entry = "2005年〜";//塗装変更(7022)
	Entry = "2011年〜";//集電機器交換(一部)
	Entry = "2013年〜";//塗装変更(7001)
}
DefineSwitch "床下機器"{
	Entry = "1";
	Entry = "2";
}
DefineSwitch "床下汚れ"{
	Entry = "無";
	Entry = "有";
}
DefineSwitch "前面飾り"{
	Entry = "無";
	Entry = "準備中";
	Entry = "準備中";
}
DefineSwitch "ヘッドマーク"{
	Entry = "無";
	Entry = "準備中";
	Entry = "準備中";
	Entry = "準備中";
}
DefineSwitch "車外ステッカー"{
	Entry = "無";
	Entry = "準備中";
	Entry = "準備中";
	Entry = "準備中";
}

DefineSwitch "広告サボ"{
	Entry = "無";
	Entry = "1";
	Entry = "2";
	Entry = "3";
}
DefineSwitch "車外広告"{
	Entry = "無";
	Entry = "1";
	Entry = "2";
	Entry = "3";
}
PrimaryAssembly{
	Axle "wheel1"{
		ModelFileName = "Wheel.x";
		ModelScale = 1.0;
		Diameter = 0.66;
		Symmetric = 24;
		Coord = (4.0,0.33);
	}
	Axle "wheel2"{
		ModelFileName = "Wheel.x";
		ModelScale = 1.0;
		Diameter = 0.66;
		Symmetric = 24;
		Coord = (2.6,0.33);
	}
	Axle "wheel3"{
		ModelFileName = "Wheel.x";
		ModelScale = 1.0;
		Diameter = 0.66;
		Symmetric = 24;
		Coord = (-2.6,0.33);
	}
	Axle "wheel4"{
		ModelFileName = "Wheel.x";
		ModelScale = 1.0;
		Diameter = 0.66;
		Symmetric = 24;
		Coord = (-4.0,0.33);
	}
	Body "Bogie1"{
		ModelFileName = "bogie.x";
		ModelScale = 1.0;
		ApplySwitch "床下汚れ"{
		Case 1:ChangeTexture = 0, "tex/台車1.png";ChangeTexture = 1, "tex/台車1.png";
		}  
		JointZY "wheel1"{
			AttachCoord = (0.0,0.0);
			LocalCoord = (1.0,0.0);
		}
		JointZY "wheel2"{
			AttachCoord = (0.0,0.0);
			LocalCoord = (-1.0,0.0);
		}
	}
	Body "Bogie2"{
		ModelFileName = "bogie.x";
		ModelScale = 1.0;
		ApplySwitch "床下汚れ"{
		Case 1:ChangeTexture = 0, "tex/台車1.png";ChangeTexture = 1, "tex/台車1.png";
		}  
		JointZY "wheel3"{
			AttachCoord = (0,0.0);
			LocalCoord = (1.0,0.0);
		}
		JointZY "wheel4"{
			AttachCoord = (0,0.0);
			LocalCoord = (-1.0,0.0);
		}
	}
	Body "Dummy"{
		ModelFileName = "";
		JointZY "Bogie1"{
			AttachCoord = (0.0, 0.0);
			LocalCoord = (1.0, 0.33);
		}
		JointZY "Bogie2"{
			AttachCoord = (0.0, 0.0);
			LocalCoord = (-1.0, 0.33);
		}
	}
	Object3D "display"{
		ModelFileName = "";
		ModelScale = 1.0;
		NoCastShadow = 0,1,2,3,4,5,6,7;
		ApplySwitch "形態"{
		Case 0: ChangeModel = "maku0.x", 1.0;ChangeTexture = 0, "tex/青.png"; ChangeTexture = 1, "tex/側面0.png";ChangeTexture = 6, "案内/前面幕/ワンマン旧.png"; 
		Case 1: ChangeModel = "maku0.x", 1.0;ChangeTexture = 0, "tex/黄緑.png";ChangeTexture = 1, "tex/側面1.png";ChangeTexture = 6, "案内/前面幕/ワンマン旧.png";     
		Case 2,3: ChangeModel = "maku0.x", 1.0;ChangeTexture = 0, "tex/黄緑.png";ChangeTexture = 1, "tex/側面1.png";ChangeTexture = 6, "案内/前面幕/ワンマン新.png";     
		Case 4:ChangeModel = "maku1.x", 1.0;ChangeTexture = 0, "tex/黄緑.png";ChangeTexture = 1, "tex/側面1.png";   
		Case 5,6:
		ApplySwitch "車両"{ 
		Case 21:ChangeModel = "maku1.x", 1.0;ChangeTexture = 0, "tex/青.png";ChangeTexture = 1, "tex/側面2.png";   
		Default:ChangeModel = "maku1.x", 1.0;ChangeTexture = 0, "tex/黄緑.png";ChangeTexture = 1, "tex/側面1.png";   
		}
		Case 7:
		ApplySwitch "車両"{
		Case 0 :ChangeModel = "maku1.x", 1.0;ChangeTexture = 0, "tex/車体色3.png";ChangeTexture = 1, "tex/側面3.png";    
		Case 21:ChangeModel = "maku1.x", 1.0;ChangeTexture = 0, "tex/青.png";ChangeTexture = 1, "tex/側面2.png";   
		Default:ChangeModel = "maku1.x", 1.0;ChangeTexture = 0, "tex/黄緑.png";ChangeTexture = 1, "tex/側面1.png";   
		}
		}

		ApplySwitch "電源"{
		Case 0:
		ApplySwitch "幕灯"{
		Case 0:
		ApplySwitch "形態"{
		Case 0,1,2,3:
		ChangeMaterial{
		MaterialID = 3,5;
		Emissive = 0.5, 0.5, 0.5;
		}
		Case 4,5,6,7:
		}
		Case 1:
		ApplySwitch "形態"{
		Case 4,5,6,7:ChangeAlpha = 3, 0.0; ChangeAlpha = 5, 0.0;
		}
		}
		Case 1:
		ApplySwitch "形態"{
		Case 0,1,2,3:
		Case 4,5,6,7:ChangeAlpha = 3, 0.0; ChangeAlpha = 5, 0.0;
		}
		}
		ApplySwitch "形態"{
		Case 0:
		ApplySwitch "行先"{
		Case 0 :ChangeTexture = 3, "案内/前面幕/試運転.png";ChangeTexture = 5, "案内/側面幕/試運転.png";
		Case 1 :ChangeTexture = 3, "案内/前面幕/回送車.png";ChangeTexture = 5, "案内/側面幕/回送車.png"; 
		Case 2 :ChangeTexture = 3, "案内/前面幕/貸切車.png";ChangeTexture = 5, "案内/側面幕/貸切車.png";  
		Case 3 :ChangeTexture = 3, "案内/前面幕/早稲田_旧.png";ChangeTexture = 5, "案内/側面幕/早稲田_旧.png";    
		Case 4 :ChangeTexture = 3, "案内/前面幕/三ノ輪橋_旧.png";ChangeTexture = 5, "案内/側面幕/三ノ輪橋_旧.png";   
		Case 5 :ChangeTexture = 3, "案内/前面幕/大塚駅前_旧.png";ChangeTexture = 5, "案内/側面幕/大塚駅前_旧.png"; 
		Case 6 :ChangeTexture = 3, "案内/前面幕/町屋駅前_旧.png";ChangeTexture = 5, "案内/側面幕/町屋駅前_旧.png";     
		Case 7 :ChangeTexture = 3, "案内/前面幕/荒川車庫前_旧.png";ChangeTexture = 5, "案内/側面幕/荒川車庫前_旧.png";  
		Case 8 :ChangeTexture = 3, "案内/前面幕/王子駅前_旧.png";ChangeTexture = 5, "案内/側面幕/王子駅前_旧.png"; 
 		Case 9 :ChangeTexture = 3, "案内/前面幕/早稲田終前.png"; ChangeTexture = 5, "案内/側面幕/早稲田終前.png"; 
 		Case 10 :ChangeTexture = 3, "案内/前面幕/三ノ輪橋終前.png";ChangeTexture = 5, "案内/側面幕/三ノ輪橋終前.png";  
 		Case 11 :ChangeTexture = 3, "案内/前面幕/王子駅前終前.png";ChangeTexture = 5, "案内/側面幕/王子駅前終前.png";       
		Case 12 :ChangeTexture = 3, "案内/前面幕/荒川車庫前終前.png";ChangeTexture = 5, "案内/側面幕/荒川車庫前終前.png";  
 		Case 13 :ChangeTexture = 3, "案内/前面幕/早稲田終.png";ChangeTexture = 5, "案内/側面幕/早稲田終.png";  
 		Case 14 :ChangeTexture = 3, "案内/前面幕/三ノ輪橋終.png";ChangeTexture = 5, "案内/側面幕/三ノ輪橋終.png";   
		Case 15 :ChangeTexture = 3, "案内/前面幕/大塚駅前終.png";ChangeTexture = 5, "案内/側面幕/大塚駅前終.png"; 
		Case 16 :ChangeTexture = 3, "案内/前面幕/王子駅前終.png";ChangeTexture = 5, "案内/側面幕/王子駅前終.png"; 
		Case 17 :ChangeTexture = 3, "案内/前面幕/荒川車庫前終.png";ChangeTexture = 5, "案内/側面幕/荒川車庫前終.png";    
 		Case 18 :ChangeTexture = 3, "案内/前面幕/白幕.png";ChangeTexture = 5, "案内/側面幕/白幕.png";      
		}
		Case 1,2,3:
		ApplySwitch "行先"{
		Case 0 :ChangeTexture = 3, "案内/前面幕/試運転.png";ChangeTexture = 5, "案内/側面幕/試運転.png";
		Case 1 :ChangeTexture = 3, "案内/前面幕/回送車.png";ChangeTexture = 5, "案内/側面幕/回送車.png"; 
		Case 2 :ChangeTexture = 3, "案内/前面幕/貸切車.png";ChangeTexture = 5, "案内/側面幕/貸切車.png";  
		Case 3 :ChangeTexture = 3, "案内/前面幕/早稲田_新.png";ChangeTexture = 5, "案内/側面幕/早稲田_新.png";    
		Case 4 :ChangeTexture = 3, "案内/前面幕/三ノ輪橋_新.png";ChangeTexture = 5, "案内/側面幕/三ノ輪橋_新.png";   
		Case 5 :ChangeTexture = 3, "案内/前面幕/大塚駅前_新.png";ChangeTexture = 5, "案内/側面幕/大塚駅前_新.png"; 
		Case 6 :ChangeTexture = 3, "案内/前面幕/町屋駅前_新.png";ChangeTexture = 5, "案内/側面幕/町屋駅前_新.png";     
		Case 7 :ChangeTexture = 3, "案内/前面幕/荒川車庫前_新.png";ChangeTexture = 5, "案内/側面幕/荒川車庫前_新.png";  
		Case 8 :ChangeTexture = 3, "案内/前面幕/王子駅前_新.png";ChangeTexture = 5, "案内/側面幕/王子駅前_新.png"; 
 		Case 9 :ChangeTexture = 3, "案内/前面幕/早稲田終前.png"; ChangeTexture = 5, "案内/側面幕/早稲田終前.png"; 
 		Case 10 :ChangeTexture = 3, "案内/前面幕/三ノ輪橋終前.png";ChangeTexture = 5, "案内/側面幕/三ノ輪橋終前.png";  
 		Case 11 :ChangeTexture = 3, "案内/前面幕/王子駅前終前.png";ChangeTexture = 5, "案内/側面幕/王子駅前終前.png";       
		Case 12 :ChangeTexture = 3, "案内/前面幕/荒川車庫前終前.png";ChangeTexture = 5, "案内/側面幕/荒川車庫前終前.png";  
 		Case 13 :ChangeTexture = 3, "案内/前面幕/早稲田終.png";ChangeTexture = 5, "案内/側面幕/早稲田終.png";  
 		Case 14 :ChangeTexture = 3, "案内/前面幕/三ノ輪橋終.png";ChangeTexture = 5, "案内/側面幕/三ノ輪橋終.png";   
		Case 15 :ChangeTexture = 3, "案内/前面幕/大塚駅前終.png";ChangeTexture = 5, "案内/側面幕/大塚駅前終.png"; 
		Case 16 :ChangeTexture = 3, "案内/前面幕/王子駅前終.png";ChangeTexture = 5, "案内/側面幕/王子駅前終.png"; 
		Case 17 :ChangeTexture = 3, "案内/前面幕/荒川車庫前終.png";ChangeTexture = 5, "案内/側面幕/荒川車庫前終.png";    
 		Case 18 :ChangeTexture = 3, "案内/前面幕/白幕.png";ChangeTexture = 5, "案内/側面幕/白幕.png";      
		}
		Case 4,5,6,7:
		ApplySwitch "行先"{
		Case 0 :ChangeTexture = 3, "案内/前面幕/試運転_LED.png";ChangeTexture = 5, "案内/側面幕/試運転_LED.png";
		Case 1 :ChangeTexture = 3, "案内/前面幕/回送車_LED.png";ChangeTexture = 5, "案内/側面幕/回送車_LED.png"; 
		Case 2 :ChangeTexture = 3, "案内/前面幕/貸切車_LED.png";ChangeTexture = 5, "案内/側面幕/貸切車_LED.png";  
		Case 3 :ChangeTexture = 3, "案内/前面幕/早稲田_LED.png";ChangeTexture = 5, "案内/側面幕/早稲田_LED.png";    
		Case 4 :ChangeTexture = 3, "案内/前面幕/三ノ輪橋_LED.png";ChangeTexture = 5, "案内/側面幕/三ノ輪橋_LED.png";   
		Case 5 :ChangeTexture = 3, "案内/前面幕/大塚駅前_LED.png";ChangeTexture = 5, "案内/側面幕/大塚駅前_LED.png"; 
		Case 6 :ChangeTexture = 3, "案内/前面幕/町屋駅前_LED.png";ChangeTexture = 5, "案内/側面幕/町屋駅前_LED.png";     
		Case 7 :ChangeTexture = 3, "案内/前面幕/荒川車庫前_LED.png";ChangeTexture = 5, "案内/側面幕/荒川車庫前_LED.png";  
		Case 8 :ChangeTexture = 3, "案内/前面幕/王子駅前_LED.png";ChangeTexture = 5, "案内/側面幕/王子駅前_LED.png";    
 		Default :ChangeAlpha = 3, 0.0; ChangeAlpha = 5, 0.0;
		}
		}
		ApplySwitch "ワンマン表示"{
		Case 0 :ChangeTexture = 6, "案内/前面幕/ワンマン旧.png"; 
		Case 1 :ChangeTexture = 6, "案内/前面幕/ワンマン新.png"; 
		Case 2 :ChangeTexture = 6, "案内/前面幕/白幕.png"; 
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "mirrorz"{
		ModelFileName = "";
		ModelScale = 1.0;
		EnvMap = 3;
		If "_FRONT"{
			StaticRotation{
				　　RotationAxis = (0.0, 1.0, 0.0);
				    RotationAngle = 180;
			}
		}
		ApplySwitch "形態"{
		Case 0: ChangeModel = "mirror0.x", 1.0;ChangeTexture = 0, "tex/黄色3.png";ChangeTexture = 1, "tex/車体色0.png";ChangeTexture = 2, "tex/青枠.png";  
		Case 1,2,3,4: ChangeModel = "mirror1.x", 1.0;ChangeTexture = 0, "tex/車体色1.png";ChangeTexture = 1, "tex/車体色1.png";ChangeTexture = 2, "tex/緑枠.png";  
		Case 5,6:
		ApplySwitch "車両"{
		Case 21: ChangeModel = "mirror1.x", 1.0;ChangeTexture = 0, "tex/車体色2.png";ChangeTexture = 1, "tex/車体色2.png";ChangeTexture = 2, "tex/青枠.png";  
		Default: ChangeModel = "mirror1.x", 1.0;ChangeTexture = 0, "tex/車体色1.png";ChangeTexture = 1, "tex/車体色1.png";ChangeTexture = 2, "tex/緑枠.png";  
		}
		Case 7: 
		ApplySwitch "車両"{
		Case 0: ChangeModel = "mirror1.x", 1.0;ChangeTexture = 0, "tex/白0.png";ChangeTexture = 1, "tex/車体色3.png";ChangeTexture = 2, "tex/黄枠.png";  
		Case 21: ChangeModel = "mirror1.x", 1.0;ChangeTexture = 0, "tex/車体色2.png";ChangeTexture = 1, "tex/車体色2.png";ChangeTexture = 2, "tex/青枠.png";  
		Default: ChangeModel = "mirror1.x", 1.0;ChangeTexture = 0, "tex/車体色1.png";ChangeTexture = 1, "tex/車体色1.png";ChangeTexture = 2, "tex/緑枠.png";  
		}
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "wiper"{
		ModelFileName = "";
		ModelScale = 1.0;
		ApplySwitch "形態"{
		Case 0,1,2,3:ChangeModel = "wiper1.x", 1.0;
		Case 4,5,6,7:ChangeModel = "wiper2.x", 1.0;
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "brakez"{
		ModelFileName = "";
		ModelScale = 1.0;
		ApplySwitch "形態"{
		Case 4,5,6,7: 
		ApplySwitch "_FRONT"{
		Case 0:ChangeModel = "brake.x", 1.0;
		}
		}
		If "電源"==0 && "ブレーキライト"==0 && "_ACCEL"<-0{
		ChangeAlpha = 1, 1.0;
		}
		Else {
		ChangeAlpha = 1, 0.0;
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "brake-z"{
		ModelFileName = "";
		ModelScale = 1.0;
		ApplySwitch "形態"{
		Case 4,5,6,7: 
		ApplySwitch "_FRONT"{
		Case 1:ChangeModel = "brake.x", 1.0;
		}
		}
		If "電源"==0 && "ブレーキライト"==0 && "_ACCEL"<-0{
		ChangeAlpha = 1, 1.0;
		}
		Else {
		ChangeAlpha = 1, 0.0;
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
			AttachDir = (0.0, 0.0, -1.0);
		}
	}
	Object3D "connector"{
		ModelFileName = "";
		ModelScale = 1.0;
		If"_CONNECT2"{
		ChangeModel = "connector.x", 1.0;
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.705, -7.0);
		}
	}
	Object3D "Doorlz"{
		ModelFileName = "Doorlz.x";
		ModelScale = 1.0;
		NoCastShadow = 0;
		Transparent = 4,5;
		ApplySwitch "電源"{
		Case 0:
		ApplySwitch "室内灯"{
		Case 0:
		ChangeMaterial{
		MaterialID = 3;
		Emissive = 0.6, 0.6, 0.6;
		}
　　　　　　　　}
　　　　　　　　}
		ApplySwitch "形態"{
		Case 0:ChangeTexture = 0, "tex/側面0.png";ChangeTexture = 1, "tex/側面0.png"; 
		Case 1,2,3,4:
		ApplySwitch "車外広告"{ 
		Case 0:ChangeTexture = 0, "tex/側面1_正.png";ChangeTexture = 1, "tex/側面1.png";
		Case 1:ChangeTexture = 0, "tex/側面1_正_広告1.png";ChangeTexture = 1, "tex/側面1.png";
		Case 2:ChangeTexture = 0, "tex/側面1_正_広告2.png";ChangeTexture = 1, "tex/側面1.png";
		Case 3:ChangeTexture = 0, "tex/側面1_正_広告3.png";ChangeTexture = 1, "tex/側面1.png";
		}  
		Case 5,6: 
		ApplySwitch "車両"{
		Case 21:ChangeTexture = 0, "tex/側面2.png";ChangeTexture = 1, "tex/側面2.png"; 
		Default:  
		ApplySwitch "車外広告"{ 
		Case 0:ChangeTexture = 0, "tex/側面1_正.png";ChangeTexture = 1, "tex/側面1.png";
		Case 1:ChangeTexture = 0, "tex/側面1_正_広告1.png";ChangeTexture = 1, "tex/側面1.png";
		Case 2:ChangeTexture = 0, "tex/側面1_正_広告2.png";ChangeTexture = 1, "tex/側面1.png";
		Case 3:ChangeTexture = 0, "tex/側面1_正_広告3.png";ChangeTexture = 1, "tex/側面1.png";
		}   
		}
		Case 7: 
		ApplySwitch "車両"{
		Case 0:ChangeTexture = 0, "tex/側面3.png";ChangeTexture = 1, "tex/側面3.png";
		Case 21:ChangeTexture = 0, "tex/側面2.png";ChangeTexture = 1, "tex/側面2.png"; 
		Default:  
		ApplySwitch "車外広告"{ 
		Case 0:ChangeTexture = 0, "tex/側面1_正.png";ChangeTexture = 1, "tex/側面1.png";
		Case 1:ChangeTexture = 0, "tex/側面1_正_広告1.png";ChangeTexture = 1, "tex/側面1.png";
		Case 2:ChangeTexture = 0, "tex/側面1_正_広告2.png";ChangeTexture = 1, "tex/側面1.png";
		Case 3:ChangeTexture = 0, "tex/側面1_正_広告3.png";ChangeTexture = 1, "tex/側面1.png";
		}   
		}
		}
		ApplySwitch "形態"{
		Case 0,1,2,3: 
		ApplySwitch "混雑度"{
		Case 0: ChangeTexture = 4, "tex/窓車外1.png";  ChangeTexture = 5, "tex/窓車外1.png";  
		Case 1: ChangeTexture = 4, "tex/窓車外1.png";  ChangeTexture = 5, "tex/窓車外1_混.png";  
		}
		Case 4,5,6,7: 
		ApplySwitch "混雑度"{
		Case 0: ChangeTexture = 4, "tex/窓車外2.png";  ChangeTexture = 5, "tex/窓車外2.png";  
		Case 1: ChangeTexture = 4, "tex/窓車外2.png";  ChangeTexture = 5, "tex/窓車外2_混.png";  
		}
		}
		ApplySwitch "ドア開閉"{
		Case 0,1:
		ApplySwitch "_DOOR1"{
		Case 1:
			StaticMove{
				Displacement = (0.0, 0.0, -0.91);
				PreAnimationDelay = 0.6;
				AnimationTime = 1.5;
			}
			}
		Case 3:
			StaticMove{
				Displacement = (0.0, 0.0, -0.91);
				PreAnimationDelay = 0.6;
				AnimationTime = 1.5;
			}
	
		}

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

	Object3D "Doorl-z"{
		ModelFileName = "Doorl-z.x";
		ModelScale = 1.0;
		NoCastShadow = 0;
		Transparent = 4,5;
		ApplySwitch "電源"{
		Case 0:
		ApplySwitch "室内灯"{
		Case 0:
		ChangeMaterial{
		MaterialID = 3;
		Emissive = 0.6, 0.6, 0.6;
		}
　　　　　　　　}
　　　　　　　　}
		ApplySwitch "形態"{
		Case 0:ChangeTexture = 0, "tex/側面0.png";ChangeTexture = 1, "tex/側面0.png"; 
		Case 1,2,3,4:
		ApplySwitch "車外広告"{ 
		Case 0:ChangeTexture = 0, "tex/側面1_正.png";ChangeTexture = 1, "tex/側面1.png";
		Case 1:ChangeTexture = 0, "tex/側面1_正_広告1.png";ChangeTexture = 1, "tex/側面1.png";
		Case 2:ChangeTexture = 0, "tex/側面1_正_広告2.png";ChangeTexture = 1, "tex/側面1.png";
		Case 3:ChangeTexture = 0, "tex/側面1_正_広告3.png";ChangeTexture = 1, "tex/側面1.png";
		}  
		Case 5,6: 
		ApplySwitch "車両"{
		Case 21:ChangeTexture = 0, "tex/側面2.png";ChangeTexture = 1, "tex/側面2.png"; 
		Default:  
		ApplySwitch "車外広告"{ 
		Case 0:ChangeTexture = 0, "tex/側面1_正.png";ChangeTexture = 1, "tex/側面1.png";
		Case 1:ChangeTexture = 0, "tex/側面1_正_広告1.png";ChangeTexture = 1, "tex/側面1.png";
		Case 2:ChangeTexture = 0, "tex/側面1_正_広告2.png";ChangeTexture = 1, "tex/側面1.png";
		Case 3:ChangeTexture = 0, "tex/側面1_正_広告3.png";ChangeTexture = 1, "tex/側面1.png";
		}   
		}
		Case 7: 
		ApplySwitch "車両"{
		Case 0:ChangeTexture = 0, "tex/側面3.png";ChangeTexture = 1, "tex/側面3.png";
		Case 21:ChangeTexture = 0, "tex/側面2.png";ChangeTexture = 1, "tex/側面2.png"; 
		Default:  
		ApplySwitch "車外広告"{ 
		Case 0:ChangeTexture = 0, "tex/側面1_正.png";ChangeTexture = 1, "tex/側面1.png";
		Case 1:ChangeTexture = 0, "tex/側面1_正_広告1.png";ChangeTexture = 1, "tex/側面1.png";
		Case 2:ChangeTexture = 0, "tex/側面1_正_広告2.png";ChangeTexture = 1, "tex/側面1.png";
		Case 3:ChangeTexture = 0, "tex/側面1_正_広告3.png";ChangeTexture = 1, "tex/側面1.png";
		}   
		}
		}
		ApplySwitch "形態"{
		Case 0,1,2,3: 
		ApplySwitch "混雑度"{
		Case 0: ChangeTexture = 4, "tex/窓車外1.png";  ChangeTexture = 5, "tex/窓車外1.png";  
		Case 1: ChangeTexture = 4, "tex/窓車外1.png";  ChangeTexture = 5, "tex/窓車外1_混.png";  
		}
		Case 4,5,6,7: 
		ApplySwitch "混雑度"{
		Case 0: ChangeTexture = 4, "tex/窓車外2.png";  ChangeTexture = 5, "tex/窓車外2.png";  
		Case 1: ChangeTexture = 4, "tex/窓車外2.png";  ChangeTexture = 5, "tex/窓車外2_混.png";  
		}
		}
		ApplySwitch "ドア開閉"{
		Case 0,2:
		ApplySwitch "_DOOR1"{
		Case 1:
			StaticMove{
				Displacement = (0.0, 0.0, 1.21);
				PreAnimationDelay = 0.6;
				AnimationTime = 1.5;
			}
			}
		Case 3:
			StaticMove{
				Displacement = (0.0, 0.0, 1.21);
				PreAnimationDelay = 0.6;
				AnimationTime = 1.5;
			}
	
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "Doorrz"{
		ModelFileName = "Doorrz.x";
		ModelScale = 1.0;
		NoCastShadow = 0;
		Transparent = 4,5;
		ApplySwitch "電源"{
		Case 0:
		ApplySwitch "室内灯"{
		Case 0:
		ChangeMaterial{
		MaterialID = 3;
		Emissive = 0.6, 0.6, 0.6;
		}
　　　　　　　　}
　　　　　　　　}
		ApplySwitch "形態"{
		Case 0:ChangeTexture = 0, "tex/側面0.png";ChangeTexture = 1, "tex/側面0.png"; 
		Case 1,2,3,4:
		ApplySwitch "車外広告"{ 
		Case 0:ChangeTexture = 0, "tex/側面1_負.png";ChangeTexture = 1, "tex/側面1.png";
		Case 1:ChangeTexture = 0, "tex/側面1_負_広告1.png";ChangeTexture = 1, "tex/側面1.png";
		Case 2:ChangeTexture = 0, "tex/側面1_負_広告2.png";ChangeTexture = 1, "tex/側面1.png";
		Case 3:ChangeTexture = 0, "tex/側面1_負_広告3.png";ChangeTexture = 1, "tex/側面1.png";
		}  
		Case 5,6: 
		ApplySwitch "車両"{
		Case 21:ChangeTexture = 0, "tex/側面2.png";ChangeTexture = 1, "tex/側面2.png"; 
		Default:  
		ApplySwitch "車外広告"{ 
		Case 0:ChangeTexture = 0, "tex/側面1_負.png";ChangeTexture = 1, "tex/側面1.png";
		Case 1:ChangeTexture = 0, "tex/側面1_負_広告1.png";ChangeTexture = 1, "tex/側面1.png";
		Case 2:ChangeTexture = 0, "tex/側面1_負_広告2.png";ChangeTexture = 1, "tex/側面1.png";
		Case 3:ChangeTexture = 0, "tex/側面1_負_広告3.png";ChangeTexture = 1, "tex/側面1.png";
		}   
		}
		Case 7: 
		ApplySwitch "車両"{
		Case 0:ChangeTexture = 0, "tex/側面3.png";ChangeTexture = 1, "tex/側面3.png";
		Case 21:ChangeTexture = 0, "tex/側面2.png";ChangeTexture = 1, "tex/側面2.png"; 
		Default:  
		ApplySwitch "車外広告"{ 
		Case 0:ChangeTexture = 0, "tex/側面1_負.png";ChangeTexture = 1, "tex/側面1.png";
		Case 1:ChangeTexture = 0, "tex/側面1_負_広告1.png";ChangeTexture = 1, "tex/側面1.png";
		Case 2:ChangeTexture = 0, "tex/側面1_負_広告2.png";ChangeTexture = 1, "tex/側面1.png";
		Case 3:ChangeTexture = 0, "tex/側面1_負_広告3.png";ChangeTexture = 1, "tex/側面1.png";
		}   
		}
		}
		ApplySwitch "混雑度"{
		Case 0: ChangeTexture = 5, "tex/窓車外.png";  
		Case 1: ChangeTexture = 5, "tex/窓車外_混.png";  
		}
		ApplySwitch "形態"{
		Case 0,1,2,3: 
		ApplySwitch "混雑度"{
		Case 0: ChangeTexture = 4, "tex/窓車外1.png";  ChangeTexture = 5, "tex/窓車外1.png";  
		Case 1: ChangeTexture = 4, "tex/窓車外1.png";  ChangeTexture = 5, "tex/窓車外1_混.png";  
		}
		Case 4,5,6,7: 
		ApplySwitch "混雑度"{
		Case 0: ChangeTexture = 4, "tex/窓車外2.png";  ChangeTexture = 5, "tex/窓車外2.png";  
		Case 1: ChangeTexture = 4, "tex/窓車外2.png";  ChangeTexture = 5, "tex/窓車外2_混.png";  
		}
		}
		ApplySwitch "ドア開閉"{
		Case 0,1:
		ApplySwitch "_DOOR2"{
		Case 1:
			StaticMove{
				Displacement = (0.0, 0.0, 0.91);
				PreAnimationDelay = 0.6;
				AnimationTime = 1.5;
			}
			}
		Case 3:
			StaticMove{
				Displacement = (0.0, 0.0, 0.91);
				PreAnimationDelay = 0.6;
				AnimationTime = 1.5;
			}
	
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}

	Object3D "Door-z"{
		ModelFileName = "Doorr-z.x";
		ModelScale = 1.0;
		NoCastShadow = 0;
		Transparent = 4,5;
		ApplySwitch "電源"{
		Case 0:
		ApplySwitch "室内灯"{
		Case 0:
		ChangeMaterial{
		MaterialID = 3;
		Emissive = 0.6, 0.6, 0.6;
		}
　　　　　　　　}
　　　　　　　　}
		ApplySwitch "形態"{
		Case 0:ChangeTexture = 0, "tex/側面0.png";ChangeTexture = 1, "tex/側面0.png"; 
		Case 1,2,3,4:
		ApplySwitch "車外広告"{ 
		Case 0:ChangeTexture = 0, "tex/側面1_負.png";ChangeTexture = 1, "tex/側面1.png";
		Case 1:ChangeTexture = 0, "tex/側面1_負_広告1.png";ChangeTexture = 1, "tex/側面1.png";
		Case 2:ChangeTexture = 0, "tex/側面1_負_広告2.png";ChangeTexture = 1, "tex/側面1.png";
		Case 3:ChangeTexture = 0, "tex/側面1_負_広告3.png";ChangeTexture = 1, "tex/側面1.png";
		}  
		Case 5,6: 
		ApplySwitch "車両"{
		Case 21:ChangeTexture = 0, "tex/側面2.png";ChangeTexture = 1, "tex/側面2.png"; 
		Default:  
		ApplySwitch "車外広告"{ 
		Case 0:ChangeTexture = 0, "tex/側面1_負.png";ChangeTexture = 1, "tex/側面1.png";
		Case 1:ChangeTexture = 0, "tex/側面1_負_広告1.png";ChangeTexture = 1, "tex/側面1.png";
		Case 2:ChangeTexture = 0, "tex/側面1_負_広告2.png";ChangeTexture = 1, "tex/側面1.png";
		Case 3:ChangeTexture = 0, "tex/側面1_負_広告3.png";ChangeTexture = 1, "tex/側面1.png";
		}   
		}
		Case 7: 
		ApplySwitch "車両"{
		Case 0:ChangeTexture = 0, "tex/側面3.png";ChangeTexture = 1, "tex/側面3.png";
		Case 21:ChangeTexture = 0, "tex/側面2.png";ChangeTexture = 1, "tex/側面2.png"; 
		Default:  
		ApplySwitch "車外広告"{ 
		Case 0:ChangeTexture = 0, "tex/側面1_負.png";ChangeTexture = 1, "tex/側面1.png";
		Case 1:ChangeTexture = 0, "tex/側面1_負_広告1.png";ChangeTexture = 1, "tex/側面1.png";
		Case 2:ChangeTexture = 0, "tex/側面1_負_広告2.png";ChangeTexture = 1, "tex/側面1.png";
		Case 3:ChangeTexture = 0, "tex/側面1_負_広告3.png";ChangeTexture = 1, "tex/側面1.png";
		}   
		}
		}
		ApplySwitch "形態"{
		Case 0,1,2,3: 
		ApplySwitch "混雑度"{
		Case 0: ChangeTexture = 4, "tex/窓車外1.png";  ChangeTexture = 5, "tex/窓車外1.png";  
		Case 1: ChangeTexture = 4, "tex/窓車外1.png";  ChangeTexture = 5, "tex/窓車外1_混.png";  
		}
		Case 4,5,6,7: 
		ApplySwitch "混雑度"{
		Case 0: ChangeTexture = 4, "tex/窓車外2.png";  ChangeTexture = 5, "tex/窓車外2.png";  
		Case 1: ChangeTexture = 4, "tex/窓車外2.png";  ChangeTexture = 5, "tex/窓車外2_混.png";  
		}
		}
		ApplySwitch "ドア開閉"{
		Case 0,2:
		ApplySwitch "_DOOR2"{
		Case 1:
			StaticMove{
				Displacement = (0.0, 0.0, -1.21);
				PreAnimationDelay = 0.6;
				AnimationTime = 1.5;
			}
			}
		Case 3:
			StaticMove{
				Displacement = (0.0, 0.0, -1.21);
				PreAnimationDelay = 0.6;
				AnimationTime = 1.5;
			}
	
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "window"{
		ModelFileName = "";
		ModelScale = 1.0;
		Transparent = 1,2;
		ApplySwitch "窓"{
		Case 0: ChangeModel = "window0.x", 1.0;
		Case 1: ChangeModel = "window1.x", 1.0;     
		Case 2: ChangeModel = "window2.x", 1.0;
		}
		ApplySwitch "混雑度"{
		Case 0: ChangeTexture = 2, "tex/窓車外1.png";  
		Case 1: ChangeTexture = 2, "tex/窓車外1_混.png";  
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "MainBody"{
		ModelFileName = "body.x";
		ModelScale = 1.0;
		AlphaZeroTest = 21;
		//NoShadow = 6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21;
		NoCastShadow = 2,3,8,33,34;
		ApplySwitch "電源"{
		Case 0:
		ApplySwitch "室内灯"{
		Case 0:
		ChangeMaterial{
		MaterialID = 6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21;
		Emissive = 0.6, 0.6, 0.6; 
		}
　　　　　　　　}
　　　　　　　　}
		ApplySwitch "形態"{
		Case 0: ChangeAlpha = 3, 0.0;
			ChangeTexture = 0, "tex/顔0.png";  
			ChangeTexture = 1, "tex/顔0.png";  
			ChangeTexture = 4, "tex/板0.png"; 
			ChangeTexture = 5, "tex/ドア部0.png";  
			ChangeAlpha = 8, 0.0;     
			ChangeTexture = 27, "tex/顔0.png";   
			ChangeTexture = 28, "tex/側面0_正.png";  
			ChangeTexture = 29, "tex/側面0_正.png";  
			ChangeTexture = 30, "tex/側面0.png";  
			ChangeAlpha = 34, 0.0;       
			ChangeTexture = 35, "tex/車体色0.png";   
		Case 1: ChangeAlpha = 3, 0.0; ChangeAlpha = 8, 0.0;   ChangeTexture = 35, "tex/車体色1.png"; 
		ApplySwitch "車外広告"{
		Case 0: 
			ChangeTexture = 0, "tex/顔1.png";  
			ChangeTexture = 1, "tex/車体色1.png";
			ChangeTexture = 4, "tex/板1.png"; 
			ChangeTexture = 5, "tex/ドア部1.png"; 
			ChangeTexture = 27, "tex/顔1.png";   
			ChangeTexture = 28, "tex/側面1_正.png";  
			ChangeTexture = 29, "tex/側面1_負.png";    
			ChangeTexture = 30, "tex/側面1.png";
			ChangeAlpha = 34, 0.0;     
		Case 1: 
			ChangeTexture = 0, "tex/顔1.png";  
			ChangeTexture = 1, "tex/車体色1.png";
			ChangeTexture = 4, "tex/板1.png"; 
			ChangeTexture = 5, "tex/ドア部1.png";  
			ChangeTexture = 27, "tex/顔1.png";   
			ChangeTexture = 28, "tex/側面1_正_広告1.png";  
			ChangeTexture = 29, "tex/側面1_負_広告1.png";    
			ChangeTexture = 30, "tex/側面1.png";    
			ChangeTexture = 35, "tex/車体色1.png"; 
		Case 2: 
			ChangeTexture = 0, "tex/顔1.png";  
			ChangeTexture = 1, "tex/車体色1.png";
			ChangeTexture = 4, "tex/板1.png"; 
			ChangeTexture = 5, "tex/ドア部1.png";  
			ChangeTexture = 27, "tex/顔1.png";   
			ChangeTexture = 28, "tex/側面1_正_広告2.png";  
			ChangeTexture = 29, "tex/側面1_負_広告2.png";    
			ChangeTexture = 30, "tex/側面1.png"; 
			ChangeTexture = 35, "tex/車体色1.png"; 
		Case 3: 
			ChangeTexture = 0, "tex/顔1.png";  
			ChangeTexture = 1, "tex/車体色1.png";
			ChangeTexture = 4, "tex/板1.png"; 
			ChangeTexture = 5, "tex/ドア部1.png";  
			ChangeTexture = 27, "tex/顔1.png";   
			ChangeTexture = 28, "tex/側面1_正_広告3.png";  
			ChangeTexture = 29, "tex/側面1_負_広告3.png";    
			ChangeTexture = 30, "tex/側面1.png"; 
			ChangeTexture = 35, "tex/車体色1.png"; 
			}
		Case 2,3:ChangeTexture = 35, "tex/車体色1.png";  ChangeAlpha = 8, 0.0; 
		ApplySwitch "車外広告"{
		Case 0: 
			ChangeTexture = 0, "tex/顔1.png";  
			ChangeTexture = 1, "tex/車体色1.png";
			ChangeTexture = 4, "tex/板1.png"; 
			ChangeTexture = 5, "tex/ドア部1.png";  
			ChangeTexture = 27, "tex/顔1.png";   
			ChangeTexture = 28, "tex/側面1_正.png";  
			ChangeTexture = 29, "tex/側面1_負.png";    
			ChangeTexture = 30, "tex/側面1.png";     
		Case 1: 
			ChangeTexture = 0, "tex/顔1.png";  
			ChangeTexture = 1, "tex/車体色1.png";
			ChangeTexture = 4, "tex/板1.png"; 
			ChangeTexture = 5, "tex/ドア部1.png";  
			ChangeTexture = 27, "tex/顔1.png";   
			ChangeTexture = 28, "tex/側面1_正_広告1.png";  
			ChangeTexture = 29, "tex/側面1_負_広告1.png";    
			ChangeTexture = 30, "tex/側面1.png";  
		Case 2: 
			ChangeTexture = 0, "tex/顔1.png";  
			ChangeTexture = 1, "tex/車体色1.png";
			ChangeTexture = 4, "tex/板1.png"; 
			ChangeTexture = 5, "tex/ドア部1.png";  
			ChangeTexture = 27, "tex/顔1.png";   
			ChangeTexture = 28, "tex/側面1_正_広告2.png";  
			ChangeTexture = 29, "tex/側面1_負_広告2.png";    
			ChangeTexture = 30, "tex/側面1.png";
		Case 3: 
			ChangeTexture = 0, "tex/顔1.png";  
			ChangeTexture = 1, "tex/車体色1.png";
			ChangeTexture = 4, "tex/板1.png"; 
			ChangeTexture = 5, "tex/ドア部1.png";  
			ChangeTexture = 27, "tex/顔1.png";   
			ChangeTexture = 28, "tex/側面1_正_広告3.png";  
			ChangeTexture = 29, "tex/側面1_負_広告3.png";    
			ChangeTexture = 30, "tex/側面1.png"; 
			}
		Case 4:ChangeTexture = 35, "tex/車体色1.png";   
		ApplySwitch "車外広告"{
		Case 0: 
			ChangeTexture = 0, "tex/顔11.png";  
			ChangeTexture = 1, "tex/車体色1.png";
			ChangeTexture = 4, "tex/板1.png"; 
			ChangeTexture = 5, "tex/ドア部1.png";  
			ChangeTexture = 27, "tex/顔11.png";   
			ChangeTexture = 28, "tex/側面1_正.png";  
			ChangeTexture = 29, "tex/側面1_負.png";    
			ChangeTexture = 30, "tex/側面1.png"; 
		Case 1: 
			ChangeTexture = 0, "tex/顔11.png";  
			ChangeTexture = 1, "tex/車体色1.png";
			ChangeTexture = 4, "tex/板1.png"; 
			ChangeTexture = 5, "tex/ドア部1.png";  
			ChangeTexture = 27, "tex/顔11.png";   
			ChangeTexture = 28, "tex/側面1_正_広告1.png";  
			ChangeTexture = 29, "tex/側面1_負_広告1.png";    
			ChangeTexture = 30, "tex/側面1.png";    
		Case 2: 
			ChangeTexture = 0, "tex/顔11.png";  
			ChangeTexture = 1, "tex/車体色1.png";
			ChangeTexture = 4, "tex/板1.png"; 
			ChangeTexture = 5, "tex/ドア部1.png";  
			ChangeTexture = 27, "tex/顔11.png";   
			ChangeTexture = 28, "tex/側面1_正_広告2.png";  
			ChangeTexture = 29, "tex/側面1_負_広告2.png";    
			ChangeTexture = 30, "tex/側面1.png"; 
		Case 3: 
			ChangeTexture = 0, "tex/顔11.png";  
			ChangeTexture = 1, "tex/車体色1.png";
			ChangeTexture = 4, "tex/板1.png"; 
			ChangeTexture = 5, "tex/ドア部1.png";  
			ChangeTexture = 27, "tex/顔11.png";   
			ChangeTexture = 28, "tex/側面1_正_広告3.png";  
			ChangeTexture = 29, "tex/側面1_負_広告3.png";    
			ChangeTexture = 30, "tex/側面1.png";
			}
		Case 5,6:
		ApplySwitch "車両"{
		Case 21:ChangeTexture = 0, "tex/顔2.png";  
			ChangeTexture = 1, "tex/顔2.png";
			ChangeTexture = 4, "tex/板2.png"; 
			ChangeTexture = 5, "tex/ドア部2.png";  
			ChangeTexture = 27, "tex/顔2.png";   
			ChangeTexture = 28, "tex/側面2_正.png";  
			ChangeTexture = 29, "tex/側面2_負.png";    
			ChangeTexture = 30, "tex/側面2.png";    
			ChangeTexture = 34, "車番/tokyo.png";  
			ChangeTexture = 35, "tex/車体色2.png";       

		Default:ChangeTexture = 35, "tex/車体色1.png";   
		ApplySwitch "車外広告"{
		Case 0: 
			ChangeTexture = 0, "tex/顔11.png";  
			ChangeTexture = 1, "tex/車体色1.png";
			ChangeTexture = 4, "tex/板1.png"; 
			ChangeTexture = 5, "tex/ドア部1.png";  
			ChangeTexture = 27, "tex/顔11.png";   
			ChangeTexture = 28, "tex/側面1_正.png";  
			ChangeTexture = 29, "tex/側面1_負.png";    
			ChangeTexture = 30, "tex/側面1.png";    
		Case 1: 
			ChangeTexture = 0, "tex/顔11.png";  
			ChangeTexture = 1, "tex/車体色1.png";
			ChangeTexture = 4, "tex/板1.png"; 
			ChangeTexture = 5, "tex/ドア部1.png";  
			ChangeTexture = 27, "tex/顔11.png";   
			ChangeTexture = 28, "tex/側面1_正_広告1.png";  
			ChangeTexture = 29, "tex/側面1_負_広告1.png";    
			ChangeTexture = 30, "tex/側面1.png";   
		Case 2: 
			ChangeTexture = 0, "tex/顔11.png";  
			ChangeTexture = 1, "tex/車体色1.png";
			ChangeTexture = 4, "tex/板1.png"; 
			ChangeTexture = 5, "tex/ドア部1.png";  
			ChangeTexture = 27, "tex/顔11.png";   
			ChangeTexture = 28, "tex/側面1_正_広告2.png";  
			ChangeTexture = 29, "tex/側面1_負_広告2.png";    
			ChangeTexture = 30, "tex/側面1.png"; 
		Case 3: 
			ChangeTexture = 0, "tex/顔11.png";  
			ChangeTexture = 1, "tex/車体色1.png";
			ChangeTexture = 4, "tex/板1.png"; 
			ChangeTexture = 5, "tex/ドア部1.png";  
			ChangeTexture = 27, "tex/顔11.png";   
			ChangeTexture = 28, "tex/側面1_正_広告3.png";  
			ChangeTexture = 29, "tex/側面1_負_広告3.png";    
			ChangeTexture = 30, "tex/側面1.png"; 
			}
		}
		Case 7:
		ApplySwitch "車両"{
		Case 0:ChangeTexture = 0, "tex/顔3.png";  
			ChangeTexture = 1, "tex/顔3.png";  
			ChangeTexture = 3, "車番/tokyo2.png";    
			ChangeTexture = 4, "tex/板3.png"; 
			ChangeTexture = 5, "tex/ドア部3.png";  
			ChangeTexture = 28, "tex/側面3_正.png";  
			ChangeTexture = 29, "tex/側面3_負.png";    
			ChangeTexture = 30, "tex/側面3.png";  
			ChangeTexture = 34, "車番/tokyo2.png"; 
			ChangeTexture = 35, "tex/車体色3.png";        
		Case 21:ChangeTexture = 0, "tex/顔2.png";  
			ChangeTexture = 1, "tex/顔2.png";  
			ChangeTexture = 4, "tex/板2.png"; 
			ChangeTexture = 5, "tex/ドア部2.png";  
			ChangeTexture = 27, "tex/顔2.png";   
			ChangeTexture = 28, "tex/側面2_正.png";  
			ChangeTexture = 29, "tex/側面2_負.png";    
			ChangeTexture = 30, "tex/側面2.png";   
			ChangeTexture = 34, "車番/tokyo.png";  
			ChangeTexture = 35, "tex/車体色2.png";   
		Default:ChangeTexture = 35, "tex/車体色1.png";   
		ApplySwitch "車外広告"{
		Case 0: 
			ChangeTexture = 0, "tex/顔11.png";  
			ChangeTexture = 1, "tex/車体色1.png";
			ChangeTexture = 4, "tex/板1.png"; 
			ChangeTexture = 5, "tex/ドア部1.png";  
			ChangeTexture = 27, "tex/顔11.png";   
			ChangeTexture = 28, "tex/側面1_正.png";  
			ChangeTexture = 29, "tex/側面1_負.png";    
			ChangeTexture = 30, "tex/側面1.png";   
		Case 1: 
			ChangeTexture = 0, "tex/顔11.png";  
			ChangeTexture = 1, "tex/車体色1.png";
			ChangeTexture = 4, "tex/板1.png"; 
			ChangeTexture = 5, "tex/ドア部1.png";  
			ChangeTexture = 27, "tex/顔11.png";   
			ChangeTexture = 28, "tex/側面1_正_広告1.png";  
			ChangeTexture = 29, "tex/側面1_負_広告1.png";    
			ChangeTexture = 30, "tex/側面1.png";    
		Case 2: 
			ChangeTexture = 0, "tex/顔11.png";  
			ChangeTexture = 1, "tex/車体色1.png";
			ChangeTexture = 4, "tex/板1.png"; 
			ChangeTexture = 5, "tex/ドア部1.png";  
			ChangeTexture = 27, "tex/顔11.png";   
			ChangeTexture = 28, "tex/側面1_正_広告2.png";  
			ChangeTexture = 29, "tex/側面1_負_広告2.png";    
			ChangeTexture = 30, "tex/側面1.png"; 

		Case 3: 
			ChangeTexture = 0, "tex/顔11.png";  
			ChangeTexture = 1, "tex/車体色1.png";
			ChangeTexture = 4, "tex/板1.png"; 
			ChangeTexture = 5, "tex/ドア部1.png";  
			ChangeTexture = 27, "tex/顔11.png";   
			ChangeTexture = 28, "tex/側面1_正_広告3.png";  
			ChangeTexture = 29, "tex/側面1_負_広告3.png";    
			ChangeTexture = 30, "tex/側面1.png"; 
			}
		}
		}
		ApplySwitch "形態"{
		Case 0: 
		Default: 
			ChangeTexture = 31, "tex/屋根1.png";
		}
		ApplySwitch "形態"{
		Case 0: 
		ApplySwitch "車両"{
		Case 0: ChangeTexture = 2, "車番/70011.png"; ChangeTexture = 33, "車番/70011.png";   
		Case 1: ChangeTexture = 2, "車番/70021.png"; ChangeTexture = 33, "車番/70021.png";     
		Case 2: ChangeTexture = 2, "車番/70031.png"; ChangeTexture = 33, "車番/70031.png";     
		Case 3: ChangeTexture = 2, "車番/70041.png"; ChangeTexture = 33, "車番/70041.png";     
		Case 4: ChangeTexture = 2, "車番/70051.png"; ChangeTexture = 33, "車番/70051.png";     
		Case 5: ChangeTexture = 2, "車番/70061.png"; ChangeTexture = 33, "車番/70061.png";     
		Case 6: ChangeTexture = 2, "車番/70071.png"; ChangeTexture = 33, "車番/70071.png";     
		Case 7: ChangeTexture = 2, "車番/70081.png"; ChangeTexture = 33, "車番/70081.png";     
		Case 8: ChangeTexture = 2, "車番/70091.png"; ChangeTexture = 33, "車番/70091.png";     
		Case 9: ChangeTexture = 2, "車番/70101.png"; ChangeTexture = 33, "車番/70101.png";     
		Case 10: ChangeTexture = 2, "車番/70111.png"; ChangeTexture = 33, "車番/70111.png";     
		Case 11: ChangeTexture = 2, "車番/70121.png"; ChangeTexture = 33, "車番/70121.png";     
		Case 12: ChangeTexture = 2, "車番/70131.png"; ChangeTexture = 33, "車番/70131.png";     
		Case 13: ChangeTexture = 2, "車番/70141.png"; ChangeTexture = 33, "車番/70141.png";     
		Case 14: ChangeTexture = 2, "車番/70151.png"; ChangeTexture = 33, "車番/70151.png";     
		Case 15: ChangeTexture = 2, "車番/70161.png"; ChangeTexture = 33, "車番/70161.png";     
		Case 16: ChangeTexture = 2, "車番/70171.png"; ChangeTexture = 33, "車番/70171.png";     
		Case 17: ChangeTexture = 2, "車番/70181.png"; ChangeTexture = 33, "車番/70181.png";     
		Case 18: ChangeTexture = 2, "車番/70191.png"; ChangeTexture = 33, "車番/70191.png";     
		Case 19: ChangeTexture = 2, "車番/70201.png"; ChangeTexture = 33, "車番/70201.png";     
		Case 20: ChangeTexture = 2, "車番/70211.png"; ChangeTexture = 33, "車番/70211.png";     
		Case 21: ChangeTexture = 2, "車番/70221.png"; ChangeTexture = 33, "車番/70221.png";     
		Case 22: ChangeTexture = 2, "車番/70231.png"; ChangeTexture = 33, "車番/70231.png";     
		Case 23: ChangeTexture = 2, "車番/70241.png"; ChangeTexture = 33, "車番/70241.png";     
		Case 24: ChangeTexture = 2, "車番/70251.png"; ChangeTexture = 33, "車番/70251.png";     
		Case 25: ChangeTexture = 2, "車番/70261.png"; ChangeTexture = 33, "車番/70261.png";     
		Case 26: ChangeTexture = 2, "車番/70271.png"; ChangeTexture = 33, "車番/70271.png";     
		Case 27: ChangeTexture = 2, "車番/70281.png"; ChangeTexture = 33, "車番/70281.png";     
		Case 28: ChangeTexture = 2, "車番/70291.png"; ChangeTexture = 33, "車番/70291.png";     
		Case 29: ChangeTexture = 2, "車番/70301.png"; ChangeTexture = 33, "車番/70301.png";     
		Case 30: ChangeTexture = 2, "車番/70311.png"; ChangeTexture = 33, "車番/70311.png";    
		Case 31: ChangeAlpha = 2, 0.0; ChangeAlpha = 33, 0.0; 
		} 
		Case 1,2: 
		ApplySwitch "車両"{
		Case 0: ChangeTexture = 2, "車番/70012.png"; ChangeTexture = 33, "車番/7001.png";   
		Case 1: ChangeTexture = 2, "車番/70022.png"; ChangeTexture = 33, "車番/7002.png";     
		Case 2: ChangeTexture = 2, "車番/70032.png"; ChangeTexture = 33, "車番/7003.png";     
		Case 3: ChangeTexture = 2, "車番/70042.png"; ChangeTexture = 33, "車番/7004.png";     
		Case 4: ChangeTexture = 2, "車番/70052.png"; ChangeTexture = 33, "車番/7005.png";     
		Case 5: ChangeAlpha = 2, 0.0; ChangeAlpha = 33, 0.0;  
		Case 6: ChangeTexture = 2, "車番/70072.png"; ChangeTexture = 33, "車番/7007.png";     
		Case 7: ChangeTexture = 2, "車番/70082.png"; ChangeTexture = 33, "車番/7008.png";     
		Case 8: ChangeAlpha = 2, 0.0; ChangeAlpha = 33, 0.0;   
		Case 9: ChangeTexture = 2, "車番/70102.png"; ChangeTexture = 33, "車番/7010.png";     
		Case 10: ChangeAlpha = 2, 0.0; ChangeAlpha = 33, 0.0;  
		Case 11: ChangeAlpha = 2, 0.0; ChangeAlpha = 33, 0.0; 
		Case 12: ChangeTexture = 2, "車番/70132.png"; ChangeTexture = 33, "車番/7013.png";     
		Case 13: ChangeAlpha = 2, 0.0; ChangeAlpha = 33, 0.0; 
		Case 14: ChangeTexture = 2, "車番/70152.png"; ChangeTexture = 33, "車番/7015.png";     
		Case 15: ChangeTexture = 2, "車番/70162.png"; ChangeTexture = 33, "車番/7016.png";     
		Case 16: ChangeTexture = 2, "車番/70172.png"; ChangeTexture = 33, "車番/7017.png";     
		Case 17: ChangeTexture = 2, "車番/70182.png"; ChangeTexture = 33, "車番/7018.png";     
		Case 18: ChangeTexture = 2, "車番/70192.png"; ChangeTexture = 33, "車番/7019.png";     
		Case 19: ChangeTexture = 2, "車番/70202.png"; ChangeTexture = 33, "車番/7020.png";     
		Case 20: ChangeTexture = 2, "車番/70212.png"; ChangeTexture = 33, "車番/7021.png";     
		Case 21: ChangeTexture = 2, "車番/70222.png"; ChangeTexture = 33, "車番/7022.png";     
		Case 22: ChangeTexture = 2, "車番/70232.png"; ChangeTexture = 33, "車番/7023.png";     
		Case 23: ChangeTexture = 2, "車番/70242.png"; ChangeTexture = 33, "車番/7024.png";     
		Case 24: ChangeTexture = 2, "車番/70252.png"; ChangeTexture = 33, "車番/7025.png";     
		Case 25: ChangeTexture = 2, "車番/70262.png"; ChangeTexture = 33, "車番/7026.png";     
		Case 26: ChangeTexture = 2, "車番/70272.png"; ChangeTexture = 33, "車番/7027.png";     
		Case 27: ChangeAlpha = 2, 0.0; ChangeAlpha = 33, 0.0; 
		Case 28: ChangeTexture = 2, "車番/70292.png"; ChangeTexture = 33, "車番/7029.png";     
		Case 29: ChangeTexture = 2, "車番/70302.png"; ChangeTexture = 33, "車番/7030.png";     
		Case 30: ChangeTexture = 2, "車番/70312.png"; ChangeTexture = 33, "車番/7031.png";    
		Case 31: ChangeAlpha = 2, 0.0; ChangeAlpha = 33, 0.0; 
		} 
		Case 3,4: 
		ApplySwitch "車両"{
		Case 0: ChangeTexture = 2, "車番/70012.png"; ChangeTexture = 33, "車番/7001.png";   
		Case 1: ChangeTexture = 2, "車番/70022.png"; ChangeTexture = 33, "車番/7002.png";     
		Case 2: ChangeTexture = 2, "車番/70032.png"; ChangeTexture = 33, "車番/7003.png";     
		Case 3: ChangeTexture = 2, "車番/70042.png"; ChangeTexture = 33, "車番/7004.png";     
		Case 4: ChangeTexture = 2, "車番/70052.png"; ChangeTexture = 33, "車番/7005.png";     
		Case 5: ChangeAlpha = 2, 0.0; ChangeAlpha = 33, 0.0;  
		Case 6: ChangeTexture = 2, "車番/70072.png"; ChangeTexture = 33, "車番/7007.png";     
		Case 7: ChangeTexture = 2, "車番/70082.png"; ChangeTexture = 33, "車番/7008.png";     
		Case 8: ChangeAlpha = 2, 0.0; ChangeAlpha = 33, 0.0;   
		Case 9: ChangeTexture = 2, "車番/70102.png"; ChangeTexture = 33, "車番/7010.png";     
		Case 10: ChangeAlpha = 2, 0.0; ChangeAlpha = 33, 0.0;  
		Case 11: ChangeAlpha = 2, 0.0; ChangeAlpha = 33, 0.0; 
		Case 12: ChangeTexture = 2, "車番/70132.png"; ChangeTexture = 33, "車番/7013.png";     
		Case 13: ChangeAlpha = 2, 0.0; ChangeAlpha = 33, 0.0; 
		Case 14: ChangeTexture = 2, "車番/70152.png"; ChangeTexture = 33, "車番/7015.png";     
		Case 15: ChangeTexture = 2, "車番/70162.png"; ChangeTexture = 33, "車番/7016.png";     
		Case 16: ChangeTexture = 2, "車番/70172.png"; ChangeTexture = 33, "車番/7017.png";     
		Case 17: ChangeTexture = 2, "車番/70182.png"; ChangeTexture = 33, "車番/7018.png";     
		Case 18: ChangeTexture = 2, "車番/70192.png"; ChangeTexture = 33, "車番/7019.png";     
		Case 19: ChangeTexture = 2, "車番/70202.png"; ChangeTexture = 33, "車番/7020.png";     
		Case 20: ChangeAlpha = 2, 0.0; ChangeAlpha = 33, 0.0;  
		Case 21: ChangeTexture = 2, "車番/70222.png"; ChangeTexture = 33, "車番/7022.png";     
		Case 22: ChangeTexture = 2, "車番/70232.png"; ChangeTexture = 33, "車番/7023.png";     
		Case 23: ChangeTexture = 2, "車番/70242.png"; ChangeTexture = 33, "車番/7024.png";     
		Case 24: ChangeTexture = 2, "車番/70252.png"; ChangeTexture = 33, "車番/7025.png";     
		Case 25: ChangeTexture = 2, "車番/70262.png"; ChangeTexture = 33, "車番/7026.png";     
		Case 26: ChangeTexture = 2, "車番/70272.png"; ChangeTexture = 33, "車番/7027.png";     
		Case 27: ChangeAlpha = 2, 0.0; ChangeAlpha = 33, 0.0; 
		Case 28: ChangeTexture = 2, "車番/70292.png"; ChangeTexture = 33, "車番/7029.png";     
		Case 29: ChangeTexture = 2, "車番/70302.png"; ChangeTexture = 33, "車番/7030.png";     
		Case 30: ChangeTexture = 2, "車番/70312.png"; ChangeTexture = 33, "車番/7031.png";    
		Case 31: ChangeAlpha = 2, 0.0; ChangeAlpha = 33, 0.0; 
		} 
		Case 5: 
		ApplySwitch "車両"{
		Case 0: ChangeTexture = 2, "車番/70012.png"; ChangeTexture = 33, "車番/7001.png";   
		Case 1: ChangeTexture = 2, "車番/70022.png"; ChangeTexture = 33, "車番/7002.png";     
		Case 2: ChangeTexture = 2, "車番/70032.png"; ChangeTexture = 33, "車番/7003.png";     
		Case 3: ChangeTexture = 2, "車番/70042.png"; ChangeTexture = 33, "車番/7004.png";     
		Case 4: ChangeTexture = 2, "車番/70052.png"; ChangeTexture = 33, "車番/7005.png";     
		Case 5: ChangeAlpha = 2, 0.0; ChangeAlpha = 33, 0.0;  
		Case 6: ChangeTexture = 2, "車番/70072.png"; ChangeTexture = 33, "車番/7007.png";     
		Case 7: ChangeTexture = 2, "車番/70082.png"; ChangeTexture = 33, "車番/7008.png";     
		Case 8: ChangeAlpha = 2, 0.0; ChangeAlpha = 33, 0.0;   
		Case 9: ChangeTexture = 2, "車番/70102.png"; ChangeTexture = 33, "車番/7010.png";     
		Case 10: ChangeAlpha = 2, 0.0; ChangeAlpha = 33, 0.0;  
		Case 11: ChangeAlpha = 2, 0.0; ChangeAlpha = 33, 0.0; 
		Case 12: ChangeTexture = 2, "車番/70132.png"; ChangeTexture = 33, "車番/7013.png";     
		Case 13: ChangeAlpha = 2, 0.0; ChangeAlpha = 33, 0.0; 
		Case 14: ChangeTexture = 2, "車番/70152.png"; ChangeTexture = 33, "車番/7015.png";     
		Case 15: ChangeTexture = 2, "車番/70162.png"; ChangeTexture = 33, "車番/7016.png";     
		Case 16: ChangeTexture = 2, "車番/70172.png"; ChangeTexture = 33, "車番/7017.png";     
		Case 17: ChangeTexture = 2, "車番/70182.png"; ChangeTexture = 33, "車番/7018.png";     
		Case 18: ChangeTexture = 2, "車番/70192.png"; ChangeTexture = 33, "車番/7019.png";     
		Case 19: ChangeTexture = 2, "車番/70202.png"; ChangeTexture = 33, "車番/7020.png";     
		Case 20: ChangeAlpha = 2, 0.0; ChangeAlpha = 33, 0.0;  
		Case 21: ChangeTexture = 2, "車番/70221.png"; ChangeTexture = 33, "車番/70221.png";     
		Case 22: ChangeTexture = 2, "車番/70232.png"; ChangeTexture = 33, "車番/7023.png";     
		Case 23: ChangeTexture = 2, "車番/70242.png"; ChangeTexture = 33, "車番/7024.png";     
		Case 24: ChangeTexture = 2, "車番/70252.png"; ChangeTexture = 33, "車番/7025.png";     
		Case 25: ChangeTexture = 2, "車番/70262.png"; ChangeTexture = 33, "車番/7026.png";     
		Case 26: ChangeTexture = 2, "車番/70272.png"; ChangeTexture = 33, "車番/7027.png";     
		Case 27: ChangeAlpha = 2, 0.0; ChangeAlpha = 33, 0.0; 
		Case 28: ChangeTexture = 2, "車番/70292.png"; ChangeTexture = 33, "車番/7029.png";     
		Case 29: ChangeTexture = 2, "車番/70302.png"; ChangeTexture = 33, "車番/7030.png";     
		Case 30: ChangeTexture = 2, "車番/70312.png"; ChangeTexture = 33, "車番/7031.png";    
		Case 31: ChangeAlpha = 2, 0.0; ChangeAlpha = 33, 0.0; 
		} 
		Case 6: 
		ApplySwitch "車両"{
		Case 0: ChangeTexture = 2, "車番/70012.png"; ChangeTexture = 33, "車番/7001.png";   
		Case 1: ChangeTexture = 2, "車番/70022.png"; ChangeTexture = 33, "車番/7002.png";     
		Case 2: ChangeTexture = 2, "車番/70032.png"; ChangeTexture = 33, "車番/7003.png";     
		Case 3: ChangeTexture = 2, "車番/70042.png"; ChangeTexture = 33, "車番/7004.png";     
		Case 4: ChangeTexture = 2, "車番/70052.png"; ChangeTexture = 33, "車番/7005.png";     
		Case 5: ChangeAlpha = 2, 0.0; ChangeAlpha = 33, 0.0;  
		Case 6: ChangeTexture = 2, "車番/70072.png"; ChangeTexture = 33, "車番/7007.png";     
		Case 7: ChangeTexture = 2, "車番/70082.png"; ChangeTexture = 33, "車番/7008.png";     
		Case 8: ChangeAlpha = 2, 0.0; ChangeAlpha = 33, 0.0;   
		Case 9: ChangeTexture = 2, "車番/70102.png"; ChangeTexture = 33, "車番/7010.png";     
		Case 10: ChangeAlpha = 2, 0.0; ChangeAlpha = 33, 0.0;  
		Case 11: ChangeAlpha = 2, 0.0; ChangeAlpha = 33, 0.0; 
		Case 12: ChangeTexture = 2, "車番/70132.png"; ChangeTexture = 33, "車番/7013.png";     
		Case 13: ChangeAlpha = 2, 0.0; ChangeAlpha = 33, 0.0; 
		Case 14: ChangeTexture = 2, "車番/70152.png"; ChangeTexture = 33, "車番/7015.png";     
		Case 15: ChangeTexture = 2, "車番/70162.png"; ChangeTexture = 33, "車番/7016.png";     
		Case 16: ChangeAlpha = 2, 0.0; ChangeAlpha = 33, 0.0;  
		Case 17: ChangeTexture = 2, "車番/70182.png"; ChangeTexture = 33, "車番/7018.png";     
		Case 18: ChangeTexture = 2, "車番/70192.png"; ChangeTexture = 33, "車番/7019.png";     
		Case 19: ChangeAlpha = 2, 0.0; ChangeAlpha = 33, 0.0;  
		Case 20: ChangeAlpha = 2, 0.0; ChangeAlpha = 33, 0.0;  
		Case 21: ChangeTexture = 2, "車番/70221.png"; ChangeTexture = 33, "車番/70221.png";     
		Case 22: ChangeTexture = 2, "車番/70232.png"; ChangeTexture = 33, "車番/7023.png";     
		Case 23: ChangeTexture = 2, "車番/70242.png"; ChangeTexture = 33, "車番/7024.png";     
		Case 24: ChangeTexture = 2, "車番/70252.png"; ChangeTexture = 33, "車番/7025.png";     
		Case 25: ChangeTexture = 2, "車番/70262.png"; ChangeTexture = 33, "車番/7026.png";     
		Case 26: ChangeTexture = 2, "車番/70272.png"; ChangeTexture = 33, "車番/7027.png";     
		Case 27: ChangeAlpha = 2, 0.0; ChangeAlpha = 33, 0.0; 
		Case 28: ChangeTexture = 2, "車番/70292.png"; ChangeTexture = 33, "車番/7029.png";     
		Case 29: ChangeTexture = 2, "車番/70302.png"; ChangeTexture = 33, "車番/7030.png";     
		Case 30: ChangeTexture = 2, "車番/70312.png"; ChangeTexture = 33, "車番/7031.png";    
		Case 31: ChangeAlpha = 2, 0.0; ChangeAlpha = 33, 0.0; 
		} 
		Case 7: 
		ApplySwitch "車両"{
		Case 0: ChangeTexture = 2, "車番/70013.png"; ChangeTexture = 33, "車番/70013.png";   
		Case 1: ChangeTexture = 2, "車番/70022.png"; ChangeTexture = 33, "車番/7002.png";     
		Case 2: ChangeTexture = 2, "車番/70032.png"; ChangeTexture = 33, "車番/7003.png";     
		Case 3: ChangeTexture = 2, "車番/70042.png"; ChangeTexture = 33, "車番/7004.png";     
		Case 4: ChangeTexture = 2, "車番/70052.png"; ChangeTexture = 33, "車番/7005.png";     
		Case 5: ChangeAlpha = 2, 0.0; ChangeAlpha = 33, 0.0;  
		Case 6: ChangeTexture = 2, "車番/70072.png"; ChangeTexture = 33, "車番/7007.png";     
		Case 7: ChangeTexture = 2, "車番/70082.png"; ChangeTexture = 33, "車番/7008.png";     
		Case 8: ChangeAlpha = 2, 0.0; ChangeAlpha = 33, 0.0;   
		Case 9: ChangeTexture = 2, "車番/70102.png"; ChangeTexture = 33, "車番/7010.png";     
		Case 10: ChangeAlpha = 2, 0.0; ChangeAlpha = 33, 0.0;  
		Case 11: ChangeAlpha = 2, 0.0; ChangeAlpha = 33, 0.0; 
		Case 12: ChangeTexture = 2, "車番/70132.png"; ChangeTexture = 33, "車番/7013.png";     
		Case 13: ChangeAlpha = 2, 0.0; ChangeAlpha = 33, 0.0; 
		Case 14: ChangeTexture = 2, "車番/70152.png"; ChangeTexture = 33, "車番/7015.png";     
		Case 15: ChangeTexture = 2, "車番/70162.png"; ChangeTexture = 33, "車番/7016.png";     
		Case 16: ChangeAlpha = 2, 0.0; ChangeAlpha = 33, 0.0;  
		Case 17: ChangeTexture = 2, "車番/70182.png"; ChangeTexture = 33, "車番/7018.png";     
		Case 18: ChangeTexture = 2, "車番/70192.png"; ChangeTexture = 33, "車番/7019.png";     
		Case 19: ChangeAlpha = 2, 0.0; ChangeAlpha = 33, 0.0;  
		Case 20: ChangeAlpha = 2, 0.0; ChangeAlpha = 33, 0.0;  
		Case 21: ChangeTexture = 2, "車番/70221.png"; ChangeTexture = 33, "車番/70221.png";     
		Case 22: ChangeTexture = 2, "車番/70232.png"; ChangeTexture = 33, "車番/7023.png";     
		Case 23: ChangeTexture = 2, "車番/70242.png"; ChangeTexture = 33, "車番/7024.png";     
		Case 24: ChangeTexture = 2, "車番/70252.png"; ChangeTexture = 33, "車番/7025.png";     
		Case 25: ChangeTexture = 2, "車番/70262.png"; ChangeTexture = 33, "車番/7026.png";     
		Case 26: ChangeTexture = 2, "車番/70272.png"; ChangeTexture = 33, "車番/7027.png";     
		Case 27: ChangeAlpha = 2, 0.0; ChangeAlpha = 33, 0.0; 
		Case 28: ChangeTexture = 2, "車番/70292.png"; ChangeTexture = 33, "車番/7029.png";     
		Case 29: ChangeTexture = 2, "車番/70302.png"; ChangeTexture = 33, "車番/7030.png";     
		Case 30: ChangeTexture = 2, "車番/70312.png"; ChangeTexture = 33, "車番/7031.png";    
		Case 31: ChangeAlpha = 2, 0.0; ChangeAlpha = 33, 0.0; 
		} 
		} 
		ApplySwitch "形態"{
		Case 1,2,3,4:
		ApplySwitch "車外広告"{
		Case 0:
		Default:ChangeAlpha = 33, 0.0;ChangeAlpha = 34, 0.0;
		}
		Case 5,6:
		ApplySwitch "車両"{
		Case 21:
		Default:
		ApplySwitch "車外広告"{
		Case 0:
		Default:ChangeAlpha = 33, 0.0;ChangeAlpha = 34, 0.0;
		}
		}
		Case 7:
		ApplySwitch "車両"{
		Case 0:
		Case 21:
		Default:
		ApplySwitch "車外広告"{
		Case 0:
		Default:ChangeAlpha = 33, 0.0;ChangeAlpha = 34, 0.0;
		}
		}
		}
		ApplySwitch "形態"{
		Case 0:
		ApplySwitch "混雑度"{
		Case 0: ChangeTexture = 27, "tex/顔0.png";  
		Case 1: ChangeTexture = 27, "tex/顔0_混.png";  
		}
		Case 1,2,3:
		ApplySwitch "混雑度"{
		Case 0: ChangeTexture = 27, "tex/顔1.png";  
		Case 1: ChangeTexture = 27, "tex/顔1_混.png";  
		}
		Case 4:
		ApplySwitch "混雑度"{
		Case 0: ChangeTexture = 27, "tex/顔11.png";  
		Case 1: ChangeTexture = 27, "tex/顔11_混.png";  
		}
		Case 5,6:
		ApplySwitch "車両"{
		Case 21:
		ApplySwitch "混雑度"{
		Case 0: ChangeTexture = 27, "tex/顔2.png";  
		Case 1: ChangeTexture = 27, "tex/顔2_混.png";  
		}
		Default:
		ApplySwitch "混雑度"{
		Case 0: ChangeTexture = 27, "tex/顔11.png";  
		Case 1: ChangeTexture = 27, "tex/顔11_混.png";  
		}
		}
		Case 7:
		ApplySwitch "車両"{
		Case 0:
		ApplySwitch "混雑度"{
		Case 0: ChangeTexture = 27, "tex/顔3.png";  
		Case 1: ChangeTexture = 27, "tex/顔3_混.png";  
		}
		Case 21:
		ApplySwitch "混雑度"{
		Case 0: ChangeTexture = 27, "tex/顔2.png";  
		Case 1: ChangeTexture = 27, "tex/顔2_混.png";  
		}
		Default:
		ApplySwitch "混雑度"{
		Case 0: ChangeTexture = 27, "tex/顔11.png";  
		Case 1: ChangeTexture = 27, "tex/顔11_混.png";  
		}
		}
		}
		ApplySwitch "混雑度"{
		Case 0: ChangeTexture = 26, "tex/窓車外.png";  
		Case 1: ChangeTexture = 26, "tex/窓車外_混.png";  
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}

	Object3D "Lightz"{
		ModelFileName = "light.x";
		ModelScale = 1.0;
		If "電源"==0 &&"ライト"==0 &&"_FRONT"==0&&"_NIGHT"==0{
		ChangeAlpha = 3, 0.0;
		NoShadow = 1;
		ChangeTexture = 1, "tex/前照灯入.png";  
		ChangeMaterial{
		MaterialID = 1;
		Emissive = 1.0, 1.0, 1.0;
		}
		}
		If "電源"==0 &&"ライト"==0 &&"_FRONT"==0&&"_NIGHT"==1{
		ChangeAlpha = 3, 0.0;
		NoShadow = 1;
		ChangeTexture = 1, "tex/前照灯入1.png";  
		ChangeMaterial{
		MaterialID = 1;
		Emissive = 1.0, 1.0, 1.0;
		}
		}
		If "電源"==0 &&"ライト"==0 &&"_FRONT"==1{
		NoShadow = 2;
		ChangeTexture = 2, "tex/後部灯入.png";  
		ChangeMaterial{
		MaterialID = 2;
		Emissive = 1.0, 1.0, 1.0;
		}
		}
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}

	Object3D "Light-z"{
		ModelFileName = "light.x";
		ModelScale = 1.0;
		NoShadow = 2;
		If "電源"==0 &&"ライト"==0 &&"_FRONT"==1{
		ChangeAlpha = 3, 0.0;
		NoShadow = 1;
		ChangeTexture = 1, "tex/前照灯入.png";  
		ChangeMaterial{
		MaterialID = 1;
		Emissive = 1.0, 1.0, 1.0;
		}
		}
		If "電源"==0 &&"ライト"==0 &&"_FRONT"==1&&"_NIGHT"==1{
		ChangeAlpha = 3, 0.0;
		NoShadow = 1;
		ChangeTexture = 1, "tex/前照灯入1.png";  
		ChangeMaterial{
		MaterialID = 1;
		Emissive = 1.0, 1.0, 1.0;
		}
		}
		If "電源"==0 &&"ライト"==0 &&"_FRONT"==0{
		NoShadow = 2;
		ChangeTexture = 2, "tex/後部灯入.png";  
		ChangeMaterial{
		MaterialID = 2;
		Emissive = 1.0, 1.0, 1.0;
		}
		}
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
			AttachDir = (0.0, 0.0, -1.0);
		}
	}
	Object3D "head"{
		ModelFileName = "";
		ModelScale = 1.0;
		ApplySwitch "形態"{
		Case 7: 
		ApplySwitch "車両"{
		Case 0: ChangeModel = "head.x", 1.0;ChangeTexture = 0, "tex/車体色3.png";  
		Case 21: ChangeModel = "head.x", 1.0;ChangeTexture = 0, "tex/車体色2.png";  
		}
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "sideboard"{
		ModelFileName = "";
		ModelScale = 1.0;
		NoCastShadow = 1,2;
		ApplySwitch "形態"{
		Case 0: ChangeModel = "sideboard.x", 1.0;ChangeTexture = 0, "tex/側面0.png"; 
		Case 1: ChangeModel = "sideboard.x", 1.0;ChangeTexture = 0, "tex/側面1.png";      
		Case 2: ChangeModel = "sideboard.x", 1.0;ChangeTexture = 0, "tex/側面1.png";       
		Case 3: ChangeModel = "sideboard.x", 1.0;ChangeTexture = 0, "tex/側面1.png";     
		}
		ApplySwitch "広告サボ"{
		Case 0: ChangeAlpha = 1, 0.0;ChangeAlpha = 2, 0.0;
		Case 1:ChangeTexture = 1, "広告/車外広告1.png";ChangeTexture = 2, "広告/車外広告2.png";       
		Case 2:ChangeTexture = 1, "広告/車外広告3.png";ChangeTexture = 2, "広告/車外広告4.png";       
		Case 3:ChangeTexture = 1, "広告/車外広告0.png";ChangeTexture = 2, "広告/車外広告0.png";
		}
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "speaker"{
		ModelFileName = "speaker0.x";
		ModelScale = 1.0;
		NoCastShadow = 1;
		ApplySwitch "形態"{
		Case 0: ChangeTexture = 0, "tex/側面0.png"; 
		Case 1,2,3,4:ChangeTexture = 0, "tex/側面1.png";   
		Case 5,6: 
		ApplySwitch "車両"{
		Case 21: ChangeModel = "speaker1.x", 1.0;ChangeTexture = 0, "tex/側面2.png"; 
		Default:ChangeModel = "speaker1.x", 1.0;ChangeTexture = 0, "tex/側面1.png";
		}  
		Case 7: 
		ApplySwitch "車両"{
		Case 0: ChangeModel = "speaker1.x", 1.0;ChangeTexture = 0, "tex/側面3.png"; 
		Case 21: ChangeModel = "speaker1.x", 1.0;ChangeTexture = 0, "tex/側面2.png";
		Default:ChangeModel = "speaker1.x", 1.0;ChangeTexture = 0, "tex/側面1.png";
		}  
		}  
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "cooler"{
		ModelFileName = "ventilator.x";
		ModelScale = 1.0;
		ApplySwitch "形態"{
		Case 1,2:ChangeModel = "cooler1.x", 1.0;
		Case 3,4,5,6,7:
		ApplySwitch "車両"{
		Case 0,2,3,4,5,7,12,13,14,15,17,19,21,22,23,24,30:
		ChangeModel = "cooler1.x", 1.0;
		}
		ChangeModel = "cooler2.x", 1.0;
		}
		Joint3D "MainBody"{
			AttachCoord = (0.0, -0.08, 0.0);
		}
	}
	Object3D "siv"{
		ModelFileName = "";
		ModelScale = 1.0;
		ApplySwitch "形態"{
		Case 1,2:ChangeModel = "siv1.x", 1.0;
		Case 3,4,5,6,7:
		ApplySwitch "車両"{
		Case 3,4,14,15,16,17,20,21,23,25,27,28,29,30:ChangeModel = "siv2.x", 1.0;ChangeTexture = 0, "tex/補助電源1.png"; 
		Default:ChangeModel = "siv2.x", 1.0;  	ChangeTexture = 0, "tex/補助電源0.png"; 	
		}
		}
		Joint3D "MainBody"{
			AttachCoord = (0.0, -0.08, 0.0);
		}
	}
	Object3D "yukasita"{
		ModelFileName = "";
		ModelScale = 1.0;
		ApplySwitch "床下機器"{
		Case 0:ChangeModel = "yuka1.x", 1.0;
		ApplySwitch "床下汚れ"{
		Case 0:ChangeTexture = 0, "tex/床下.png";  ChangeTexture = 1, "tex/床下.png";  
		Case 1:ChangeTexture = 0, "tex/床下1.png"; ChangeTexture = 1, "tex/床下1.png";    
		}
		Case 1:ChangeModel = "yuka2.x", 1.0;
		ApplySwitch "床下汚れ"{
		Case 0:ChangeTexture = 0, "tex/床下.png";  ChangeTexture = 1, "tex/床下.png";    
		Case 1:ChangeTexture = 0, "tex/床下1.png"; ChangeTexture = 1, "tex/床下1.png";    
		}
		}
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "BugelBasez"{
		ModelFileName = "";
		ApplySwitch "形態"{
		Case 0:
		ApplySwitch "ビューゲル向き"{
		Case 0:ChangeModel = "bugelbase.x", 1.0;
		}
		}
		Joint3D "MainBody"{
			AttachCoord = (0.0, 3.32, 0.0);
			AttachDir = (0.0, 0.0, 1.0);
		}
	}
	Object3D "Bugelz"{
		ModelFileName = "bugel.x";

		ApplySwitch "ビューゲル向き"{
		Case 0:
		ApplySwitch "電源"{
		Case 0:
			StaticRotation{
				RotationAxis = (1.0, 0.0, 0.0);
				RotationAngle = 56.0;
				AnimationTime = 3.0;
			}
		}
		Case 1:ChangeModel = "", 1.0;
		}
		ApplySwitch "形態"{
		Case 1,2,3,4,5,6,7:ChangeModel = "", 1.0;
		}
		Joint3D "BugelBasez"{
			AttachCoord = (0.0, 0.1, 0.0);
		}
	}



	Object3D "BugelBase-z"{
		ModelFileName = "";
		ApplySwitch "形態"{
		Case 0:
		ApplySwitch "ビューゲル向き"{
		Case 1:ChangeModel = "bugelbase.x", 1.0;
		}
		}
		Joint3D "MainBody"{
			AttachCoord = (0.0, 3.32, 0.0);
			AttachDir = (0.0, 0.0, 1.0);
		}
	}
	Object3D "Bugel-z"{
		ModelFileName = "bugel1.x";
		ApplySwitch "ビューゲル向き"{
		Case 0:ChangeModel = "", 1.0;
		Case 1:
		ApplySwitch "電源"{
		Case 0:
			StaticRotation{
				RotationAxis = (-1.0, 0.0, 0.0);
				RotationAngle = 56.0;
				AnimationTime = 3.0;
			}
		}
		}
		ApplySwitch "形態"{
		Case 1,2,3,4,5,6,7:ChangeModel = "", 1.0;
		}
		Joint3D "BugelBasez"{
			AttachCoord = (0.0, 0.1, 0.0);
		}
	}


	Object3D "HishiBase"{
		ModelFileName = "HishiBase.x";
		ApplySwitch "形態"{
		Case 0:ChangeModel = "", 1.0;
		Case 3,4,5:
		ApplySwitch "車両"{
		Case 0,18,19,21,24:ChangeModel = "", 1.0;
		}
		}
		Joint3D "MainBody"{
			AttachCoord = (0.0, 3.12, 0.0);
			AttachDir = (0.0, 0.0, -1.0);
		}
	}
	Object3D "HishiShoe"{
		ModelFileName = "HishiShoe.x";
		ApplySwitch "形態"{
		Case 0:ChangeModel = "", 1.0;
		Case 3,4,5:
		ApplySwitch "車両"{
		Case 0,18,19,21,24:ChangeModel = "", 1.0;
		}
		}
			StaticMove{	
				Displacement = (0.0, 0.1, 0.0);
				PreAnimationDelay = 0.1;
				AnimationTime = 0.0;
		}
		ApplySwitch "電源"{
		Case 0:
			StaticMove{
				Displacement = (0.0, 1.58, 0.0);
				PreAnimationDelay = 0.1;
				AnimationTime = 2.0;
			}
		}
		Joint3D "HishiBase"{
			AttachCoord = (0.0, 0.3, 0.0);
		}
	}
	TriangleZY{
		Link "HishiArm-y-z"{
			ModelFileName = "HishiArm-y.x";
			ApplySwitch "形態"{
			Case 0:ChangeModel = "", 1.0;
			Case 3,4,5:
			ApplySwitch "車両"{
			Case 0,18,19,21,24:ChangeModel = "", 1.0;
			}
			}
			JointZYX "HishiBase"{
				AttachCoord = (0.40, 0.15);
				LocalCoord = (0.0, 0.0);
			}
			LinkCoord = (1.00, 0.00);
		}
		Link "HishiArmy-z"{
			ModelFileName = "HishiArmy.x";
			ApplySwitch "形態"{
			Case 0:ChangeModel = "", 1.0;
			Case 3,4,5:
			ApplySwitch "車両"{
			Case 0,18,19,21,24:ChangeModel = "", 1.0;
			}
			}
			JointZYX "HishiShoe"{
				AttachCoord = (0.0, -0.1);
				LocalCoord = (0.0, 0.0);
			}
			LinkCoord = (1.4, -0.00);
		}
	}
	TriangleZY{
		Link "HishiArmyz"{
			ModelFileName = "HishiArmy.x";
			Turn = yes;
			ApplySwitch "形態"{
			Case 0:ChangeModel = "", 1.0;
			Case 3,4,5:
			ApplySwitch "車両"{
			Case 0,18,19,21,24:ChangeModel = "", 1.0;
			}
			}
			JointZYX "HishiShoe"{
				AttachCoord = (0.0, -0.1);
				LocalCoord = (0.0, 0.0);
			}
			LinkCoord = (1.4, -0.00);
		}
		Link "HishiArm-yz"{
			ModelFileName = "HishiArm-y.x";
			Turn = yes;
			ApplySwitch "形態"{
			Case 0:ChangeModel = "", 1.0;
			Case 3,4,5:
			ApplySwitch "車両"{
			Case 0,18,19,21,24:ChangeModel = "", 1.0;
			}
			}
			JointZYX "HishiBase"{
				AttachCoord = (-0.40, 0.15);
				LocalCoord = (0.0, 0.02);
			}
			LinkCoord = (1.00, 0.00);
		}
	}
	Object3D "SingleBase"{
		ModelFileName = "";
			ApplySwitch "形態"{
			Case 3,4,5:
			ApplySwitch "車両"{
			Case 0,18,19,21,24:ChangeModel = "SingleBase.x", 1.0;
			}
			}
		Joint3D "MainBody"{
			AttachCoord = (0.0, 3.12, 0.0);
			AttachDir = (0.0, 0.0, 1.0);
		}
	}
	//	集電舟体
	Object3D "SingleShoe"{
		ModelFileName = "";
			ApplySwitch "形態"{
			Case 3,4,5:
			ApplySwitch "車両"{
			Case 0,18,19,21,24:ChangeModel = "HishiShoe.x", 1.0;
			}
			}
		ApplySwitch "電源"{
		Case 0:
			StaticMove{
				Displacement = (0.0, 1.58, 0.0);
				PreAnimationDelay = 0.1;
				AnimationTime = 3.0;
			}
		}
		Joint3D "SingleBase"{
			AttachCoord = (0.0, 0.4, -0.3);
		}
	}
	TriangleZY{
		Link "Single-y"{
			ModelFileName = "";
			ApplySwitch "形態"{
			Case 3,4,5:
			ApplySwitch "車両"{
			Case 0,18,19,21,24:ChangeModel = "Single-y.x", 1.0;
			}
			}
			JointZYX "SingleBase"{
				AttachCoord = (-0.2, 0.2);
				LocalCoord = (0.0, 0.0);
			}
			LinkCoord = (1.2, 0.0);
		}
		Link "Singley"{
			ModelFileName = "";
			ApplySwitch "形態"{
			Case 3,4,5:
			ApplySwitch "車両"{
			Case 0,18,19,21,24:ChangeModel = "Singley.x", 1.0;
			}
			}
			JointZYX "SingleShoe"{
				AttachCoord = (0.0, -0.1);
				LocalCoord = (0.0, 0.0);
			}
			LinkCoord = (1.3, 0.0);
		}
	}

	TriangleZY{
		Link "Single-y1"{
			ModelFileName = "";
			ApplySwitch "形態"{
			Case 3,4,5:
			ApplySwitch "車両"{
			Case 0,18,19,21,24:ChangeModel = "Single-y1.x", 1.0;
			}
			}
			JointZYX "SingleBase"{
				AttachCoord = (0.3, 0.15);
				LocalCoord = (0.0, 0.0);
			}
			LinkCoord = (0.85, -0.0);
		}
		Link "SingleDummy"{
			ModelFileName = "";
			JointZYX "Singley"{
				AttachCoord = (1.38, -0.0);
				LocalCoord = (0.0, 0.0);
			}
			LinkCoord = (0.0, -0.1);
		}
	}

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

