scope Lulu initializer Initialization
globals
gamecache gc = InitGameCache("myCache.w3v")
hashtable whee = InitHashtable()
endglobals
function Initialization takes nothing returns nothing
call StoreInteger(gc,"Data","Hashtable",GetHandleId(whee))
endfunction
endscope
scope WhenINeedIt
function I2Hashtable takes integer id returns hashtable
call SaveFogStateHandle(whee,0,0,ConvertFogState(id))
return LoadHashtableHandle(whee,0,0)
endfunction
function MeNoUseGlobalHashtable takes nothing returns nothing
local integer id = GetStoredInteger(gc,"Data","Hashtable")
local hashtable h = I2Hashtable(id)
call SaveUnitHandle(h,0,0,GetTriggerUnit())
set h = null
endfunction
endscope