file rename, some work on improved persistence backend

This commit is contained in:
Simon Hirsig
2015-10-26 17:28:16 +01:00
parent 03a92a4df8
commit 32332efae8
2 changed files with 42 additions and 0 deletions
View File
+42
View File
@@ -0,0 +1,42 @@
local load_snapshot, update_snapshot, load_history, update_history
aux_store = {}
function get_auction_house_id()
local realm = GetCVar('realmName')
local zone = GetMinimapZoneText()
local faction
if zone == 'Gadgetzan' or zone == 'Everlook' or zone == 'Booty Bay' then
faction = 'Neutral'
else
faction = UnitFactionGroup('player')
end
return realm..'|'..faction
end
function load_history()
aux_store.history[history_key] = aux_history[history_key] or {}
return aux_store.history[history_key]
end
function load_history()
aux_store.history[history_key] = aux_history[history_key] or {}
return aux_store.history[history_key]
end
function load_history()
aux_store.history[history_key] = aux_history[history_key] or {}
return aux_store.history[history_key]
end
function load_history()
aux_store.history[history_key] = aux_history[history_key] or {}
return aux_store.history[history_key]
end
Aux.store = {
load_history = load_history,
update_history = update_history,
load_snapshot = load_snapshot,
update_snapshot = update_snapshot,
}