//-	Head
PluginHeader{
	RailSimVersion = 2.11;
	PluginType = Struct;
	PluginName = "[杊岇嶒]僈乕僪僷僀僾01";
	PluginAuthor = "NyahoTaro";
	IconTexture = "icon.png";
	Description = "";
}

StructInfo{
}

DefineSwitch "儌僨儖"{
	Entry = "廔抂_2m_L";
	Entry = "廔抂_2m_R";
	Entry = "仴梊旛";
	Entry = "仴梊旛";
	Entry = "仴梊旛";
	Entry = "仴梊旛";
	Entry = "拞娫_2m";
	Entry = "拞娫_4m";
	Entry = "拞娫_8m";
	Entry = "拞娫_10m";
	Entry = "拞娫_20m";
	Entry = "拞娫_40m";
	Entry = "拞娫_50m";
}

DefineSwitch "僇儔乕儕儞僌"{
	Entry = "敀怓";
	Entry = "拑怓";
	Entry = "墿怓";
	Entry = "烌怓";
	Entry = "愒怓";
	Entry = "椢怓";
	Entry = "惵椢";
	Entry = "惵怓";
	Entry = "奃怓";
	Entry = "崟怓";
}

DefineSwitch "搚戜"{
	Entry = "ON";
	Entry = "OFF";
}

DefineSwitch "LOD"{
	Entry = "帺摦";
	Entry = "嫮惂";
}

DefineSwitch "仴梊旛1"{
}

DefineSwitch "仴梊旛2"{
}


DefineSwitch "愝抲婎弨"{
	Entry = "弴";
	Entry = "媡";
}

PrimaryAssembly{
	Object3D "Base"{
		ModelFileName = "";
		If "_CAMDIST">600{	ChangeModel = "", 1.0;	}
		If !"搚戜"{
			ApplySwitch "儌僨儖"{
			Case 0:		ChangeModel = "../nya_GuardPipe_Fence01/Base_End.x", 100.0;
			Case 1:		ChangeModel = "../nya_GuardPipe_Fence01/Base_End.x", 100.0;
			Case 2:		//梊旛
			Case 3:		//梊旛
			Case 4:		//梊旛
			Case 5:		//梊旛
			Case 6:		ChangeModel = "../nya_GuardPipe_Fence01/Base_2m.x", 100.0;
			Case 7:		ChangeModel = "../nya_GuardPipe_Fence01/Base_4m.x", 100.0;
			Case 8:		ChangeModel = "../nya_GuardPipe_Fence01/Base_8m.x", 100.0;
			Case 9:		ChangeModel = "../nya_GuardPipe_Fence01/Base_10m.x", 100.0;
			Case 10:	ChangeModel = "../nya_GuardPipe_Fence01/Base_20m.x", 100.0;
			Case 11:	ChangeModel = "../nya_GuardPipe_Fence01/Base_40m.x", 100.0;
			Case 12:	ChangeModel = "../nya_GuardPipe_Fence01/Base_50m.x", 100.0;
			}
		}
		ApplySwitch "愝抲婎弨"{
			Case 0:
			ApplySwitch "儌僨儖"{
				Case 1:
							StaticMove{		Displacement = (0.0, 0.0, 1.0);	}
			}
			Case 1:
			ApplySwitch "儌僨儖"{
				Case 0:		StaticMove{		Displacement = (0.0, 0.0, -1.0);	}
				Case 1:		StaticMove{		Displacement = (0.0, 0.0, 0.0);		}
				Case 2:		//梊旛
				Case 3:		//梊旛
				Case 4:		//梊旛
				Case 5:		//梊旛
				Case 6:		StaticMove{		Displacement = (0.0, 0.0, -2.0);	}
				Case 7:		StaticMove{		Displacement = (0.0, 0.0, -4.0);	}
				Case 8:		StaticMove{		Displacement = (0.0, 0.0, -8.0);	}
				Case 9:		StaticMove{		Displacement = (0.0, 0.0, -10.0);	}
				Case 10:	StaticMove{		Displacement = (0.0, 0.0, -20.0);	}
				Case 11:	StaticMove{		Displacement = (0.0, 0.0, -40.0);	}
				Case 12:	StaticMove{		Displacement = (0.0, 0.0, -50.0);	}
			}
		}
		Joint3D "_LOCAL"{
			AttachCoord = (0.0, 0.0, 0.0);
			AttachDir = (0.0, 0.0, -1.0);
		}
	}
	Object3D "Main"{
		ModelFileName = "";	ModelScale = 100.0;
		If "LOD"==0 & "_CAMDIST"<=50 {
			ApplySwitch "儌僨儖"{
			Case 0:		ChangeModel = "../nya_GuardPipe_Fence01/EndL_1m.x", 100.0;
			Case 1:		ChangeModel = "../nya_GuardPipe_Fence01/EndR_1m.x", 100.0;
			Case 2:		//梊旛
			Case 3:		//梊旛
			Case 4:		//梊旛
			Case 5:		//梊旛
			Case 6:		ChangeModel = "../nya_GuardPipe_Fence01/Main_2m.x", 100.0;
			Case 7:		ChangeModel = "../nya_GuardPipe_Fence01/Main_4m.x", 100.0;
			Case 8:		ChangeModel = "../nya_GuardPipe_Fence01/Main_8m.x", 100.0;
			Case 9:		ChangeModel = "../nya_GuardPipe_Fence01/Main_10m.x", 100.0;
			Case 10:	ChangeModel = "../nya_GuardPipe_Fence01/Main_20m.x", 100.0;
			Case 11:	ChangeModel = "../nya_GuardPipe_Fence01/Main_40m.x", 100.0;
			Case 12:	ChangeModel = "../nya_GuardPipe_Fence01/Main_50m.x", 100.0;
			}
		}
		If "LOD"==0 & "_CAMDIST">=50 & "_CAMDIST"<=600 | "LOD"==1 {
			ApplySwitch "儌僨儖"{
			Case 0:		ChangeModel = "../nya_GuardPipe_Fence01/EndL_1m@LOD.x", 100.0;
			Case 1:		ChangeModel = "../nya_GuardPipe_Fence01/EndR_1m@LOD.x", 100.0;
			Case 2:		//梊旛
			Case 3:		//梊旛
			Case 4:		//梊旛
			Case 5:		//梊旛
			Case 6:		ChangeModel = "../nya_GuardPipe_Fence01/Main_2m@LOD.x", 100.0;
			Case 7:		ChangeModel = "../nya_GuardPipe_Fence01/Main_4m@LOD.x", 100.0;
			Case 8:		ChangeModel = "../nya_GuardPipe_Fence01/Main_8m@LOD.x", 100.0;
			Case 9:		ChangeModel = "../nya_GuardPipe_Fence01/Main_10m@LOD.x", 100.0;
			Case 10:	ChangeModel = "../nya_GuardPipe_Fence01/Main_20m@LOD.x", 100.0;
			Case 11:	ChangeModel = "../nya_GuardPipe_Fence01/Main_40m@LOD.x", 100.0;
			Case 12:	ChangeModel = "../nya_GuardPipe_Fence01/Main_50m@LOD.x", 100.0;
			}

		}
		If "_CAMDIST">600{	ChangeModel = "", 100.0;	}
		ApplySwitch "僇儔乕儕儞僌"{
		Case 0://敀怓
			ChangeMaterial{
				MaterialID = 0;
				Diffuse = 1.00, 1.00, 1.00, 1.0;
				Ambient = 1.00, 1.00, 1.00;
			}
		Case 1://拑怓
			ChangeMaterial{
				MaterialID = 0;
				Diffuse = 0.33, 0.22, 0.16, 1.0;
				Ambient = 0.33, 0.22, 0.16;
			}
		Case 2://墿怓
			ChangeMaterial{
				MaterialID = 0;
				Diffuse = 0.75, 0.52, 0.06, 1.0;
				Ambient = 0.75, 0.52, 0.06;
			}
		Case 3://烌怓
			ChangeMaterial{
				MaterialID = 0;
				Diffuse = 0.63, 0.23, 0.07, 1.0;
				Ambient = 0.63, 0.23, 0.07;
			}
		Case 4://愒怓
			ChangeMaterial{
				MaterialID = 0;
				Diffuse = 0.65, 0.07, 0.07, 1.0;
				Ambient = 0.65, 0.07, 0.07;
			}
		Case 5://椢怓
			ChangeMaterial{
				MaterialID = 0;
				Diffuse = 0.07, 0.40, 0.15, 1.0;
				Ambient = 0.07, 0.40, 0.15;
			}
		Case 6://惵椢
			ChangeMaterial{
				MaterialID = 0;
				Diffuse = 0.07, 0.27, 0.39, 1.0;
				Ambient = 0.07, 0.27, 0.39;
			}
		Case 7://惵怓
			ChangeMaterial{
				MaterialID = 0;
				Diffuse = 0.15, 0.34, 0.87, 1.0;
				Ambient = 0.15, 0.34, 0.87;
			}
		Case 8://奃怓
			ChangeMaterial{
				MaterialID = 0;
				Diffuse = 0.50, 0.50, 0.50, 1.0;
				Ambient = 0.50, 0.50, 0.50;
			}
		Case 9://崟怓
			ChangeMaterial{
				MaterialID = 0;
				Diffuse = 0.10, 0.10, 0.10, 1.0;
				Ambient = 0.10, 0.10, 0.10;
			}
		}
		Joint3D "Base"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
}


//=============================================================================
//-	亂儊儌亃
//		丒寉検壔偺偨傔帇揰偐傜600m埲忋棧傟偨応崌旕昞帵偵丅
//		丒僥僋僗僠儍偼512x256偱DDS(DXT1)偱曐懚丅
//		丒"//-"偼傾僂僩儔僀儞梡丅
//
//=============================================================================
