local constructionutil = require "constructionutil"
function data()
return { 
	type = "ASSET_DEFAULT",

	description = {
		name = _("Absperrung"),			
		description = _("Absperrelemente für Fußgängerwege")
	},

	availability = {
		yearFrom = 1970,
		yearTo = 0,
	},

	buildMode = "MULTI",
	categories = { "Trainzer24" },
	skipCollision = true,
	autoRemovable = false,


	params = {
		
		{
			key = "auswahl",
			name = _(""),
			uiType = "BUTTON",
			values = {
				_("Absperrgitter"), _("Verkehrszeichen"),
				},
		},



	},



	updateFn = function(params)
		local result = { }
		result.models = { }
		local size = 0


		if params.auswahl == 0 then
			result.models[#result.models+1] = { id = "T24_Absperrung_1/T24_Absperrung_1_AG.mdl", transf = constructionutil.rotateTransf(params, { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, } ) }
		end
		if params.auswahl == 1 then
			result.models[#result.models+1] = { id = "T24_Absperrung_1/T24_Absperrung_1_VZ.mdl", transf = constructionutil.rotateTransf(params, { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, } ) }
		end
		

		result.terrainAlignmentLists = { {
			type = "EQUAL",
			faces =  { }
		} }

		return result
	end
}

end