Skip to content
Snippets Groups Projects
Commit c22ba2e0 authored by DarkGod's avatar DarkGod
Browse files

Added "alter_level_data(zone, lev)" possible callback for level creation

parent a94280fb
No related branches found
No related tags found
No related merge requests found
......@@ -643,6 +643,7 @@ function _M:getLevelData(lev)
if self.levels[lev] then
table.merge(res, self.levels[lev], true, self._no_save_fields)
end
if res.alter_level_data then res.alter_level_data(self, lev) end
-- Make sure it is not considered a class
res.__CLASSNAME = nil
return res
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment