-- Dada--

Rampe = {};
Rampe.modDirectory = g_currentModDirectory;
function Rampe.prerequisitesPresent(specializations)
      return true;
end;
function Rampe.initSpecialization()
	local schema = Vehicle.xmlSchema
    schema:setXMLSpecializationType("Rampe")
	schema:register(XMLValueType.NODE_INDEX, "vehicle.Rampe#ref", "reference rotation")
	schema:register(XMLValueType.NODE_INDEX, "vehicle.Rampe#node", "node")
end
function Rampe.registerOverwrittenFunctions(vehicleType)
end

function Rampe.registerFunctions(vehicleType)	
end
function Rampe.registerEvents(vehicleType)
end
function Rampe:registerActionEventsPlayer()
end
function Rampe:registerActionEventsMenu()
end

function Rampe.registerEventListeners(vehicleType)
	SpecializationUtil.registerEventListener(vehicleType, "onLoad", Rampe)
	SpecializationUtil.registerEventListener(vehicleType, "onDelete", Rampe)
	SpecializationUtil.registerEventListener(vehicleType, "onUpdate", Rampe)

end

function Rampe:onLoad(vehicle)	
	--[[self.rampeRef = self.xmlFile:getValue("vehicle.Rampe#ref", nil, self.components, self.i3dMappings)
	self.rampeNode = self.xmlFile:getValue("vehicle.Rampe#node", nil, self.components, self.i3dMappings)
	if self.rampeNode ~= nil and self.rampeRef ~= nil then
		setTranslation(self.rampeNode, 0, 0, 0)
		link(self.rampeRef, self.rampeNode)
		setRotation(self.rampeNode, 0, 180*math.pi/180, 0)
	end]]--
end;


function Rampe:onDelete() 
end;

function Rampe:onReadStream(streamId, connection)
end;
  
function Rampe:onWriteStream(streamId, connection)
end;

function Rampe:mouseEvent(posX, posY, isDown, isUp, button)
end;

function Rampe:keyEvent(unicode, sym, modifier, isDown)    
end;

function Rampe:onUpdate(dt, vehicle)

end;

function Rampe:onUpdateTick() 
end;	
function Rampe:onLeaveVehicle()
end;       
function Rampe:onDraw()  
end;
function Rampe:actionCallback(actionName, keyStatus, arg4, arg5, arg6)
end

