function VehicleLightsComponent.updateStatus(f,v)if v.Braking~=nil then local q=v.Braking if q~=f.state.brakeLights then f.state.brakeLights=q f:toggleLights(f.brakeLights,q)end end end return VehicleLightsComponent

function VehicleLightsComponent:updateStatus(statusesChanged)
	if statusesChanged.Braking ~= nil then
		local brakeLightsOn = statusesChanged.Braking
		if brakeLightsOn ~= self.state.brakeLights then
			self.state.brakeLights = brakeLightsOn
			self:toggleLights(self.brakeLights, brakeLightsOn)
		end
	end
end

return VehicleLightsComponent
