local vec3 = require "vec3"
local transf = require "transf"

function data()
return {
	boundingInfo = {
		bbMax = {
			22.031200408936, 5.4962000846863, 12.00518321991, 
		},
		bbMin = {
			-25.724704742432, -5.4965000152588, -1.8755548000336, 
		},
		
	},
	collider = {
		params = {
			
		},
		type = "MESH",
		
	},
	lods = {
		{
			animations = {
				
			},
			children = {
				{
					id = "vehicle/ship/wilhelm/lod_1_body.msh",
					transf = {
						1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 
					},
					type = "MESH",
					
				},
				{
					id = "vehicle/ship/wilhelm/lod_1_flag_back.msh",
					transf = transf.rotZYXTransl(transf.degToRad(0,-29.5803,0), vec3.new(-19.7983, 0, 6.3162)),
					type = "MESH",
					
				}, {
					id = "vehicle/ship/wilhelm/lod_1_flag_front.msh",
					transf = {
						1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 20.5232, -0.4175, 7.8366, 1, 
					},
					type = "MESH",
					
				}, {
					id = "vehicle/ship/wilhelm/lod_1_flag_left.msh",
					transf = {
						1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1.9249, 5.3309, 7.2193, 1, 
					},
					type = "MESH",
					
				}, {
					id = "vehicle/ship/wilhelm/lod_1_flag_right.msh",
					transf = {
						1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1.9249, -5.3309, 7.2193, 1, 
					},
					type = "MESH",
					
				}, {
					id = "vehicle/ship/wilhelm/lod_1_paddle.msh",
					transf = {
						1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1.9799, 0, 0.8287, 1, 
					},
					type = "MESH",
					
				}, {
					id = "vehicle/ship/wilhelm/lod_1_rudder.msh",
					transf = transf.rotZYXTransl(transf.degToRad(0,-34.6008,0), vec3.new(-15.0641, 0, -0.8044)),
					type = "MESH",
					
				}, 
			},
			events = {
				
			},
			matConfigs = {
				{
					0, 0, 0, 0, 0, 0, 
				}, 
			},
			static = false,
			visibleFrom = 450,
			visibleTo = 4770,
			
		},{
			animations = {
				
			},
			children = {
				{
					id = "vehicle/ship/wilhelm/lod_0_body.msh",
					transf = {
						1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 
					},
					type = "MESH",
					
				},
				{
					id = "vehicle/ship/wilhelm/lod_0_flag_back.msh",
					transf = transf.rotZYXTransl(transf.degToRad(0,-29.5803,0), vec3.new(-19.7983, 0, 6.3162)),
					type = "MESH",
					
				}, {
					id = "vehicle/ship/wilhelm/lod_0_flag_front.msh",
					transf = {
						1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 20.5232, -0.4175, 7.8366, 1, 
					},
					type = "MESH",
					
				}, {
					id = "vehicle/ship/wilhelm/lod_0_flag_left.msh",
					transf = {
						1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1.9249, 5.3309, 7.2193, 1, 
					},
					type = "MESH",
					
				}, {
					id = "vehicle/ship/wilhelm/lod_0_flag_right.msh",
					transf = {
						1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1.9249, -5.3309, 7.2193, 1, 
					},
					type = "MESH",
					
				}, {
					id = "vehicle/ship/wilhelm/lod_0_paddle.msh",
					transf = {
						1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1.9799, 0, 0.8287, 1, 
					},
					type = "MESH",
					
				}, {
					id = "vehicle/ship/wilhelm/lod_0_rudder.msh",
					transf = transf.rotZYXTransl(transf.degToRad(0,-34.6008,0), vec3.new(-15.0641, 0, -0.8044)),
					type = "MESH",
					
				}, {
					id = "vehicle/ship/wilhelm/lod_0_logo_body.msh",
					transf = {
						1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 
					},
					type = "MESH",
					
				},
			},
			events = {
				
			},
			matConfigs = {
				{
					0, 0, 0, 0, 0, 0, 
				}, 
			},
			static = false,
			visibleFrom = 0,
			visibleTo = 450,
			
		}, 
	},
	metadata = {
		waterVehicle = {
			weight = 149000.0,
			availPower = 85000.0,
			maxRpm = 30,
			area = 4,
			topSpeed = 5.55555555556,
			configs = {
				{
					paddles = {
						ids = { 6 }
					},
					rudder =  {
						ids = { 7 }
					},
					flags = {
						ids = { 2, 3, 4, 5 }
					}
				},{
					paddles = {
						ids = { 6 }
					},
					rudder =  {
						ids = { 7 }
					},
					flags = {
						ids = { 2, 3, 4, 5 }
					}
				}
			}
		},
		availability = {
			yearFrom = 1850,
			yearTo = 1910
		},
		cost = {
			price = -1
		},
		description = {
			name = _("Wilhelm I"),
			description = _("The Wilhelm was built with the support of King Wilhelm I. of Württemberg and was officially the first steamer on the Lake Constance.")
		},
		maintenance = {
			runningCosts = -1,
			lifespan = 50
		},
		particleSystem = {
			emitters = {
				{
					position = { -1.2, .0, 12 },
					velocity = { -1.0, .0, 8.0 },
					color = { .2, .2, .2 },
					frequency = 80,
					lifeTime = 20.0,
					size01 = { .8, 10.0 },
					child = 1
				}
			}
		},
		transportVehicle = {
			carrier = "WATER",
			multipleUnitOnly = true,
			capacities = {
				{ type = "LOGS", capacity = 200 },
				{ type = "LIVESTOCK", capacity = 200 },
				{ type = "COAL", capacity = 200 },
				{ type = "IRON_ORE", capacity = 200 },
				{ type = "STONE", capacity = 200 },
				{ type = "GRAIN", capacity = 200 },
				{ type = "CRUDE", capacity = 200 },
				{ type = "STEEL", capacity = 200 },
				{ type = "PLANKS", capacity = 200 },
				{ type = "PLASTIC", capacity = 200 },
				{ type = "SLAG", capacity = 200 },
				{ type = "OIL", capacity = 200 },
				{ type = "CONSTRUCTION_MATERIALS", capacity = 200 },
				{ type = "MACHINES", capacity = 200 },
				{ type = "FUEL", capacity = 200 },
				{ type = "TOOLS", capacity = 200 },
				{ type = "FOOD", capacity = 200 },
				{ type = "GOODS", capacity = 200 },
				--new
				{ type = "WASTE", capacity = 200 },
				{ type = "FERTILIZERS", capacity = 200 },
				{ type = "COTTON", capacity = 200 },
				{ type = "MILK", capacity = 200 },
				{ type = "CHEMICAL", capacity = 200 },
				{ type = "CLOTHES", capacity = 200 },
				{ type = "MINERALS", capacity = 200 },
				{ type = "LIMESTONE", capacity = 200 },
				{ type = "CEMENT", capacity = 200 },
				{ type = "FILINGS", capacity = 200 },
				{ type = "PAPER", capacity = 200 },
				{ type = "ALCOHOL", capacity = 200 },
				{ type = "ALUMINUM", capacity = 200 },
				{ type = "FISH", capacity = 200 },
				{ type = "BAUXITE", capacity = 200 },
			},
			loadSpeed = 20,
			seats = {
				{ group =1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(-15.7, 0.3, 1.5)), crew = true, standing = true},
			}
		},
		soundConfig = {
			soundSet = { name = "ship_paddle_steamer" }
		}
	},
}
end
