PluginHeader{
	RailSimVersion = 2.13;
	PluginType = Struct;
	PluginName = "[設備]旗";
	PluginAuthor = "NyahoTaro";
	IconTexture = "../../Struct/common_nya/nyaicon.png";
	Description = "";
}
StructInfo{
}
DefineSwitch "種類"{
	Entry = "日の丸";
	Entry = "旭日旗";
	Entry = "自衛艦旗";
	Entry = "安全旗";
	Entry = "煮矢呆田鉄工";
	Entry = "白地に青のしましま";
	Entry = "黒と蛍光ピンクのしましま";
	Entry = "Z旗";
	Entry = "RS2K";
}
DefineSwitch "風向き追尾"{
	Entry = "有効";
	Entry = "無効";
}
DefineSwitch "旗のサイズ"{
	Entry = "1.0";
	Entry = "1.5";
	Entry = "2.0";
}
DefineSwitch "ポール"{
	Entry = "あり";
	Entry = "なし";
}
DefineAnimation "jp1"{
	NumberedFrame = "jp1/jp1_%02d.png", 1, 8, 10;
}
DefineAnimation "jp2"{
	NumberedFrame = "jp2/jp2_%02d.png", 1, 8, 10;
}
DefineAnimation "jp3"{
	NumberedFrame = "jp3/jp3_%02d.png", 1, 8, 10;
}
DefineAnimation "jp4"{
	NumberedFrame = "jp4/jp4_%02d.png", 1, 8, 10;
}
DefineAnimation "jp5"{
	NumberedFrame = "jp5/jp5_%02d.png", 1, 8, 10;
}
DefineAnimation "jp6"{
	NumberedFrame = "jp6/jp6_%02d.png", 1, 8, 10;
}
DefineAnimation "jp7"{
	NumberedFrame = "jp7/jp7_%02d.png", 1, 8, 10;
}
DefineAnimation "jp8"{
	NumberedFrame = "jp8/jp8_%02d.png", 1, 8, 10;
}
DefineAnimation "jp9"{
	NumberedFrame = "jp9/jp9_%02d.png", 1, 8, 10;
}
DefineAnimation "jp10"{
	NumberedFrame = "jp10/jp10_%02d.png", 1, 8, 10;
}
PrimaryAssembly{
	Object3D "Pole"{
		ModelFileName = "Pole.x";	ModelScale = 1.0;
		NoCastShadow = 1;
		ApplySwitch "ポール"{
		Case 1:		ChangeModel = "", 1.0;
		}
		Joint3D "_LOCAL"{
			AttachCoord = (0.0, 0.0, 0.0);
			AttachDir = (0.0, 0.0, -1.0);
		}
	}
	Object3D "Flag"{
		ModelFileName = "";	ModelScale = 1.0;
		AlphaZeroTest = 0;	NoCastShadow = 0;
		ApplySwitch "種類"{
		Case 0:		SetAnimation = 0, "jp1";
		Case 1:		SetAnimation = 0, "jp2";
		Case 2:		SetAnimation = 0, "jp3";
		Case 3:		SetAnimation = 0, "jp4";
		Case 4:		SetAnimation = 0, "jp5";
		Case 5:		SetAnimation = 0, "jp6";
		Case 6:		SetAnimation = 0, "jp7";
		Case 7:		SetAnimation = 0, "jp8";
		Case 8:		SetAnimation = 0, "jp9";
		Case 9:		SetAnimation = 0, "jp10";
		}
		ApplySwitch "風向き追尾"{
		Case 0:
			TrackWind{
				TrackSpeed = 1;
				FixAxis = (0.0, 1.0, 0.0);
			}
		}
		ApplySwitch "旗のサイズ"{
		Case 0:		ChangeModel = "Flag.x", 1.0;
		Case 1:		ChangeModel = "Flag.x", 1.5;
		Case 2:		ChangeModel = "Flag.x", 2.0;
		}
		Joint3D "_LOCAL"{
			AttachCoord = (0.0, 7.3, 0.0);
			AttachDir = (0.0, 0.0, -1.0);
		}
	}
}
