PluginHeader{
	RailSimVersion = 2.00;
	PluginType = Struct;
	PluginName = "道路標識-警戒標識";
	PluginAuthor = "NyahoTaro";
	IconTexture = "../common_nya/nyaicon.png";
	Description = "";
}
StructInfo{
}
DefineSwitch "■ポール種類"{
	Entry = "自立";
	Entry = "柱付";
}
DefineSwitch "└ ポールカラー"{
	Entry = "白";
	Entry = "茶";
	Entry = "無";
}
DefineSwitch "■本標識1"{
	Entry = "なし";
	Entry = "╋形道路交差点あり（201-A）";
	Entry = "┣形道路交差点あり（201-B）";
	Entry = "┫形道路交差点あり（201-B）";
	Entry = "┳形道路交差点あり（201-C）";
	Entry = "Y形道路交差点あり（201-D）";
	Entry = "ロータリーあり（201の2）";
	Entry = "右方屈曲あり（202）";
	Entry = "左方屈曲あり（202）";
	Entry = "右方屈折あり（203）";
	Entry = "左方屈折あり（203）";
	Entry = "右背向屈曲あり（204）";
	Entry = "左背向屈曲あり（204）";
	Entry = "右背向屈折あり（205）";
	Entry = "左背向屈折あり（205）";
	Entry = "右つづら折りあり（206）";
	Entry = "左つづら折りあり（206）";
	Entry = "踏切あり（207-A）";
	Entry = "踏切あり（207-B）";
	Entry = "学校、幼稚園、保育所等あり（208）";
	Entry = "信号機あり（208の2）";
	Entry = "すべりやすい（209）";
	Entry = "落石のおそれあり（209の2）";
	Entry = "路面凹凸あり（209の3）";
	Entry = "合流交通あり(左)（210）";
	Entry = "合流交通あり(右)（210）";
	Entry = "車線数減少(3→2 左)（211）";
	Entry = "車線数減少(3→2 右)（211）";
	Entry = "車線数減少(3→2 左)（211）";
	Entry = "車線数減少(2→1 右)（211）";
	Entry = "幅員減少（212）";
	Entry = "二方向交通（212の2）";
	Entry = "その他の危険（215）";
	Entry = "予備";
	Entry = "予備";
	Entry = "予備";
	Entry = "予備";
	Entry = "予備";
/*未実装
	Entry = "上り急勾配あり（212の3）";
	Entry = "下り急勾配あり（212の4）";
	Entry = "道路工事中（213）";
	Entry = "横風注意（214）";
	Entry = "動物が飛び出すおそれあり（214の2）しか";
	Entry = "動物が飛び出すおそれあり（214の2）さる";
*/
}
DefineSwitch "└ 補助標識1"{
	Entry = "なし";
	Entry = "通学路";
	Entry = "前方優先道路";
	Entry = "踏切注意";
	Entry = "横風注意";
	Entry = "動物注意";
	Entry = "注　　意";
	Entry = "路肩弱し";
	Entry = "交差点注意";
	Entry = "速度落せ";
	Entry = "カーブ注意";
	Entry = "地吹雪";
	Entry = "大雨冠水注意";
	Entry = "予備１";
	Entry = "予備２";
	Entry = "予備３";
	Entry = "ぬこ注意";
}
DefineSwitch "■本標識2"{
	Entry = "なし";
	Entry = "╋形道路交差点あり（201-A）";
	Entry = "┣形道路交差点あり（201-B）";
	Entry = "┫形道路交差点あり（201-B）";
	Entry = "┳形道路交差点あり（201-C）";
	Entry = "Y形道路交差点あり（201-D）";
	Entry = "ロータリーあり（201の2）";
	Entry = "右方屈曲あり（202）";
	Entry = "左方屈曲あり（202）";
	Entry = "右方屈折あり（203）";
	Entry = "左方屈折あり（203）";
	Entry = "右背向屈曲あり（204）";
	Entry = "左背向屈曲あり（204）";
	Entry = "右背向屈折あり（205）";
	Entry = "左背向屈折あり（205）";
	Entry = "右つづら折りあり（206）";
	Entry = "左つづら折りあり（206）";
	Entry = "踏切あり（207-A）";
	Entry = "踏切あり（207-B）";
	Entry = "学校、幼稚園、保育所等あり（208）";
	Entry = "信号機あり（208の2）";
	Entry = "すべりやすい（209）";
	Entry = "落石のおそれあり（209の2）";
	Entry = "路面凹凸あり（209の3）";
	Entry = "合流交通あり(左)（210）";
	Entry = "合流交通あり(右)（210）";
	Entry = "車線数減少(3→2 左)（211）";
	Entry = "車線数減少(3→2 右)（211）";
	Entry = "車線数減少(3→2 左)（211）";
	Entry = "車線数減少(2→1 右)（211）";
	Entry = "幅員減少（212）";
	Entry = "二方向交通（212の2）";
	Entry = "その他の危険（215）";
	Entry = "予備";
	Entry = "予備";
	Entry = "予備";
	Entry = "予備";
	Entry = "予備";
/*未実装
	Entry = "上り急勾配あり（212の3）";
	Entry = "下り急勾配あり（212の4）";
	Entry = "道路工事中（213）";
	Entry = "横風注意（214）";
	Entry = "動物が飛び出すおそれあり（214の2）しか";
	Entry = "動物が飛び出すおそれあり（214の2）さる";
*/
}
DefineSwitch "└ 補助標識2"{
	Entry = "なし";
	Entry = "通学路";
	Entry = "前方優先道路";
	Entry = "踏切注意";
	Entry = "横風注意";
	Entry = "動物注意";
	Entry = "注　　意";
	Entry = "路肩弱し";
	Entry = "交差点注意";
	Entry = "速度落せ";
	Entry = "カーブ注意";
	Entry = "地吹雪";
	Entry = "大雨冠水注意";
	Entry = "予備１";
	Entry = "予備２";
	Entry = "予備３";
	Entry = "ぬこ注意";
}
DefineSwitch "■土台"{
	Entry = "あり";
	Entry = "なし";
}
DefineSwitch "■傾き(z軸)"{
	Entry = "±0";
	Entry = "＋2";
	Entry = "＋4";
	Entry = "＋6";
	Entry = "＋8";
	Entry = "＋10";
	Entry = "−2";
	Entry = "−4";
	Entry = "−6";
	Entry = "−8";
	Entry = "−10";
}


PrimaryAssembly{
	Object3D "Base"{
		ModelFileName = "";	ModelScale = 1.0;
		If "_CAMDIST">600{
			ChangeModel = "", 1.0;
		}
		NoShadow = 1;		ChangeAlpha = 1, 0.4;
		If "■ポール種類"==0{
			ApplySwitch "■土台"{
			Case 0:		ChangeModel = "Base01.x", 1.0;
			}
		}
		ApplySwitch "■傾き(z軸)"{
		Case 1:		StaticRotation{	RotationAxis = (0.0, 0.0, 1.0);		RotationAngle = 2;	}
		Case 2:		StaticRotation{	RotationAxis = (0.0, 0.0, 1.0);		RotationAngle = 4;	}
		Case 3:		StaticRotation{	RotationAxis = (0.0, 0.0, 1.0);		RotationAngle = 6;	}
		Case 4:		StaticRotation{	RotationAxis = (0.0, 0.0, 1.0);		RotationAngle = 8;	}
		Case 5:		StaticRotation{	RotationAxis = (0.0, 0.0, 1.0);		RotationAngle = 10;	}
		Case 6:		StaticRotation{	RotationAxis = (0.0, 0.0, -1.0);	RotationAngle = 2;	}
		Case 7:		StaticRotation{	RotationAxis = (0.0, 0.0, -1.0);	RotationAngle = 4;	}
		Case 8:		StaticRotation{	RotationAxis = (0.0, 0.0, -1.0);	RotationAngle = 6;	}
		Case 9:		StaticRotation{	RotationAxis = (0.0, 0.0, -1.0);	RotationAngle = 8;	}
		Case 10:	StaticRotation{	RotationAxis = (0.0, 0.0, -1.0);	RotationAngle = 10;	}
		}
		Joint3D "_LOCAL"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "Pole"{
		ModelFileName = "";	ModelScale = 1.0;
		If "_CAMDIST">600{
			ChangeModel = "", 1.0;
		}
		ApplySwitch "└ ポールカラー"{
		Case 0:		ChangeTexture = 0, "Color0.dds";
		Case 1:		ChangeTexture = 0, "Color1.dds";
		Case 2:		ChangeTexture = 0, "../../Struct/common_nya/texture/Metal_Basel01.dds";
		}
		If "■ポール種類"==0{
			ChangeModel = "Pole0.x", 1.0;
		}
		Joint3D "Base"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}


//-	■本標識1柱
	Object3D "Pole-Main1"{
		ModelFileName = "";	ModelScale = 1.0;
		If "_CAMDIST">600{
			ChangeModel = "", 1.0;
		}
		If "_CAMDIST">100{
			NoShadow = 0,1;
		}
		ApplySwitch "└ ポールカラー"{
		Case 0:		ChangeTexture = 0, "Color0.dds";
		Case 1:		ChangeTexture = 0, "Color1.dds";
		Case 2:		ChangeTexture = 0, "../../Struct/common_nya/texture/Metal_Basel01.dds";
		}
		If "■本標識1">=1 & "■ポール種類"==0{
			ChangeModel = "Pole3.x", 1.0;
		}
		If "■本標識1">=1 {
			StaticMove {	Displacement  = (0.0, 2.06, 0.0);	}
		}
		If "└ 補助標識1">=1 {
			StaticMove {	Displacement  = (0.0, 0.11, 0.0);	}
		}
		If "■本標識2">=1 {
			StaticMove {	Displacement  = (0.0, 0.64, 0.0);	}
		}
		If "└ 補助標識2">=1 {
			StaticMove {	Displacement  = (0.0, 0.11, 0.0);	}
		}
		Joint3D "Pole"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}


//-	■本標識1板
	Object3D "Plate-Main1"{
		ModelFileName = "Model01.x";	ModelScale = 1.0;
		If "_CAMDIST">600{
			ChangeModel = "", 1.0;
		}
		If "_CAMDIST">100{
		}
		ApplySwitch "■本標識1"{
		Case 0:		ChangeModel = "", 1.0;
		Case 1:		ShiftTexture = 1, 0.000, 0.0;
		Case 2:		ShiftTexture = 1, 0.125, 0.0;
		Case 3:		ScaleTexture = 1, -1.0, 1.0, 0.250, 0.0;
		Case 4:		ShiftTexture = 1, 0.250, 0.0;
		Case 5:		ShiftTexture = 1, 0.375, 0.0;
		Case 6:		ShiftTexture = 1, 0.500, 0.0;
		Case 7:		ShiftTexture = 1, 0.625, 0.0;
		Case 8:		ScaleTexture = 1, -1.0, 1.0, 0.750, 0.0;
		Case 9:		ShiftTexture = 1, 0.750, 0.0;
		Case 10:	ScaleTexture = 1, -1.0, 1.0, 0.875, 0.0;
		Case 11:	ShiftTexture = 1, 0.875, 0.0;
		Case 12:	ScaleTexture = 1, -1.0, 1.0, 1.000, 0.0;
		Case 13:	ShiftTexture = 1, 0.0, 0.25;
		Case 14:	ScaleTexture = 1, -1.0, 1.0, 0.125, 0.25;
		Case 15:	ShiftTexture = 1, 0.125, 0.25;
		Case 16:	ScaleTexture = 1, -1.0, 1.0, 0.250, 0.25;
		Case 17:	ShiftTexture = 1, 0.250, 0.25;
		Case 18:	ShiftTexture = 1, 0.375, 0.25;
		Case 19:	ShiftTexture = 1, 0.500, 0.25;
		Case 20:	ShiftTexture = 1, 0.625, 0.25;
		Case 21:	ShiftTexture = 1, 0.750, 0.25;
		Case 22:	ShiftTexture = 1, 0.875, 0.25;
		Case 23:	ShiftTexture = 1, 0.000, 0.50;
		Case 24:	ShiftTexture = 1, 0.125, 0.50;
		Case 25:	ScaleTexture = 1, -1.0, 1.0, 0.250, 0.50;
		Case 26:	ShiftTexture = 1, 0.250, 0.50;
		Case 27:	ScaleTexture = 1, -1.0, 1.0, 0.375, 0.50;
		Case 28:	ShiftTexture = 1, 0.375, 0.50;
		Case 29:	ScaleTexture = 1, -1.0, 1.0, 0.500, 0.50;
		Case 30:	ShiftTexture = 1, 0.500, 0.50;
		Case 31:	ShiftTexture = 1, 0.625, 0.50;
		Case 32:	ShiftTexture = 1, 0.750, 0.50;
		Case 33:	ShiftTexture = 1, 0.875, 0.50;
		Case 34:	ShiftTexture = 1, 0.000, 0.75;
		Case 35:	ShiftTexture = 1, 0.125, 0.75;
		Case 36:	ShiftTexture = 1, 0.250, 0.75;
		Case 37:	ShiftTexture = 1, 0.375, 0.75;
		}
		Joint3D "Pole-Main1"{
			AttachCoord = (0.0, 0.0, 0.04);
		}
	}


//-	└ 補助標識1柱
	Object3D "Pole-Sub1"{
		ModelFileName = "";	ModelScale = 1.0;
		If "_CAMDIST">600{
			ChangeModel = "", 1.0;
		}
		ApplySwitch "└ ポールカラー"{
		Case 0:		ChangeTexture = 0, "Color0.dds";
		Case 1:		ChangeTexture = 0, "Color1.dds";
		Case 2:		ChangeTexture = 0, "../../Struct/common_nya/texture/Metal_Basel01.dds";
		}
		If "└ 補助標識1">=1 & "■ポール種類"==0{
			ChangeModel = "Pole2.x", 1.0;
		}
		If "■本標識1">=1 | "└ 補助標識1">=1 {
			StaticMove {	Displacement  = (0.0, 1.792, 0.0);	}
		}
		If "■本標識1">=1 & "■本標識2">=1 {
			StaticMove {	Displacement  = (0.0, 0.64, 0.0);	}
		}
		If "└ 補助標識2">=1 {
			StaticMove {	Displacement  = (0.0, 0.11, 0.0);	}
		}
		Joint3D "Pole"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}

//-	└ 補助標識1板
	Object3D "Plate-Sub1"{
		ModelFileName = "Plate-Hojyo400x100.x";	ModelScale = 1.0;
		If "_CAMDIST">600{
			ChangeModel = "", 1.0;
		}
		If "_CAMDIST">100{
		}
		ApplySwitch "└ 補助標識1"{
		Case 0:		ChangeModel = "", 1.0;
		Case 1:		ShiftTexture = 1, 0.000, 0.0;
		Case 2:		ShiftTexture = 1, 0.000, 0.0625;
		Case 3:		ShiftTexture = 1, 0.000, 0.1250;
		Case 4:		ShiftTexture = 1, 0.000, 0.1875;
		Case 5:		ShiftTexture = 1, 0.125, 0.0;
		Case 6:		ShiftTexture = 1, 0.125, 0.0625;
		Case 7:		ShiftTexture = 1, 0.125, 0.1250;
		Case 8:		ShiftTexture = 1, 0.125, 0.1875;
		Case 9:		ShiftTexture = 1, 0.250, 0.0;
		Case 10:	ShiftTexture = 1, 0.250, 0.0625;
		Case 11:	ShiftTexture = 1, 0.250, 0.1250;
		Case 12:	ShiftTexture = 1, 0.250, 0.1875;
		Case 13:	ShiftTexture = 1, 0.375, 0.0;
		Case 14:	ShiftTexture = 1, 0.375, 0.0625;
		Case 15:	ShiftTexture = 1, 0.375, 0.1250;
		Case 16:	ShiftTexture = 1, 0.375, 0.1875;
		}
		Joint3D "Pole-Sub1"{
			AttachCoord = (0.0, 0.0, 0.04);
		}
	}


//-	■本標識2柱
	Object3D "Pole-Main2"{
		ModelFileName = "";	ModelScale = 1.0;
		If "_CAMDIST">600{
			ChangeModel = "", 1.0;
		}
		ApplySwitch "└ ポールカラー"{
		Case 0:		ChangeTexture = 0, "Color0.dds";
		Case 1:		ChangeTexture = 0, "Color1.dds";
		Case 2:		ChangeTexture = 0, "../../Struct/common_nya/texture/Metal_Basel01.dds";
		}
		If "■本標識1">=1 &  "■本標識2">=1 & "■ポール種類"==0{
			ChangeModel = "Pole1.x", 1.0;
		}
		If "■本標識1"==0 &  "■本標識2">=1 & "■ポール種類"==0{
			ChangeModel = "Pole3.x", 1.0;
		}
		If "■本標識2">=1 {
			StaticMove {	Displacement  = (0.0, 2.06, 0.0);	}
		}
		If "■本標識1"==0 & "└ 補助標識1">=1 {
			StaticMove {	Displacement  = (0.0, 0.11, 0.0);	}
		}
		If "└ 補助標識2">=1 {
			StaticMove {	Displacement  = (0.0, 0.11, 0.0);	}
		}
		Joint3D "Pole"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}


//-	■本標識2板
	Object3D "Plate-Main2"{
		ModelFileName = "Model01.x";	ModelScale = 1.0;
		If "_CAMDIST">600{
			ChangeModel = "", 1.0;
		}
		If "_CAMDIST">100{
		}
		ApplySwitch "■本標識2"{
		Case 0:		ChangeModel = "", 1.0;
		Case 1:		ShiftTexture = 1, 0.000, 0.0;
		Case 2:		ShiftTexture = 1, 0.125, 0.0;
		Case 3:		ScaleTexture = 1, -1.0, 1.0, 0.250, 0.0;
		Case 4:		ShiftTexture = 1, 0.250, 0.0;
		Case 5:		ShiftTexture = 1, 0.375, 0.0;
		Case 6:		ShiftTexture = 1, 0.500, 0.0;
		Case 7:		ShiftTexture = 1, 0.625, 0.0;
		Case 8:		ScaleTexture = 1, -1.0, 1.0, 0.750, 0.0;
		Case 9:		ShiftTexture = 1, 0.750, 0.0;
		Case 10:	ScaleTexture = 1, -1.0, 1.0, 0.875, 0.0;
		Case 11:	ShiftTexture = 1, 0.875, 0.0;
		Case 12:	ScaleTexture = 1, -1.0, 1.0, 1.000, 0.0;
		Case 13:	ShiftTexture = 1, 0.0, 0.25;
		Case 14:	ScaleTexture = 1, -1.0, 1.0, 0.125, 0.25;
		Case 15:	ShiftTexture = 1, 0.125, 0.25;
		Case 16:	ScaleTexture = 1, -1.0, 1.0, 0.250, 0.25;
		Case 17:	ShiftTexture = 1, 0.250, 0.25;
		Case 18:	ShiftTexture = 1, 0.375, 0.25;
		Case 19:	ShiftTexture = 1, 0.500, 0.25;
		Case 20:	ShiftTexture = 1, 0.625, 0.25;
		Case 21:	ShiftTexture = 1, 0.750, 0.25;
		Case 22:	ShiftTexture = 1, 0.875, 0.25;
		Case 23:	ShiftTexture = 1, 0.000, 0.50;
		Case 24:	ShiftTexture = 1, 0.125, 0.50;
		Case 25:	ScaleTexture = 1, -1.0, 1.0, 0.250, 0.50;
		Case 26:	ShiftTexture = 1, 0.250, 0.50;
		Case 27:	ScaleTexture = 1, -1.0, 1.0, 0.375, 0.50;
		Case 28:	ShiftTexture = 1, 0.375, 0.50;
		Case 29:	ScaleTexture = 1, -1.0, 1.0, 0.500, 0.50;
		Case 30:	ShiftTexture = 1, 0.500, 0.50;
		Case 31:	ShiftTexture = 1, 0.625, 0.50;
		Case 32:	ShiftTexture = 1, 0.750, 0.50;
		Case 33:	ShiftTexture = 1, 0.875, 0.50;
		Case 34:	ShiftTexture = 1, 0.000, 0.75;
		Case 35:	ShiftTexture = 1, 0.125, 0.75;
		Case 36:	ShiftTexture = 1, 0.250, 0.75;
		Case 37:	ShiftTexture = 1, 0.375, 0.75;
		Case 38:	ShiftTexture = 1, 0.500, 0.75;
		Case 39:	ShiftTexture = 1, 0.625, 0.75;
		Case 40:	ShiftTexture = 1, 0.750, 0.75;
		Case 41:	ShiftTexture = 1, 0.875, 0.75;
		Case 42:	ShiftTexture = 1, 0.000, 0.75;
		}
		Joint3D "Pole-Main2"{
			AttachCoord = (0.0, 0.0, 0.04);
		}
	}


//-	└ 補助標識2柱
	Object3D "Pole-Sub2"{
		ModelFileName = "";	ModelScale = 1.0;
		If "_CAMDIST">600{
			ChangeModel = "", 1.0;
		}
		ApplySwitch "└ ポールカラー"{
		Case 0:		ChangeTexture = 0, "Color0.dds";
		Case 1:		ChangeTexture = 0, "Color1.dds";
		Case 2:		ChangeTexture = 0, "../../Struct/common_nya/texture/Metal_Basel01.dds";
		}
		If "└ 補助標識2">=1 & "■ポール種類"==0{
			ChangeModel = "Pole2.x", 1.0;
		}
		If "■本標識2">=1 | "└ 補助標識2">=1 {
			StaticMove {	Displacement  = (0.0, 1.792, 0.0);	}
		}
		Joint3D "Pole"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}


//-	└ 補助標識2板
	Object3D "Plate-Sub2"{
		ModelFileName = "Plate-Hojyo400x100.x";	ModelScale = 1.0;
		If "_CAMDIST">600{
			ChangeModel = "", 1.0;
		}
		If "_CAMDIST">100{
		}
		ApplySwitch "└ 補助標識2"{
		Case 0:		ChangeModel = "", 1.0;
		Case 1:		ShiftTexture = 1, 0.000, 0.0;
		Case 2:		ShiftTexture = 1, 0.000, 0.0625;
		Case 3:		ShiftTexture = 1, 0.000, 0.1250;
		Case 4:		ShiftTexture = 1, 0.000, 0.1875;
		Case 5:		ShiftTexture = 1, 0.125, 0.0;
		Case 6:		ShiftTexture = 1, 0.125, 0.0625;
		Case 7:		ShiftTexture = 1, 0.125, 0.1250;
		Case 8:		ShiftTexture = 1, 0.125, 0.1875;
		Case 9:		ShiftTexture = 1, 0.250, 0.0;
		Case 10:	ShiftTexture = 1, 0.250, 0.0625;
		Case 11:	ShiftTexture = 1, 0.250, 0.1250;
		Case 12:	ShiftTexture = 1, 0.250, 0.1875;
		Case 13:	ShiftTexture = 1, 0.375, 0.0;
		Case 14:	ShiftTexture = 1, 0.375, 0.0625;
		Case 15:	ShiftTexture = 1, 0.375, 0.1250;
		Case 16:	ShiftTexture = 1, 0.375, 0.1875;
		}
		Joint3D "Pole-Sub2"{
			AttachCoord = (0.0, 0.0, 0.04);
		}
	}
}
