Add optional optimization for worlds and systems

This commit is contained in:
Tjakka5 2020-01-03 23:01:04 +01:00
parent 56b5244541
commit 6aeb91d984
4 changed files with 58 additions and 57 deletions

9
src/utils.lua Normal file
View file

@ -0,0 +1,9 @@
local Utils = {}
function Utils.shallowCopy(orig, target)
for key, value in pairs(orig) do
target[key] = value
end
end
return Utils