loadHeightTypes = {}

local modDirectory = g_currentModDirectory

function loadHeightTypes.loadHeightTypesFromXML(self, superFunc, val1, val2)
  if fileExists(modDirectory.."scripts/densityMapHeightTypes.xml") then
    local heightTypesXML = loadXMLFile("heightTypes", modDirectory.."scripts/densityMapHeightTypes.xml")

    g_densityMapHeightManager:loadDensityMapHeightTypes(heightTypesXML, nil, modDirectory, false)
	  delete(heightTypesXML)
  else
    print("Warning: Can't load '"..tostring(modDirectory.."scripts/densityMapHeightTypes.xml").."' no custom HeightTypes will be loaded!")
  end
end

Mission00.load = Utils.prependedFunction(Mission00.load, loadHeightTypes.loadHeightTypesFromXML)