big module refactoring

This commit is contained in:
Manuel Simon Hirsig
2016-08-18 17:28:38 +02:00
parent 54c45f8fdb
commit 337bc19578
17 changed files with 145 additions and 143 deletions
+3 -3
View File
@@ -1,6 +1,6 @@
aux.module 'persistence'
aux_datasets = {}
_G.aux_datasets = {}
do
local realm, faction
@@ -17,8 +17,8 @@ end
function public.load_dataset()
local dataset_key = m.get_dataset_key()
aux_datasets[dataset_key] = aux_datasets[dataset_key] or {}
return aux_datasets[dataset_key]
_G.aux_datasets[dataset_key] = _G.aux_datasets[dataset_key] or {}
return _G.aux_datasets[dataset_key]
end
function public.read(schema, str)