// this script was compiled with wurst 1.8.1.0-jenkins-Wurst-1366 globals // integer PLAYER_NEUTRAL_PASSIVE=0 // originframetype ORIGIN_FRAME_GAME_UI=null // integer bj_MAX_PLAYER_SLOTS=0 // rect bj_mapInitialPlayableArea=null player Basics_DUMMY_PLAYER=null integer array BitSet_pows integer array ClosureForGroups_tempCallbacks integer ClosureForGroups_iterCount=0 integer ClosureTimers_x=0 string array Colors_hexs integer Colors_decs=0 real DummyRecycler_ANGLE_DEGREE=0. integer array DummyRecycler_angleQueues trigger UnitEntity_dmgTrig=null hashtable ErrorHandling_HT=null framehandle Framehandle_GAME_UI=null real GameTimer_currentTime=0. boolean MagicFunctions_compiletime=false rect MapBounds_playableMapRect=null rect MapBounds_boundRect=null real MapBounds_playableMin_x=0. real MapBounds_playableMin_y=0. real MapBounds_boundMax_x=0. real MapBounds_boundMax_y=0. player array Player_players player Player_localPlayer=null group Preloader_dumg=null unit Preloader_dum=null integer array ChannelData_TimedLoop_instances integer ChannelData_TimedLoop_instanceCount=0 triggercondition ChannelData_TimedLoop_triggerCond=null hashtable Table_ht=null item Terrain_dItem=null trigger TimedLoop_timedLoopTrig=null integer TimedLoop_conditionCount=0 timer array TimerUtils_freeTimers integer TimerUtils_freeTimersCount=0 integer TimerUtils_timerData=0 integer TypeCasting_typecastdata=0 hashtable hashtable_compiletime=null hashtable hashtable_compiletime_84=null integer array ForGroupCallback_nextFree integer ForGroupCallback_firstFree=0 integer ForGroupCallback_maxIndex=0 integer array ForGroupCallback_typeId integer array CallbackSingle_nextFree integer CallbackSingle_firstFree=0 integer CallbackSingle_maxIndex=0 integer array CallbackSingle_typeId integer Callback_firstFree=0 integer array Callback_typeId integer array BackIterator_nextFree integer BackIterator_firstFree=0 integer BackIterator_maxIndex=0 integer array Iterator_nextFree integer Iterator_firstFree=0 integer Iterator_maxIndex=0 integer array Table_nextFree integer Table_firstFree=0 integer Table_maxIndex=0 integer array Table_typeId integer Comparator_firstFree=0 integer Comparator_maxIndex=0 integer array LLEntry_nextFree integer LLEntry_firstFree=0 integer LLEntry_maxIndex=0 integer array LinkedList_nextFree integer LinkedList_firstFree=0 integer LinkedList_maxIndex=0 integer array LinkedList_typeId integer array IdGenerator_nextFree integer IdGenerator_firstFree=0 integer IdGenerator_maxIndex=0 integer ChannelData_firstFree=0 integer array ChannelData_typeId integer array cb timerdialog array dia timer array CallbackSingle_t unit array u integer array result integer array LLEntry_prev integer array LinkedList_dummy integer array LinkedList_size texttag array ChannelData_tt real array ChannelData_currentAmount real array ChannelData_incAmount integer array ChannelData_TimedLoop_mode integer wurst_stack_depth=0 string array wurst_stack code ref_function_init_AbilityIds=null code ref_function_init_Real=null code ref_function_init_Integer=null code ref_function_init_BitSet=null code ref_function_init_String=null code ref_function_init_TargetsAllowed=null code ref_function_init_Angle=null code ref_function_init_Vectors=null code ref_function_init_Destructable=null code ref_function_init_Player=null code ref_function_init_Maths=null code ref_function_init_Printing=null code ref_function_init_MagicFunctions=null code ref_function_init_Basics=null code ref_function_init_GameTimer=null code ref_function_init_ErrorHandling=null code ref_function_init_Matrices=null code ref_function_init_Quaternion=null code ref_function_init_Table=null code ref_function_init_Playercolor=null code ref_function_bridge_init_Colors=null code ref_function_bridge_init_Framehandle=null code ref_function_init_Group=null code ref_function_init_Lightning=null code ref_function_init_WeatherEffects=null code ref_function_bridge_init_TypeCasting=null code ref_function_init_HashList=null code ref_function_bridge_init_EventHelper=null code ref_function_init_AbilityObjEditing=null code ref_function_init_ClosureForGroups=null code ref_function_bridge_init_TimerUtils=null code ref_function_init_ClosureTimers=null code ref_function_init_MapBounds=null code ref_function_bridge_init_LinkedList=null code ref_function_init_ObjectIds=null code ref_function_init_UnitIds=null code ref_function_init_Icons=null code ref_function_bridge_init_Preloader=null code ref_function_bridge_init_ObjectIdGenerator=null code ref_function_bridge_init_DummyRecycler=null code ref_function_init_Terrain=null code ref_function_bridge_init_Entity=null code ref_function_init_TimedLoop=null code ref_function_init_SpellEnergyBarrier=null code ref_function_bridge_code__Filter_ClosureForGroups=null code ref_function_UnitEntity_onDamage=null code ref_function_code__startPeriodic_GameTimer=null code ref_function_bridge_ChannelData_TimedLoop_onExpire=null code ref_function_bridge_code__start_CallbackSingle_ClosureTimers=null endglobals function Loglevel_getTag takes integer this returns string if this == 0 then return "|cffADADADtrace|r" elseif this == 1 then return "|cff2685DCdebug|r" elseif this == 2 then return "|cffFFCC00info|r" elseif this == 3 then return "|cffF47E3Ewarning|r" else return "|cffFB2700error|r" endif endfunction function compileError takes string msg returns nothing endfunction function error takes string msg, string w__wurst_stackPos returns nothing local integer hash local integer stacktraceIndex local integer stacktraceLimit local player showTo set wurst_stack[wurst_stack_depth] = w__wurst_stackPos set wurst_stack_depth = wurst_stack_depth + 1 if MagicFunctions_compiletime then call compileError("ERROR: " + msg) else set hash = StringHash(msg) if HaveSavedInteger(ErrorHandling_HT, -1, hash) then if LoadInteger(ErrorHandling_HT, -1, hash) + 60 < GameTimer_currentTime then set w__wurst_stackPos = msg set msg = "" set stacktraceIndex = wurst_stack_depth set stacktraceLimit = 0 loop set stacktraceIndex = stacktraceIndex - 1 set stacktraceLimit = stacktraceLimit + 1 exitwhen stacktraceLimit > 20 or stacktraceIndex < 0 set msg = msg + "\n " + wurst_stack[stacktraceIndex] endloop set msg = w__wurst_stackPos + msg set showTo = Player_localPlayer if 2 <= 4 then call DisplayTimedTextToPlayer(showTo, 0., 0., 45., Loglevel_getTag(4) + " - " + msg) endif call SaveInteger(ErrorHandling_HT, -1, hash, R2I(GameTimer_currentTime)) call SaveBoolean(ErrorHandling_HT, -1, hash, false) elseif HaveSavedBoolean(ErrorHandling_HT, -1, hash) then if not LoadBoolean(ErrorHandling_HT, -1, hash) then set showTo = Player_localPlayer if 2 <= 4 then call DisplayTimedTextToPlayer(showTo, 0., 0., 45., Loglevel_getTag(4) + " - " + "|cffFF3A29Excessive repeating errors are being omitted") endif call SaveBoolean(ErrorHandling_HT, -1, hash, true) endif else set showTo = Player_localPlayer if 2 <= 4 then call DisplayTimedTextToPlayer(showTo, 0., 0., 45., Loglevel_getTag(4) + " - " + "|cffFF3A29Excessive repeating errors are being omitted") endif call SaveBoolean(ErrorHandling_HT, -1, hash, true) endif else call SaveInteger(ErrorHandling_HT, -1, hash, R2I(GameTimer_currentTime)) set msg = "Message: " + msg set w__wurst_stackPos = "" set stacktraceIndex = wurst_stack_depth set hash = 0 loop set stacktraceIndex = stacktraceIndex - 1 set hash = hash + 1 exitwhen hash > 20 or stacktraceIndex < 0 set w__wurst_stackPos = w__wurst_stackPos + "\n " + wurst_stack[stacktraceIndex] endloop set msg = msg + w__wurst_stackPos set showTo = Player_localPlayer if 2 <= 4 then call DisplayTimedTextToPlayer(showTo, 0., 0., 45., Loglevel_getTag(4) + " - " + msg) endif endif call I2S(1 / 0) endif set wurst_stack_depth = wurst_stack_depth - 1 endfunction function initCompiletimeState_0 takes nothing returns nothing call InitHashtable() call InitHashtable() set hashtable_compiletime_84 = InitHashtable() set hashtable_compiletime = InitHashtable() call SaveInteger(hashtable_compiletime_84, 1, -242600650, 0) call SaveInteger(hashtable_compiletime_84, 1, 1132341824, 1) call SaveInteger(hashtable_compiletime_84, 1, -647782241, 2) call SaveInteger(hashtable_compiletime_84, 1, -854572045, 3) call SaveInteger(hashtable_compiletime_84, 1, -680649701, 4) call SaveInteger(hashtable_compiletime_84, 1, -943650483, 5) call SaveInteger(hashtable_compiletime_84, 1, -671760605, 6) call SaveInteger(hashtable_compiletime_84, 1, 349230650, 7) call SaveInteger(hashtable_compiletime_84, 1, -1894922563, 8) call SaveInteger(hashtable_compiletime_84, 1, -1474492777, 9) call SaveInteger(hashtable_compiletime_84, 1, -1587459251, 10) call SaveInteger(hashtable_compiletime_84, 1, -1676716706, 11) call SaveInteger(hashtable_compiletime_84, 1, -1559655710, 12) call SaveInteger(hashtable_compiletime_84, 1, -1663695754, 13) call SaveInteger(hashtable_compiletime_84, 1, 597637742, 14) call SaveInteger(hashtable_compiletime_84, 1, 789744696, 15) call SaveStr(hashtable_compiletime_84, 2, 0, "") call SaveStr(hashtable_compiletime_84, 2, 1804483594, "air") call SaveStr(hashtable_compiletime_84, 2, -1221441622, "debris") call SaveStr(hashtable_compiletime_84, 2, -681966791, "ground") call SaveStr(hashtable_compiletime_84, 2, -1912775212, "invulnerable") call SaveStr(hashtable_compiletime_84, 2, 392811314, "item") call SaveStr(hashtable_compiletime_84, 2, 124309475, "structure") call SaveStr(hashtable_compiletime_84, 2, -543400682, "vulnerable") call SaveStr(hashtable_compiletime_84, 2, -85648186, "ward") call SaveStr(hashtable_compiletime_84, 2, -612826229, "Avul") call SaveStr(hashtable_compiletime_84, 2, 1282521876, "Aloc") call SaveStr(hashtable_compiletime_84, 2, -844489484, "AM02") endfunction function UnitEntity_onDamage takes nothing returns nothing endfunction function destroyChannelData takes integer this, string w__wurst_stackPos returns nothing set wurst_stack[wurst_stack_depth] = w__wurst_stackPos set wurst_stack_depth = wurst_stack_depth + 1 set wurst_stack[wurst_stack_depth] = "when calling ChannelData_onDestroy in module.wurst, line 82" set wurst_stack_depth = wurst_stack_depth + 1 if ChannelData_TimedLoop_mode[this] != 1 then set wurst_stack[wurst_stack_depth] = "when calling stopTimedLoop in module.wurst, line 421" set wurst_stack_depth = wurst_stack_depth + 1 if ChannelData_typeId[this] == 0 then if this == 0 then call error("Nullpointer exception when calling ChannelData.stopTimedLoop", "when calling error in module.wurst, line 402") else call error("Called ChannelData.stopTimedLoop on invalid object.", "when calling error in module.wurst, line 402") endif endif set ChannelData_TimedLoop_mode[this] = 2 set wurst_stack_depth = wurst_stack_depth - 1 endif set wurst_stack_depth = wurst_stack_depth - 1 set wurst_stack[wurst_stack_depth] = "when calling dealloc_ChannelData in module.wurst, line 82" set wurst_stack_depth = wurst_stack_depth + 1 if ChannelData_typeId[this] == 0 then call error("Double free: object of type ChannelData", "when calling error in module.wurst, line 82") else set ChannelData_firstFree = ChannelData_firstFree + 1 set ChannelData_typeId[this] = 0 endif set wurst_stack_depth = wurst_stack_depth - 1 - 1 endfunction function ChannelData_TimedLoop_onExpire takes string w__wurst_stackPos returns boolean local integer i local integer t set wurst_stack[wurst_stack_depth] = w__wurst_stackPos set wurst_stack_depth = wurst_stack_depth + 1 set i = ChannelData_TimedLoop_instanceCount - 1 loop exitwhen i < 0 set t = ChannelData_TimedLoop_instances[i] set wurst_stack[wurst_stack_depth] = "when calling onTimedLoop in module.wurst, line 386" set wurst_stack_depth = wurst_stack_depth + 1 if ChannelData_typeId[t] == 0 then if t == 0 then call error("Nullpointer exception when calling ChannelData.onTimedLoop", "when calling error in module.wurst, line 95") else call error("Called ChannelData.onTimedLoop on invalid object.", "when calling error in module.wurst, line 95") endif endif set ChannelData_currentAmount[t] = ChannelData_currentAmount[t] + ChannelData_incAmount[t] call SetTextTagText(ChannelData_tt[t], R2S(ChannelData_currentAmount[t]), 0.00007935) set wurst_stack_depth = wurst_stack_depth - 1 if ChannelData_TimedLoop_mode[t] != 0 then set ChannelData_TimedLoop_instanceCount = ChannelData_TimedLoop_instanceCount - 1 set ChannelData_TimedLoop_instances[i] = ChannelData_TimedLoop_instances[ChannelData_TimedLoop_instanceCount] if ChannelData_TimedLoop_mode[t] == 3 then set ChannelData_TimedLoop_mode[t] = 1 set wurst_stack[wurst_stack_depth] = "when calling dispatch_ChannelData_destroyChannelData in module.wurst, line 392" set wurst_stack_depth = wurst_stack_depth + 1 if ChannelData_typeId[t] == 0 then if t == 0 then call error("Nullpointer exception when calling ChannelData.ChannelData", "when calling error in module.wurst, line 82") else call error("Called ChannelData.ChannelData on invalid object.", "when calling error in module.wurst, line 82") endif endif call destroyChannelData(t, "when calling destroyChannelData in module.wurst, line 82") set wurst_stack_depth = wurst_stack_depth - 1 else set ChannelData_TimedLoop_mode[t] = 1 endif endif set i = i - 1 endloop if ChannelData_TimedLoop_instanceCount == 0 then call TriggerRemoveCondition(TimedLoop_timedLoopTrig, ChannelData_TimedLoop_triggerCond) set ChannelData_TimedLoop_triggerCond = null set TimedLoop_conditionCount = TimedLoop_conditionCount - 1 endif set wurst_stack_depth = wurst_stack_depth - 1 return false endfunction function bridge_ChannelData_TimedLoop_onExpire takes nothing returns boolean set wurst_stack_depth = 0 return ChannelData_TimedLoop_onExpire("via function reference module.wurst, line 374") endfunction function new_LLEntry takes integer elem, integer prev, integer next, string w__wurst_stackPos returns integer set wurst_stack[wurst_stack_depth] = w__wurst_stackPos set wurst_stack_depth = wurst_stack_depth + 1 set wurst_stack[wurst_stack_depth] = "when calling alloc_LLEntry in LinkedList, line 434" set wurst_stack_depth = wurst_stack_depth + 1 if LLEntry_firstFree == 0 then if LLEntry_maxIndex < 32768 then set LLEntry_maxIndex = LLEntry_maxIndex + 1 set next = LLEntry_maxIndex else call error("Out of memory: Could not create LLEntry.", "when calling error in LinkedList, line 429") set next = 0 endif else set LLEntry_firstFree = LLEntry_firstFree - 1 set next = LLEntry_nextFree[LLEntry_firstFree] endif set wurst_stack_depth = wurst_stack_depth - 1 set LLEntry_prev[next] = prev set wurst_stack_depth = wurst_stack_depth - 1 return next endfunction function dispatch_LinkedList_LinkedList_LinkedList_add_1 takes integer this, integer elems_0, string w__wurst_stackPos returns nothing local integer entry set wurst_stack[wurst_stack_depth] = w__wurst_stackPos set wurst_stack_depth = wurst_stack_depth + 1 if LinkedList_typeId[this] == 0 then if this == 0 then call error("Nullpointer exception when calling LinkedList.add", "when calling error in LinkedList, line 38") else call error("Called LinkedList.add on invalid object.", "when calling error in LinkedList, line 38") endif endif set wurst_stack[wurst_stack_depth] = "when calling add in LinkedList, line 38" set wurst_stack_depth = wurst_stack_depth + 1 set entry = new_LLEntry(elems_0, LLEntry_prev[LinkedList_dummy[this]], LinkedList_dummy[this], "when calling new_LLEntry in LinkedList, line 40") set LLEntry_prev[LinkedList_dummy[this]] = entry set LinkedList_size[this] = LinkedList_size[this] + 1 set wurst_stack_depth = wurst_stack_depth - 1 - 1 endfunction function dispatch_ForGroupCallback_ClosureForGroups_ForGroupCallback_callback takes integer this, unit u_1, string w__wurst_stackPos returns nothing set wurst_stack[wurst_stack_depth] = w__wurst_stackPos set wurst_stack_depth = wurst_stack_depth + 1 if ForGroupCallback_typeId[this] == 0 then if this == 0 then call error("Nullpointer exception when calling ForGroupCallback.callback", "when calling error in ClosureForGroups, line 4") else call error("Called ForGroupCallback.callback on invalid object.", "when calling error in ClosureForGroups, line 4") endif endif if ForGroupCallback_typeId[this] <= 656 then set wurst_stack[wurst_stack_depth] = "when calling callback_forEachFrom_LinkedList in ClosureForGroups, line 4" set wurst_stack_depth = wurst_stack_depth + 1 call dispatch_LinkedList_LinkedList_LinkedList_add_1(result[this], GetHandleId(u_1), "when calling add in LinkedList, line 574") set wurst_stack_depth = wurst_stack_depth - 1 else call RemoveUnit(u_1) endif set wurst_stack_depth = wurst_stack_depth - 1 endfunction function bridge_code__Filter_ClosureForGroups takes nothing returns nothing local unit filter set wurst_stack_depth = 0 set wurst_stack[wurst_stack_depth] = "via function reference ClosureForGroups, line 14" set wurst_stack_depth = wurst_stack_depth + 1 set filter = GetFilterUnit() set wurst_stack[wurst_stack_depth] = "when calling filterCallback in ClosureForGroups, line 14" set wurst_stack_depth = wurst_stack_depth + 1 if ClosureForGroups_iterCount < 2147483647 then call dispatch_ForGroupCallback_ClosureForGroups_ForGroupCallback_callback(ClosureForGroups_tempCallbacks[-1], filter, "when calling callback in ClosureForGroups, line 18") endif set ClosureForGroups_iterCount = ClosureForGroups_iterCount + 1 set wurst_stack_depth = wurst_stack_depth - 1 - 1 endfunction function timer_getData takes timer this, string w__wurst_stackPos returns integer local integer this_1 local integer parentKey set wurst_stack[wurst_stack_depth] = w__wurst_stackPos set wurst_stack_depth = wurst_stack_depth + 1 set this_1 = TimerUtils_timerData set parentKey = GetHandleId(this) set wurst_stack[wurst_stack_depth] = "when calling loadInt in TimerUtils, line 22" set wurst_stack_depth = wurst_stack_depth + 1 if Table_typeId[this_1] == 0 then if this_1 == 0 then call error("Nullpointer exception when calling Table.loadInt", "when calling error in Table, line 40") else call error("Called Table.loadInt on invalid object.", "when calling error in Table, line 40") endif endif set this_1 = LoadInteger(Table_ht, this_1, parentKey) set wurst_stack_depth = wurst_stack_depth - 1 - 1 return this_1 endfunction function timer_setData takes timer this, integer data, string w__wurst_stackPos returns nothing local integer this_1 local integer parentKey set wurst_stack[wurst_stack_depth] = w__wurst_stackPos set wurst_stack_depth = wurst_stack_depth + 1 set this_1 = TimerUtils_timerData set parentKey = GetHandleId(this) set wurst_stack[wurst_stack_depth] = "when calling saveInt in TimerUtils, line 18" set wurst_stack_depth = wurst_stack_depth + 1 if Table_typeId[this_1] == 0 then if this_1 == 0 then call error("Nullpointer exception when calling Table.saveInt", "when calling error in Table, line 43") else call error("Called Table.saveInt on invalid object.", "when calling error in Table, line 43") endif endif call SaveInteger(Table_ht, this_1, parentKey, data) set wurst_stack_depth = wurst_stack_depth - 1 - 1 endfunction function timer_release takes timer this, string w__wurst_stackPos returns nothing set wurst_stack[wurst_stack_depth] = w__wurst_stackPos set wurst_stack_depth = wurst_stack_depth + 1 if this == null then call error("Trying to release a null timer", "when calling error in TimerUtils, line 38") set wurst_stack_depth = wurst_stack_depth - 1 return endif if timer_getData(this, "when calling getData in TimerUtils, line 40") == 679645218 then call error("ReleaseTimer: Double free!", "when calling error in TimerUtils, line 41") set wurst_stack_depth = wurst_stack_depth - 1 return endif call timer_setData(this, 679645218, "when calling setData in TimerUtils, line 43") call PauseTimer(this) set TimerUtils_freeTimers[TimerUtils_freeTimersCount] = this set TimerUtils_freeTimersCount = TimerUtils_freeTimersCount + 1 set wurst_stack_depth = wurst_stack_depth - 1 endfunction function destroyCallbackSingle takes integer this, string w__wurst_stackPos returns nothing set wurst_stack[wurst_stack_depth] = w__wurst_stackPos set wurst_stack_depth = wurst_stack_depth + 1 set wurst_stack[wurst_stack_depth] = "when calling CallbackSingle_onDestroy in ClosureTimers, line 144" set wurst_stack_depth = wurst_stack_depth + 1 call timer_release(CallbackSingle_t[this], "when calling release in ClosureTimers, line 145") set wurst_stack_depth = wurst_stack_depth - 1 set wurst_stack[wurst_stack_depth] = "when calling dealloc_CallbackSingle in ClosureTimers, line 144" set wurst_stack_depth = wurst_stack_depth + 1 if CallbackSingle_typeId[this] == 0 then call error("Double free: object of type CallbackSingle", "when calling error in ClosureTimers, line 128") else set CallbackSingle_nextFree[CallbackSingle_firstFree] = this set CallbackSingle_firstFree = CallbackSingle_firstFree + 1 set CallbackSingle_typeId[this] = 0 endif set wurst_stack_depth = wurst_stack_depth - 1 - 1 endfunction function DummyRecycler_recycle takes unit u_1, string w__wurst_stackPos returns nothing local integer smallestQueue local integer i local integer temp local integer LinkedList_LinkedList_size_result local integer LinkedList_LinkedList_size_result_1 local integer elem local real tuple_temp local real tuple_temp_1 set wurst_stack[wurst_stack_depth] = w__wurst_stackPos set wurst_stack_depth = wurst_stack_depth + 1 set smallestQueue = 0 set i = 1 set temp = 7 loop exitwhen i > temp set LinkedList_LinkedList_size_result = DummyRecycler_angleQueues[smallestQueue] set wurst_stack[wurst_stack_depth] = "when calling size in DummyRecycler, line 51" set wurst_stack_depth = wurst_stack_depth + 1 if LinkedList_typeId[LinkedList_LinkedList_size_result] == 0 then if LinkedList_LinkedList_size_result == 0 then call error("Nullpointer exception when calling LinkedList.size", "when calling error in LinkedList, line 158") else call error("Called LinkedList.size on invalid object.", "when calling error in LinkedList, line 158") endif endif set LinkedList_LinkedList_size_result = LinkedList_size[LinkedList_LinkedList_size_result] set wurst_stack_depth = wurst_stack_depth - 1 set LinkedList_LinkedList_size_result_1 = DummyRecycler_angleQueues[i] set wurst_stack[wurst_stack_depth] = "when calling size in DummyRecycler, line 51" set wurst_stack_depth = wurst_stack_depth + 1 if LinkedList_typeId[LinkedList_LinkedList_size_result_1] == 0 then if LinkedList_LinkedList_size_result_1 == 0 then call error("Nullpointer exception when calling LinkedList.size", "when calling error in LinkedList, line 158") else call error("Called LinkedList.size on invalid object.", "when calling error in LinkedList, line 158") endif endif set LinkedList_LinkedList_size_result_1 = LinkedList_size[LinkedList_LinkedList_size_result_1] set wurst_stack_depth = wurst_stack_depth - 1 if LinkedList_LinkedList_size_result > LinkedList_LinkedList_size_result_1 then set smallestQueue = i endif set i = i + 1 endloop set temp = DummyRecycler_angleQueues[smallestQueue] set wurst_stack[wurst_stack_depth] = "when calling size in DummyRecycler, line 53" set wurst_stack_depth = wurst_stack_depth + 1 if LinkedList_typeId[temp] == 0 then if temp == 0 then call error("Nullpointer exception when calling LinkedList.size", "when calling error in LinkedList, line 158") else call error("Called LinkedList.size on invalid object.", "when calling error in LinkedList, line 158") endif endif set temp = LinkedList_size[temp] set wurst_stack_depth = wurst_stack_depth - 1 if temp >= 6 then call RemoveUnit(u_1) else set temp = DummyRecycler_angleQueues[smallestQueue] set elem = GetHandleId(u_1) set wurst_stack[wurst_stack_depth] = "when calling enqueue in DummyRecycler, line 56" set wurst_stack_depth = wurst_stack_depth + 1 if LinkedList_typeId[temp] == 0 then if temp == 0 then call error("Nullpointer exception when calling LinkedList.enqueue", "when calling error in LinkedList, line 195") else call error("Called LinkedList.enqueue on invalid object.", "when calling error in LinkedList, line 195") endif endif set wurst_stack[wurst_stack_depth] = "when calling enqueue in LinkedList, line 195" set wurst_stack_depth = wurst_stack_depth + 1 call dispatch_LinkedList_LinkedList_LinkedList_add_1(temp, elem, "when calling add in LinkedList, line 196") set wurst_stack_depth = wurst_stack_depth - 1 - 1 set tuple_temp_1 = MapBounds_boundMax_x set tuple_temp = MapBounds_boundMax_y set tuple_temp_1 = tuple_temp_1 - 16. set tuple_temp = tuple_temp - 16. call SetUnitX(u_1, tuple_temp_1) call SetUnitY(u_1, tuple_temp) call PauseUnit(u_1, true) set tuple_temp_1 = smallestQueue * DummyRecycler_ANGLE_DEGREE * 0.017453293 call SetUnitFacing(u_1, tuple_temp_1 * 57.295779513) call SetUnitScale(u_1, 1., 1., 1.) call SetUnitVertexColor(u_1, 255, 255, 255, 255) call SetUnitOwner(u_1, Basics_DUMMY_PLAYER, true) endif set wurst_stack_depth = wurst_stack_depth - 1 endfunction function dispatch_Callback_destroyCallback takes integer this, string w__wurst_stackPos returns nothing set wurst_stack[wurst_stack_depth] = w__wurst_stackPos set wurst_stack_depth = wurst_stack_depth + 1 if Callback_typeId[this] == 0 then if this == 0 then call error("Nullpointer exception when calling Callback.Callback", "when calling error in ClosureTimers, line 125") else call error("Called Callback.Callback on invalid object.", "when calling error in ClosureTimers, line 125") endif endif set wurst_stack[wurst_stack_depth] = "when calling destroyCallback in ClosureTimers, line 125" set wurst_stack_depth = wurst_stack_depth + 1 set wurst_stack[wurst_stack_depth] = "when calling dealloc_Callback in ClosureTimers, line 125" set wurst_stack_depth = wurst_stack_depth + 1 if Callback_typeId[this] == 0 then call error("Double free: object of type Callback", "when calling error in ClosureTimers, line 125") else set Callback_firstFree = Callback_firstFree + 1 set Callback_typeId[this] = 0 endif set wurst_stack_depth = wurst_stack_depth - 1 - 1 - 1 endfunction function dispatch_ForGroupCallback_destroyForGroupCallback takes integer this, string w__wurst_stackPos returns nothing set wurst_stack[wurst_stack_depth] = w__wurst_stackPos set wurst_stack_depth = wurst_stack_depth + 1 if ForGroupCallback_typeId[this] == 0 then if this == 0 then call error("Nullpointer exception when calling ForGroupCallback.ForGroupCallback", "when calling error in ClosureForGroups, line 3") else call error("Called ForGroupCallback.ForGroupCallback on invalid object.", "when calling error in ClosureForGroups, line 3") endif endif set wurst_stack[wurst_stack_depth] = "when calling destroyForGroupCallback in ClosureForGroups, line 3" set wurst_stack_depth = wurst_stack_depth + 1 set wurst_stack[wurst_stack_depth] = "when calling dealloc_ForGroupCallback in ClosureForGroups, line 3" set wurst_stack_depth = wurst_stack_depth + 1 if ForGroupCallback_typeId[this] == 0 then call error("Double free: object of type ForGroupCallback", "when calling error in ClosureForGroups, line 3") else set ForGroupCallback_nextFree[ForGroupCallback_firstFree] = this set ForGroupCallback_firstFree = ForGroupCallback_firstFree + 1 set ForGroupCallback_typeId[this] = 0 endif set wurst_stack_depth = wurst_stack_depth - 1 - 1 - 1 endfunction function group_forEachFrom takes group this, integer cb_1, string w__wurst_stackPos returns nothing local unit iterUnit set wurst_stack[wurst_stack_depth] = w__wurst_stackPos set wurst_stack_depth = wurst_stack_depth + 1 loop exitwhen FirstOfGroup(this) == null set iterUnit = FirstOfGroup(this) call GroupRemoveUnit(this, iterUnit) call dispatch_ForGroupCallback_ClosureForGroups_ForGroupCallback_callback(cb_1, iterUnit, "when calling callback in ClosureForGroups, line 40") endloop call dispatch_ForGroupCallback_destroyForGroupCallback(cb_1, "when calling dispatch_ForGroupCallback_destroyForGroupCallback in ClosureForGroups, line 41") set wurst_stack_depth = wurst_stack_depth - 1 endfunction function finishPreload takes string w__wurst_stackPos returns nothing local group temp local integer this set wurst_stack[wurst_stack_depth] = w__wurst_stackPos set wurst_stack_depth = wurst_stack_depth + 1 call RemoveUnit(Preloader_dum) set temp = Preloader_dumg set wurst_stack[wurst_stack_depth] = "when calling alloc_ForGroupCallback_forEachFrom_Preloader in Preloader, line 48" set wurst_stack_depth = wurst_stack_depth + 1 if ForGroupCallback_firstFree == 0 then if ForGroupCallback_maxIndex < 32768 then set ForGroupCallback_maxIndex = ForGroupCallback_maxIndex + 1 set this = ForGroupCallback_maxIndex set ForGroupCallback_typeId[this] = 657 else call error("Out of memory: Could not create ForGroupCallback_forEachFrom_Preloader.", "when calling error in Preloader, line 48") set this = 0 endif else set ForGroupCallback_firstFree = ForGroupCallback_firstFree - 1 set this = ForGroupCallback_nextFree[ForGroupCallback_firstFree] set ForGroupCallback_typeId[this] = 657 endif set wurst_stack_depth = wurst_stack_depth - 1 call group_forEachFrom(temp, this, "when calling forEachFrom in Preloader, line 48") call DestroyGroup(Preloader_dumg) set Preloader_dumg = null set wurst_stack_depth = wurst_stack_depth - 1 endfunction function testFail takes string msg returns nothing endfunction function dispatch_CallbackSingle_ClosureTimers_CallbackSingle_call takes integer this, string w__wurst_stackPos returns nothing set wurst_stack[wurst_stack_depth] = w__wurst_stackPos set wurst_stack_depth = wurst_stack_depth + 1 if CallbackSingle_typeId[this] == 0 then if this == 0 then call error("Nullpointer exception when calling CallbackSingle.call", "when calling error in ClosureTimers, line 130") else call error("Called CallbackSingle.call on invalid object.", "when calling error in ClosureTimers, line 130") endif endif if CallbackSingle_typeId[this] <= 639 then if CallbackSingle_typeId[this] <= 638 then if CallbackSingle_typeId[this] <= 637 then set wurst_stack[wurst_stack_depth] = "when calling call_doAfter_ClosureTimers in ClosureTimers, line 130" set wurst_stack_depth = wurst_stack_depth + 1 call dispatch_Callback_destroyCallback(cb[this], "when calling dispatch_Callback_destroyCallback in ClosureTimers, line 44") call DestroyTimerDialog(dia[this]) set wurst_stack_depth = wurst_stack_depth - 1 else set ClosureTimers_x = ClosureTimers_x + 50 endif else set ClosureTimers_x = ClosureTimers_x * 2 endif elseif CallbackSingle_typeId[this] <= 641 then if CallbackSingle_typeId[this] <= 640 then set ClosureTimers_x = ClosureTimers_x / 2 set this = ClosureTimers_x if this != 250 then call testFail("Expected <" + I2S(250) + ">, Actual <" + I2S(this) + ">") endif else set wurst_stack[wurst_stack_depth] = "when calling call_doAfter_DummyRecycler_DummyRecycler in ClosureTimers, line 130" set wurst_stack_depth = wurst_stack_depth + 1 call DummyRecycler_recycle(u[this], "when calling recycle in DummyRecycler, line 66") set wurst_stack_depth = wurst_stack_depth - 1 endif else set wurst_stack[wurst_stack_depth] = "when calling call_nullTimer_Preloader in ClosureTimers, line 130" set wurst_stack_depth = wurst_stack_depth + 1 call finishPreload("when calling finishPreload in Preloader, line 58") set wurst_stack_depth = wurst_stack_depth - 1 endif set wurst_stack_depth = wurst_stack_depth - 1 endfunction function CallbackSingle_staticCallback takes string w__wurst_stackPos returns nothing local integer cb_1 set wurst_stack[wurst_stack_depth] = w__wurst_stackPos set wurst_stack_depth = wurst_stack_depth + 1 set cb_1 = timer_getData(GetExpiredTimer(), "when calling getData in ClosureTimers, line 140") call dispatch_CallbackSingle_ClosureTimers_CallbackSingle_call(cb_1, "when calling call in ClosureTimers, line 141") set wurst_stack[wurst_stack_depth] = "when calling dispatch_CallbackSingle_destroyCallbackSingle in ClosureTimers, line 142" set wurst_stack_depth = wurst_stack_depth + 1 if CallbackSingle_typeId[cb_1] == 0 then if cb_1 == 0 then call error("Nullpointer exception when calling CallbackSingle.CallbackSingle", "when calling error in ClosureTimers, line 128") else call error("Called CallbackSingle.CallbackSingle on invalid object.", "when calling error in ClosureTimers, line 128") endif endif call destroyCallbackSingle(cb_1, "when calling destroyCallbackSingle in ClosureTimers, line 128") set wurst_stack_depth = wurst_stack_depth - 1 - 1 endfunction function bridge_code__start_CallbackSingle_ClosureTimers takes nothing returns nothing set wurst_stack_depth = 0 set wurst_stack[wurst_stack_depth] = "via function reference ClosureTimers, line 135" set wurst_stack_depth = wurst_stack_depth + 1 call CallbackSingle_staticCallback("when calling staticCallback in ClosureTimers, line 135") set wurst_stack_depth = wurst_stack_depth - 1 endfunction function initializeTable takes string w__wurst_stackPos returns nothing local integer i local integer this local integer parentKey set wurst_stack[wurst_stack_depth] = w__wurst_stackPos set wurst_stack_depth = wurst_stack_depth + 1 set i = 0 loop exitwhen i > 15 set this = Colors_decs set parentKey = StringHash(Colors_hexs[i]) set wurst_stack[wurst_stack_depth] = "when calling saveInt in Colors, line 299" set wurst_stack_depth = wurst_stack_depth + 1 if Table_typeId[this] == 0 then if this == 0 then call error("Nullpointer exception when calling Table.saveInt", "when calling error in Table, line 43") else call error("Called Table.saveInt on invalid object.", "when calling error in Table, line 43") endif endif call SaveInteger(Table_ht, this, parentKey, i) set wurst_stack_depth = wurst_stack_depth - 1 set i = i + 1 endloop set wurst_stack_depth = wurst_stack_depth - 1 endfunction function new_Table takes string w__wurst_stackPos returns integer local integer this set wurst_stack[wurst_stack_depth] = w__wurst_stackPos set wurst_stack_depth = wurst_stack_depth + 1 set wurst_stack[wurst_stack_depth] = "when calling alloc_Table in Table, line 6" set wurst_stack_depth = wurst_stack_depth + 1 if Table_firstFree == 0 then if Table_maxIndex < 32768 then set Table_maxIndex = Table_maxIndex + 1 set this = Table_maxIndex set Table_typeId[this] = 731 else call error("Out of memory: Could not create Table.", "when calling error in Table, line 7") set this = 0 endif else set Table_firstFree = Table_firstFree - 1 set this = Table_nextFree[Table_firstFree] set Table_typeId[this] = 731 endif set wurst_stack_depth = wurst_stack_depth - 1 - 1 return this endfunction function init_Colors takes string w__wurst_stackPos returns boolean set wurst_stack[wurst_stack_depth] = w__wurst_stackPos set wurst_stack_depth = wurst_stack_depth + 1 set Colors_hexs[0] = "0" set Colors_hexs[1] = "1" set Colors_hexs[2] = "2" set Colors_hexs[3] = "3" set Colors_hexs[4] = "4" set Colors_hexs[5] = "5" set Colors_hexs[6] = "6" set Colors_hexs[7] = "7" set Colors_hexs[8] = "8" set Colors_hexs[9] = "9" set Colors_hexs[10] = "A" set Colors_hexs[11] = "B" set Colors_hexs[12] = "C" set Colors_hexs[13] = "D" set Colors_hexs[14] = "E" set Colors_hexs[15] = "F" set Colors_decs = new_Table("when calling new_Table in Colors, line 15") call initializeTable("when calling initializeTable in Colors, line 302") set wurst_stack_depth = wurst_stack_depth - 1 return true endfunction function bridge_init_Colors takes nothing returns boolean set wurst_stack_depth = 0 return init_Colors("via function reference Colors, line 1") endfunction function createDummy takes real pos_x, real pos_y, real facing_radians returns unit local unit u_1 = CreateUnit(Basics_DUMMY_PLAYER, 2016423985, pos_x, pos_y, facing_radians * 57.295779513) call UnitAddAbility(u_1, 1097691750) call UnitRemoveAbility(u_1, 1097691750) call UnitAddAbility(u_1, 1095577649) call UnitRemoveAbility(u_1, 1095577649) call SetUnitX(u_1, pos_x) call SetUnitY(u_1, pos_y) call SetUnitFacing(u_1, facing_radians * 57.295779513) return u_1 endfunction function new_LinkedList takes string w__wurst_stackPos returns integer local integer this set wurst_stack[wurst_stack_depth] = w__wurst_stackPos set wurst_stack_depth = wurst_stack_depth + 1 set wurst_stack[wurst_stack_depth] = "when calling alloc_LinkedList in LinkedList, line 32" set wurst_stack_depth = wurst_stack_depth + 1 if LinkedList_firstFree == 0 then if LinkedList_maxIndex < 32768 then set LinkedList_maxIndex = LinkedList_maxIndex + 1 set this = LinkedList_maxIndex set LinkedList_typeId[this] = 710 else call error("Out of memory: Could not create LinkedList.", "when calling error in LinkedList, line 18") set this = 0 endif else set LinkedList_firstFree = LinkedList_firstFree - 1 set this = LinkedList_nextFree[LinkedList_firstFree] set LinkedList_typeId[this] = 710 endif set wurst_stack_depth = wurst_stack_depth - 1 set wurst_stack[wurst_stack_depth] = "when calling construct_LinkedList2 in LinkedList, line 32" set wurst_stack_depth = wurst_stack_depth + 1 set wurst_stack[wurst_stack_depth] = "when calling LinkedList_init in LinkedList, line 32" set wurst_stack_depth = wurst_stack_depth + 1 set LinkedList_dummy[this] = new_LLEntry(0, 0, 0, "when calling new_LLEntry in LinkedList, line 19") set LinkedList_size[this] = 0 set wurst_stack_depth = wurst_stack_depth - 1 set LLEntry_prev[LinkedList_dummy[this]] = LinkedList_dummy[this] set wurst_stack_depth = wurst_stack_depth - 1 - 1 return this endfunction function init_DummyRecycler takes string w__wurst_stackPos returns boolean local integer i local integer temp local real facing_radians local integer j local integer temp_1 local unit dummy local integer this local integer elem set wurst_stack[wurst_stack_depth] = w__wurst_stackPos set wurst_stack_depth = wurst_stack_depth + 1 set DummyRecycler_ANGLE_DEGREE = 360 * 1. / 8 set i = 0 set temp = 7 loop exitwhen i > temp set DummyRecycler_angleQueues[i] = new_LinkedList("when calling new_LinkedList in DummyRecycler, line 79") set facing_radians = i * DummyRecycler_ANGLE_DEGREE set j = 0 set temp_1 = 5 loop exitwhen j > temp_1 set dummy = createDummy(MapBounds_boundMax_x - 16., MapBounds_boundMax_y - 16., facing_radians) set this = DummyRecycler_angleQueues[i] set elem = GetHandleId(dummy) set wurst_stack[wurst_stack_depth] = "when calling enqueue in DummyRecycler, line 83" set wurst_stack_depth = wurst_stack_depth + 1 if LinkedList_typeId[this] == 0 then if this == 0 then call error("Nullpointer exception when calling LinkedList.enqueue", "when calling error in LinkedList, line 195") else call error("Called LinkedList.enqueue on invalid object.", "when calling error in LinkedList, line 195") endif endif set wurst_stack[wurst_stack_depth] = "when calling enqueue in LinkedList, line 195" set wurst_stack_depth = wurst_stack_depth + 1 call dispatch_LinkedList_LinkedList_LinkedList_add_1(this, elem, "when calling add in LinkedList, line 196") set wurst_stack_depth = wurst_stack_depth - 1 - 1 set j = j + 1 endloop set i = i + 1 endloop set wurst_stack_depth = wurst_stack_depth - 1 return true endfunction function bridge_init_DummyRecycler takes nothing returns boolean set wurst_stack_depth = 0 return init_DummyRecycler("via function reference DummyRecycler, line 1") endfunction function new_BackIterator takes boolean destroyOnClose, string w__wurst_stackPos returns integer local integer this set wurst_stack[wurst_stack_depth] = w__wurst_stackPos set wurst_stack_depth = wurst_stack_depth + 1 set wurst_stack[wurst_stack_depth] = "when calling alloc_BackIterator in LinkedListModule, line 97" set wurst_stack_depth = wurst_stack_depth + 1 if BackIterator_firstFree == 0 then if BackIterator_maxIndex < 32768 then set BackIterator_maxIndex = BackIterator_maxIndex + 1 set this = BackIterator_maxIndex else call error("Out of memory: Could not create BackIterator.", "when calling error in LinkedListModule, line 93") set this = 0 endif else set BackIterator_firstFree = BackIterator_firstFree - 1 set this = BackIterator_nextFree[BackIterator_firstFree] endif set wurst_stack_depth = wurst_stack_depth - 1 - 1 return this endfunction function new_Iterator takes boolean destroyOnClose, string w__wurst_stackPos returns integer local integer this set wurst_stack[wurst_stack_depth] = w__wurst_stackPos set wurst_stack_depth = wurst_stack_depth + 1 set wurst_stack[wurst_stack_depth] = "when calling alloc_Iterator in LinkedListModule, line 75" set wurst_stack_depth = wurst_stack_depth + 1 if Iterator_firstFree == 0 then if Iterator_maxIndex < 32768 then set Iterator_maxIndex = Iterator_maxIndex + 1 set this = Iterator_maxIndex else call error("Out of memory: Could not create Iterator.", "when calling error in LinkedListModule, line 71") set this = 0 endif else set Iterator_firstFree = Iterator_firstFree - 1 set this = Iterator_nextFree[Iterator_firstFree] endif set wurst_stack_depth = wurst_stack_depth - 1 - 1 return this endfunction function init_Entity takes string w__wurst_stackPos returns boolean set wurst_stack[wurst_stack_depth] = w__wurst_stackPos set wurst_stack_depth = wurst_stack_depth + 1 call new_Iterator(false, "when calling new_Iterator in LinkedListModule, line 55") call new_BackIterator(false, "when calling new_BackIterator in LinkedListModule, line 65") set UnitEntity_dmgTrig = CreateTrigger() call TriggerAddAction(UnitEntity_dmgTrig, ref_function_UnitEntity_onDamage) set wurst_stack_depth = wurst_stack_depth - 1 return true endfunction function bridge_init_Entity takes nothing returns boolean set wurst_stack_depth = 0 return init_Entity("via function reference module.wurst, line 117") endfunction function new_HashMap takes string w__wurst_stackPos returns integer local integer this set wurst_stack[wurst_stack_depth] = w__wurst_stackPos set wurst_stack_depth = wurst_stack_depth + 1 set wurst_stack[wurst_stack_depth] = "when calling alloc_HashMap in HashMap, line 7" set wurst_stack_depth = wurst_stack_depth + 1 if Table_firstFree == 0 then if Table_maxIndex < 32768 then set Table_maxIndex = Table_maxIndex + 1 set this = Table_maxIndex set Table_typeId[this] = 732 else call error("Out of memory: Could not create HashMap.", "when calling error in HashMap, line 8") set this = 0 endif else set Table_firstFree = Table_firstFree - 1 set this = Table_nextFree[Table_firstFree] set Table_typeId[this] = 732 endif set wurst_stack_depth = wurst_stack_depth - 1 - 1 return this endfunction function bridge_init_EventHelper takes nothing returns boolean set wurst_stack_depth = 0 set wurst_stack[wurst_stack_depth] = "via function reference EventHelper, line 1" set wurst_stack_depth = wurst_stack_depth + 1 call new_HashMap("when calling new_HashMap in EventHelper, line 7") call new_HashMap("when calling new_HashMap in EventHelper, line 8") call new_Table("when calling new_Table in EventHelper, line 9") set wurst_stack_depth = wurst_stack_depth - 1 return true endfunction function verifyFrameNameLength takes string name, string w__wurst_stackPos returns boolean set wurst_stack[wurst_stack_depth] = w__wurst_stackPos set wurst_stack_depth = wurst_stack_depth + 1 if StringLength(name) > 560 then call error("Trying to address frame with exceeding maximum frame name length (" + I2S(560) + ") for: " + name, "when calling error in Framehandle, line 78") set wurst_stack_depth = wurst_stack_depth - 1 return false endif set wurst_stack_depth = wurst_stack_depth - 1 return true endfunction function init_Framehandle takes string w__wurst_stackPos returns boolean local framehandle owner set wurst_stack[wurst_stack_depth] = w__wurst_stackPos set wurst_stack_depth = wurst_stack_depth + 1 set Framehandle_GAME_UI = BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0) set owner = Framehandle_GAME_UI set wurst_stack[wurst_stack_depth] = "when calling createFrame in Framehandle, line 491" set wurst_stack_depth = wurst_stack_depth + 1 call verifyFrameNameLength("SetMousePositionCage", "when calling verifyFrameNameLength in Framehandle, line 144") set owner = BlzCreateFrameByType("FRAME", "SetMousePositionCage", owner, null, 0) set wurst_stack_depth = wurst_stack_depth - 1 call BlzFrameSetSize(owner, 0.0001, 0.0001) set wurst_stack_depth = wurst_stack_depth - 1 return true endfunction function bridge_init_Framehandle takes nothing returns boolean set wurst_stack_depth = 0 return init_Framehandle("via function reference Framehandle, line 1") endfunction function init_LinkedList takes string w__wurst_stackPos returns boolean set wurst_stack[wurst_stack_depth] = w__wurst_stackPos set wurst_stack_depth = wurst_stack_depth + 1 set wurst_stack[wurst_stack_depth] = "when calling alloc_Comparator_LinkedList in LinkedList, line 563" set wurst_stack_depth = wurst_stack_depth + 1 if Comparator_firstFree == 0 then if Comparator_maxIndex < 32768 then set Comparator_maxIndex = Comparator_maxIndex + 1 else call error("Out of memory: Could not create Comparator_LinkedList.", "when calling error in LinkedList, line 563") endif else set Comparator_firstFree = Comparator_firstFree - 1 endif set wurst_stack_depth = wurst_stack_depth - 1 set wurst_stack[wurst_stack_depth] = "when calling alloc_Comparator_LinkedList in LinkedList, line 567" set wurst_stack_depth = wurst_stack_depth + 1 if Comparator_firstFree == 0 then if Comparator_maxIndex < 32768 then set Comparator_maxIndex = Comparator_maxIndex + 1 else call error("Out of memory: Could not create Comparator_LinkedList.", "when calling error in LinkedList, line 567") endif else set Comparator_firstFree = Comparator_firstFree - 1 endif set wurst_stack_depth = wurst_stack_depth - 1 - 1 return true endfunction function bridge_init_LinkedList takes nothing returns boolean set wurst_stack_depth = 0 return init_LinkedList("via function reference LinkedList, line 1") endfunction function new_IdGenerator takes integer start, string w__wurst_stackPos returns integer set wurst_stack[wurst_stack_depth] = w__wurst_stackPos set wurst_stack_depth = wurst_stack_depth + 1 set wurst_stack[wurst_stack_depth] = "when calling alloc_IdGenerator in ObjectIdGenerator, line 19" set wurst_stack_depth = wurst_stack_depth + 1 if IdGenerator_firstFree == 0 then if IdGenerator_maxIndex < 32768 then set IdGenerator_maxIndex = IdGenerator_maxIndex + 1 set start = IdGenerator_maxIndex else call error("Out of memory: Could not create IdGenerator.", "when calling error in ObjectIdGenerator, line 13") set start = 0 endif else set IdGenerator_firstFree = IdGenerator_firstFree - 1 set start = IdGenerator_nextFree[IdGenerator_firstFree] endif set wurst_stack_depth = wurst_stack_depth - 1 - 1 return start endfunction function bridge_init_ObjectIdGenerator takes nothing returns boolean set wurst_stack_depth = 0 set wurst_stack[wurst_stack_depth] = "via function reference ObjectIdGenerator, line 1" set wurst_stack_depth = wurst_stack_depth + 1 call new_IdGenerator(2016423984, "when calling new_IdGenerator in ObjectIdGenerator, line 6") call new_IdGenerator(1213018160, "when calling new_IdGenerator in ObjectIdGenerator, line 7") call new_IdGenerator(1095577648, "when calling new_IdGenerator in ObjectIdGenerator, line 8") call new_IdGenerator(1112354864, "when calling new_IdGenerator in ObjectIdGenerator, line 9") call new_IdGenerator(1229795376, "when calling new_IdGenerator in ObjectIdGenerator, line 10") call new_IdGenerator(1380790320, "when calling new_IdGenerator in ObjectIdGenerator, line 11") set wurst_stack_depth = wurst_stack_depth - 1 return true endfunction function CallbackSingle_start takes integer this, timer whichTimer, real time, string w__wurst_stackPos returns nothing set wurst_stack[wurst_stack_depth] = w__wurst_stackPos set wurst_stack_depth = wurst_stack_depth + 1 call timer_setData(whichTimer, this, "when calling setData in ClosureTimers, line 134") call TimerStart(whichTimer, time, false, ref_function_bridge_code__start_CallbackSingle_ClosureTimers) set CallbackSingle_t[this] = whichTimer set wurst_stack_depth = wurst_stack_depth - 1 endfunction function getTimer takes string w__wurst_stackPos returns timer local timer receiver set wurst_stack[wurst_stack_depth] = w__wurst_stackPos set wurst_stack_depth = wurst_stack_depth + 1 if TimerUtils_freeTimersCount > 0 then set TimerUtils_freeTimersCount = TimerUtils_freeTimersCount - 1 call timer_setData(TimerUtils_freeTimers[TimerUtils_freeTimersCount], 0, "when calling setData in TimerUtils, line 30") set wurst_stack_depth = wurst_stack_depth - 1 return TimerUtils_freeTimers[TimerUtils_freeTimersCount] else set receiver = CreateTimer() call timer_setData(receiver, 0, "when calling setData in TimerUtils, line 33") set wurst_stack_depth = wurst_stack_depth - 1 return receiver endif endfunction function doAfter takes real timeToWait, integer cb_1, string w__wurst_stackPos returns integer local timer this set wurst_stack[wurst_stack_depth] = w__wurst_stackPos set wurst_stack_depth = wurst_stack_depth + 1 set this = getTimer("when calling getTimer in ClosureTimers, line 28") set wurst_stack[wurst_stack_depth] = "when calling doAfter in ClosureTimers, line 28" set wurst_stack_depth = wurst_stack_depth + 1 set wurst_stack[wurst_stack_depth] = "when calling start in ClosureTimers, line 17" set wurst_stack_depth = wurst_stack_depth + 1 if CallbackSingle_typeId[cb_1] == 0 then if cb_1 == 0 then call error("Nullpointer exception when calling CallbackSingle.start", "when calling error in ClosureTimers, line 132") else call error("Called CallbackSingle.start on invalid object.", "when calling error in ClosureTimers, line 132") endif endif call CallbackSingle_start(cb_1, this, timeToWait, "when calling start in ClosureTimers, line 132") set wurst_stack_depth = wurst_stack_depth - 1 - 1 - 1 return cb_1 endfunction function init_Preloader takes string w__wurst_stackPos returns boolean local integer this set wurst_stack[wurst_stack_depth] = w__wurst_stackPos set wurst_stack_depth = wurst_stack_depth + 1 set Preloader_dumg = CreateGroup() set Preloader_dum = CreateUnit(Basics_DUMMY_PLAYER, 1970497636, MapBounds_playableMin_x, MapBounds_playableMin_y, 0.0) call SetUnitInvulnerable(Preloader_dum, true) if Preloader_dum == null then call error("DUMMY_UNITID not added correctly to the map.", "when calling error in Preloader, line 56") endif set wurst_stack[wurst_stack_depth] = "when calling alloc_CallbackSingle_nullTimer_Preloader in Preloader, line 58" set wurst_stack_depth = wurst_stack_depth + 1 if CallbackSingle_firstFree == 0 then if CallbackSingle_maxIndex < 32768 then set CallbackSingle_maxIndex = CallbackSingle_maxIndex + 1 set this = CallbackSingle_maxIndex set CallbackSingle_typeId[this] = 642 else call error("Out of memory: Could not create CallbackSingle_nullTimer_Preloader.", "when calling error in Preloader, line 58") set this = 0 endif else set CallbackSingle_firstFree = CallbackSingle_firstFree - 1 set this = CallbackSingle_nextFree[CallbackSingle_firstFree] set CallbackSingle_typeId[this] = 642 endif set wurst_stack_depth = wurst_stack_depth - 1 set wurst_stack[wurst_stack_depth] = "when calling nullTimer in Preloader, line 58" set wurst_stack_depth = wurst_stack_depth + 1 call doAfter(0., this, "when calling doAfter in ClosureTimers, line 51") set wurst_stack_depth = wurst_stack_depth - 1 - 1 return true endfunction function bridge_init_Preloader takes nothing returns boolean set wurst_stack_depth = 0 return init_Preloader("via function reference Preloader, line 1") endfunction function bridge_init_TimerUtils takes nothing returns boolean set wurst_stack_depth = 0 set wurst_stack[wurst_stack_depth] = "via function reference TimerUtils, line 1" set wurst_stack_depth = wurst_stack_depth + 1 set TimerUtils_timerData = new_Table("when calling new_Table in TimerUtils, line 13") call new_HashMap("when calling new_HashMap in TimerUtils, line 59") set wurst_stack_depth = wurst_stack_depth - 1 return true endfunction function init_TypeCasting takes string w__wurst_stackPos returns boolean local integer this set wurst_stack[wurst_stack_depth] = w__wurst_stackPos set wurst_stack_depth = wurst_stack_depth + 1 set TypeCasting_typecastdata = new_Table("when calling new_Table in TypeCasting, line 7") set wurst_stack[wurst_stack_depth] = "when calling initTypecastData in TypeCasting, line 15" set wurst_stack_depth = wurst_stack_depth + 1 set this = TypeCasting_typecastdata set wurst_stack[wurst_stack_depth] = "when calling saveString in TypeCasting, line 12" set wurst_stack_depth = wurst_stack_depth + 1 if Table_typeId[this] == 0 then if this == 0 then call error("Nullpointer exception when calling Table.saveString", "when calling error in Table, line 61") else call error("Called Table.saveString on invalid object.", "when calling error in Table, line 61") endif endif call SaveStr(Table_ht, this, 0, "") set wurst_stack_depth = wurst_stack_depth - 1 - 1 - 1 return true endfunction function bridge_init_TypeCasting takes nothing returns boolean set wurst_stack_depth = 0 return init_TypeCasting("via function reference TypeCasting, line 1") endfunction function code__startPeriodic_GameTimer takes nothing returns nothing set GameTimer_currentTime = GameTimer_currentTime + 0.030 endfunction function init_AbilityIds takes nothing returns boolean return true endfunction function init_AbilityObjEditing takes nothing returns boolean return true endfunction function init_Angle takes nothing returns boolean return true endfunction function init_Basics takes nothing returns boolean set Basics_DUMMY_PLAYER = Player_players[PLAYER_NEUTRAL_PASSIVE] return true endfunction function initPows takes nothing returns nothing local integer allPows local integer i local integer temp set BitSet_pows[0] = 1 set allPows = 1 set i = 1 set temp = 31 loop exitwhen i > temp set BitSet_pows[i] = BitSet_pows[i - 1] * 2 set allPows = BlzBitOr(allPows, BitSet_pows[i]) set i = i + 1 endloop set i = 0 set temp = 31 loop exitwhen i > temp set i = i + 1 endloop endfunction function init_BitSet takes nothing returns boolean call initPows() return true endfunction function init_ClosureForGroups takes nothing returns boolean call CreateGroup() call Filter(ref_function_bridge_code__Filter_ClosureForGroups) call Rect(0., 0., 0., 0.) return true endfunction function init_ClosureTimers takes nothing returns boolean set ClosureTimers_x = 200 return true endfunction function init_Destructable takes nothing returns boolean return true endfunction function init_ErrorHandling takes nothing returns boolean set ErrorHandling_HT = hashtable_compiletime return true endfunction function init_GameTimer takes nothing returns boolean call TimerStart(CreateTimer(), 100000., false, null) call TimerStart(CreateTimer(), 0.030, true, ref_function_code__startPeriodic_GameTimer) return true endfunction function init_Group takes nothing returns boolean call CreateGroup() return true endfunction function init_HashList takes nothing returns boolean return true endfunction function init_Icons takes nothing returns boolean return true endfunction function init_Integer takes nothing returns boolean return true endfunction function init_Lightning takes nothing returns boolean return true endfunction function init_MagicFunctions takes nothing returns boolean set MagicFunctions_compiletime = false return true endfunction function initMapBounds takes nothing returns nothing local rect cond_result local region receiver local real tuple_temp local real tuple_temp_1 if MagicFunctions_compiletime then set cond_result = Rect(-1024., -1024., 1024., 1024.) else set cond_result = bj_mapInitialPlayableArea endif set MapBounds_playableMapRect = cond_result set receiver = CreateRegion() call RegionAddRect(receiver, MapBounds_playableMapRect) if MagicFunctions_compiletime then set cond_result = Rect(-1536., -1536., 1536., 1536.) else set cond_result = GetWorldBounds() endif set MapBounds_boundRect = cond_result set receiver = CreateRegion() call RegionAddRect(receiver, MapBounds_boundRect) set tuple_temp = GetRectMinX(MapBounds_playableMapRect) set tuple_temp_1 = GetRectMinY(MapBounds_playableMapRect) set MapBounds_playableMin_x = tuple_temp set MapBounds_playableMin_y = tuple_temp_1 call GetRectMaxX(MapBounds_playableMapRect) call GetRectMaxY(MapBounds_playableMapRect) call GetRectMinX(MapBounds_boundRect) call GetRectMinY(MapBounds_boundRect) set tuple_temp_1 = GetRectMaxX(MapBounds_boundRect) set tuple_temp = GetRectMaxY(MapBounds_boundRect) set MapBounds_boundMax_x = tuple_temp_1 set MapBounds_boundMax_y = tuple_temp endfunction function init_MapBounds takes nothing returns boolean call initMapBounds() return true endfunction function init_Maths takes nothing returns boolean return true endfunction function init_Matrices takes nothing returns boolean return true endfunction function init_ObjectIds takes nothing returns boolean return true endfunction function init_Player takes nothing returns boolean local integer i local integer temp set Player_localPlayer = GetLocalPlayer() set i = 0 set temp = bj_MAX_PLAYER_SLOTS - 1 loop exitwhen i > temp set Player_players[i] = Player(i) set i = i + 1 endloop return true endfunction function init_Playercolor takes nothing returns boolean return true endfunction function init_Printing takes nothing returns boolean return true endfunction function init_Quaternion takes nothing returns boolean return true endfunction function init_Real takes nothing returns boolean return true endfunction function init_SpellEnergyBarrier takes nothing returns boolean set ChannelData_TimedLoop_triggerCond = null call Condition(ref_function_bridge_ChannelData_TimedLoop_onExpire) return true endfunction function init_String takes nothing returns boolean return true endfunction function init_Table takes nothing returns boolean set Table_ht = hashtable_compiletime_84 return true endfunction function init_TargetsAllowed takes nothing returns boolean return true endfunction function init_Terrain takes nothing returns boolean call Location(0., 0.) set Terrain_dItem = null call Rect(0., 0., 128., 128.) set Terrain_dItem = CreateItem(2003790951, 0., 0.) call SetItemVisible(Terrain_dItem, false) return true endfunction function init_TimedLoop takes nothing returns boolean call CreateTimer() set TimedLoop_timedLoopTrig = CreateTrigger() set TimedLoop_conditionCount = 0 return true endfunction function init_UnitIds takes nothing returns boolean return true endfunction function init_Vectors takes nothing returns boolean call Location(0., 0.) return true endfunction function init_WeatherEffects takes nothing returns boolean return true endfunction function initGlobals takes nothing returns nothing set ref_function_init_AbilityIds = function init_AbilityIds set ref_function_init_Real = function init_Real set ref_function_init_Integer = function init_Integer set ref_function_init_BitSet = function init_BitSet set ref_function_init_String = function init_String set ref_function_init_TargetsAllowed = function init_TargetsAllowed set ref_function_init_Angle = function init_Angle set ref_function_init_Vectors = function init_Vectors set ref_function_init_Destructable = function init_Destructable set ref_function_init_Player = function init_Player set ref_function_init_Maths = function init_Maths set ref_function_init_Printing = function init_Printing set ref_function_init_MagicFunctions = function init_MagicFunctions set ref_function_init_Basics = function init_Basics set ref_function_init_GameTimer = function init_GameTimer set ref_function_init_ErrorHandling = function init_ErrorHandling set ref_function_init_Matrices = function init_Matrices set ref_function_init_Quaternion = function init_Quaternion set ref_function_init_Table = function init_Table set ref_function_init_Playercolor = function init_Playercolor set ref_function_bridge_init_Colors = function bridge_init_Colors set ref_function_bridge_init_Framehandle = function bridge_init_Framehandle set ref_function_init_Group = function init_Group set ref_function_init_Lightning = function init_Lightning set ref_function_init_WeatherEffects = function init_WeatherEffects set ref_function_bridge_init_TypeCasting = function bridge_init_TypeCasting set ref_function_init_HashList = function init_HashList set ref_function_bridge_init_EventHelper = function bridge_init_EventHelper set ref_function_init_AbilityObjEditing = function init_AbilityObjEditing set ref_function_init_ClosureForGroups = function init_ClosureForGroups set ref_function_bridge_init_TimerUtils = function bridge_init_TimerUtils set ref_function_init_ClosureTimers = function init_ClosureTimers set ref_function_init_MapBounds = function init_MapBounds set ref_function_bridge_init_LinkedList = function bridge_init_LinkedList set ref_function_init_ObjectIds = function init_ObjectIds set ref_function_init_UnitIds = function init_UnitIds set ref_function_init_Icons = function init_Icons set ref_function_bridge_init_Preloader = function bridge_init_Preloader set ref_function_bridge_init_ObjectIdGenerator = function bridge_init_ObjectIdGenerator set ref_function_bridge_init_DummyRecycler = function bridge_init_DummyRecycler set ref_function_init_Terrain = function init_Terrain set ref_function_bridge_init_Entity = function bridge_init_Entity set ref_function_init_TimedLoop = function init_TimedLoop set ref_function_init_SpellEnergyBarrier = function init_SpellEnergyBarrier set ref_function_bridge_code__Filter_ClosureForGroups = function bridge_code__Filter_ClosureForGroups set ref_function_UnitEntity_onDamage = function UnitEntity_onDamage set ref_function_code__startPeriodic_GameTimer = function code__startPeriodic_GameTimer set ref_function_bridge_ChannelData_TimedLoop_onExpire = function bridge_ChannelData_TimedLoop_onExpire set ref_function_bridge_code__start_CallbackSingle_ClosureTimers = function bridge_code__start_CallbackSingle_ClosureTimers endfunction function main takes nothing returns nothing local trigger initTrig call initGlobals() call ExecuteFunc("initCompiletimeState_0") set initTrig = CreateTrigger() call TriggerAddCondition(initTrig, Condition(ref_function_init_AbilityIds)) if not TriggerEvaluate(initTrig) then call error("Could not initialize package AbilityIds.", "when calling error in AbilityIds, line 1") endif call TriggerClearConditions(initTrig) call TriggerAddCondition(initTrig, Condition(ref_function_init_Real)) if not TriggerEvaluate(initTrig) then call error("Could not initialize package Real.", "when calling error in Real, line 1") endif call TriggerClearConditions(initTrig) call TriggerAddCondition(initTrig, Condition(ref_function_init_Integer)) if not TriggerEvaluate(initTrig) then call error("Could not initialize package Integer.", "when calling error in Integer, line 1") endif call TriggerClearConditions(initTrig) call TriggerAddCondition(initTrig, Condition(ref_function_init_BitSet)) if not TriggerEvaluate(initTrig) then call error("Could not initialize package BitSet.", "when calling error in BitSet, line 1") endif call TriggerClearConditions(initTrig) call TriggerAddCondition(initTrig, Condition(ref_function_init_String)) if not TriggerEvaluate(initTrig) then call error("Could not initialize package String.", "when calling error in String, line 1") endif call TriggerClearConditions(initTrig) call TriggerAddCondition(initTrig, Condition(ref_function_init_TargetsAllowed)) if not TriggerEvaluate(initTrig) then call error("Could not initialize package TargetsAllowed.", "when calling error in TargetsAllowed, line 1") endif call TriggerClearConditions(initTrig) call TriggerAddCondition(initTrig, Condition(ref_function_init_Angle)) if not TriggerEvaluate(initTrig) then call error("Could not initialize package Angle.", "when calling error in Angle, line 1") endif call TriggerClearConditions(initTrig) call TriggerAddCondition(initTrig, Condition(ref_function_init_Vectors)) if not TriggerEvaluate(initTrig) then call error("Could not initialize package Vectors.", "when calling error in Vectors, line 1") endif call TriggerClearConditions(initTrig) call TriggerAddCondition(initTrig, Condition(ref_function_init_Destructable)) if not TriggerEvaluate(initTrig) then call error("Could not initialize package Destructable.", "when calling error in Destructable, line 1") endif call TriggerClearConditions(initTrig) call TriggerAddCondition(initTrig, Condition(ref_function_init_Player)) if not TriggerEvaluate(initTrig) then call error("Could not initialize package Player.", "when calling error in Player, line 1") endif call TriggerClearConditions(initTrig) call TriggerAddCondition(initTrig, Condition(ref_function_init_Maths)) if not TriggerEvaluate(initTrig) then call error("Could not initialize package Maths.", "when calling error in Maths, line 1") endif call TriggerClearConditions(initTrig) call TriggerAddCondition(initTrig, Condition(ref_function_init_Printing)) if not TriggerEvaluate(initTrig) then call error("Could not initialize package Printing.", "when calling error in Printing, line 1") endif call TriggerClearConditions(initTrig) call TriggerAddCondition(initTrig, Condition(ref_function_init_MagicFunctions)) if not TriggerEvaluate(initTrig) then call error("Could not initialize package MagicFunctions.", "when calling error in MagicFunctions, line 1") endif call TriggerClearConditions(initTrig) call TriggerAddCondition(initTrig, Condition(ref_function_init_Basics)) if not TriggerEvaluate(initTrig) then call error("Could not initialize package Basics.", "when calling error in Basics, line 1") endif call TriggerClearConditions(initTrig) call TriggerAddCondition(initTrig, Condition(ref_function_init_GameTimer)) if not TriggerEvaluate(initTrig) then call error("Could not initialize package GameTimer.", "when calling error in GameTimer, line 1") endif call TriggerClearConditions(initTrig) call TriggerAddCondition(initTrig, Condition(ref_function_init_ErrorHandling)) if not TriggerEvaluate(initTrig) then call error("Could not initialize package ErrorHandling.", "when calling error in ErrorHandling, line 1") endif call TriggerClearConditions(initTrig) call TriggerAddCondition(initTrig, Condition(ref_function_init_Matrices)) if not TriggerEvaluate(initTrig) then call error("Could not initialize package Matrices.", "when calling error in Matrices, line 1") endif call TriggerClearConditions(initTrig) call TriggerAddCondition(initTrig, Condition(ref_function_init_Quaternion)) if not TriggerEvaluate(initTrig) then call error("Could not initialize package Quaternion.", "when calling error in Quaternion, line 1") endif call TriggerClearConditions(initTrig) call TriggerAddCondition(initTrig, Condition(ref_function_init_Table)) if not TriggerEvaluate(initTrig) then call error("Could not initialize package Table.", "when calling error in Table, line 1") endif call TriggerClearConditions(initTrig) call TriggerAddCondition(initTrig, Condition(ref_function_init_Playercolor)) if not TriggerEvaluate(initTrig) then call error("Could not initialize package Playercolor.", "when calling error in Playercolor, line 1") endif call TriggerClearConditions(initTrig) call TriggerAddCondition(initTrig, Condition(ref_function_bridge_init_Colors)) if not TriggerEvaluate(initTrig) then call error("Could not initialize package Colors.", "when calling error in Colors, line 1") endif call TriggerClearConditions(initTrig) call TriggerAddCondition(initTrig, Condition(ref_function_bridge_init_Framehandle)) if not TriggerEvaluate(initTrig) then call error("Could not initialize package Framehandle.", "when calling error in Framehandle, line 1") endif call TriggerClearConditions(initTrig) call TriggerAddCondition(initTrig, Condition(ref_function_init_Group)) if not TriggerEvaluate(initTrig) then call error("Could not initialize package Group.", "when calling error in Group, line 1") endif call TriggerClearConditions(initTrig) call TriggerAddCondition(initTrig, Condition(ref_function_init_Lightning)) if not TriggerEvaluate(initTrig) then call error("Could not initialize package Lightning.", "when calling error in Lightning, line 1") endif call TriggerClearConditions(initTrig) call TriggerAddCondition(initTrig, Condition(ref_function_init_WeatherEffects)) if not TriggerEvaluate(initTrig) then call error("Could not initialize package WeatherEffects.", "when calling error in WeatherEffects, line 1") endif call TriggerClearConditions(initTrig) call TriggerAddCondition(initTrig, Condition(ref_function_bridge_init_TypeCasting)) if not TriggerEvaluate(initTrig) then call error("Could not initialize package TypeCasting.", "when calling error in TypeCasting, line 1") endif call TriggerClearConditions(initTrig) call TriggerAddCondition(initTrig, Condition(ref_function_init_HashList)) if not TriggerEvaluate(initTrig) then call error("Could not initialize package HashList.", "when calling error in HashList, line 1") endif call TriggerClearConditions(initTrig) call TriggerAddCondition(initTrig, Condition(ref_function_bridge_init_EventHelper)) if not TriggerEvaluate(initTrig) then call error("Could not initialize package EventHelper.", "when calling error in EventHelper, line 1") endif call TriggerClearConditions(initTrig) call TriggerAddCondition(initTrig, Condition(ref_function_init_AbilityObjEditing)) if not TriggerEvaluate(initTrig) then call error("Could not initialize package AbilityObjEditing.", "when calling error in AbilityObjEditing, line 1") endif call TriggerClearConditions(initTrig) call TriggerAddCondition(initTrig, Condition(ref_function_init_ClosureForGroups)) if not TriggerEvaluate(initTrig) then call error("Could not initialize package ClosureForGroups.", "when calling error in ClosureForGroups, line 1") endif call TriggerClearConditions(initTrig) call TriggerAddCondition(initTrig, Condition(ref_function_bridge_init_TimerUtils)) if not TriggerEvaluate(initTrig) then call error("Could not initialize package TimerUtils.", "when calling error in TimerUtils, line 1") endif call TriggerClearConditions(initTrig) call TriggerAddCondition(initTrig, Condition(ref_function_init_ClosureTimers)) if not TriggerEvaluate(initTrig) then call error("Could not initialize package ClosureTimers.", "when calling error in ClosureTimers, line 1") endif call TriggerClearConditions(initTrig) call TriggerAddCondition(initTrig, Condition(ref_function_init_MapBounds)) if not TriggerEvaluate(initTrig) then call error("Could not initialize package MapBounds.", "when calling error in MapBounds, line 1") endif call TriggerClearConditions(initTrig) call TriggerAddCondition(initTrig, Condition(ref_function_bridge_init_LinkedList)) if not TriggerEvaluate(initTrig) then call error("Could not initialize package LinkedList.", "when calling error in LinkedList, line 1") endif call TriggerClearConditions(initTrig) call TriggerAddCondition(initTrig, Condition(ref_function_init_ObjectIds)) if not TriggerEvaluate(initTrig) then call error("Could not initialize package ObjectIds.", "when calling error in ObjectIds, line 1") endif call TriggerClearConditions(initTrig) call TriggerAddCondition(initTrig, Condition(ref_function_init_UnitIds)) if not TriggerEvaluate(initTrig) then call error("Could not initialize package UnitIds.", "when calling error in UnitIds, line 1") endif call TriggerClearConditions(initTrig) call TriggerAddCondition(initTrig, Condition(ref_function_init_Icons)) if not TriggerEvaluate(initTrig) then call error("Could not initialize package Icons.", "when calling error in Icons, line 1") endif call TriggerClearConditions(initTrig) call TriggerAddCondition(initTrig, Condition(ref_function_bridge_init_Preloader)) if not TriggerEvaluate(initTrig) then call error("Could not initialize package Preloader.", "when calling error in Preloader, line 1") endif call TriggerClearConditions(initTrig) call TriggerAddCondition(initTrig, Condition(ref_function_bridge_init_ObjectIdGenerator)) if not TriggerEvaluate(initTrig) then call error("Could not initialize package ObjectIdGenerator.", "when calling error in ObjectIdGenerator, line 1") endif call TriggerClearConditions(initTrig) call TriggerAddCondition(initTrig, Condition(ref_function_bridge_init_DummyRecycler)) if not TriggerEvaluate(initTrig) then call error("Could not initialize package DummyRecycler.", "when calling error in DummyRecycler, line 1") endif call TriggerClearConditions(initTrig) call TriggerAddCondition(initTrig, Condition(ref_function_init_Terrain)) if not TriggerEvaluate(initTrig) then call error("Could not initialize package Terrain.", "when calling error in module.wurst, line 425") endif call TriggerClearConditions(initTrig) call TriggerAddCondition(initTrig, Condition(ref_function_bridge_init_Entity)) if not TriggerEvaluate(initTrig) then call error("Could not initialize package Entity.", "when calling error in module.wurst, line 117") endif call TriggerClearConditions(initTrig) call TriggerAddCondition(initTrig, Condition(ref_function_init_TimedLoop)) if not TriggerEvaluate(initTrig) then call error("Could not initialize package TimedLoop.", "when calling error in module.wurst, line 347") endif call TriggerClearConditions(initTrig) call TriggerAddCondition(initTrig, Condition(ref_function_init_SpellEnergyBarrier)) if not TriggerEvaluate(initTrig) then call error("Could not initialize package SpellEnergyBarrier.", "when calling error in module.wurst, line 73") endif call TriggerClearConditions(initTrig) call DestroyTrigger(initTrig) endfunction function config takes nothing returns nothing endfunction