// this script was compiled with wurst 1.8.1.0-jenkins-Wurst-1366 globals integer Test_test_x=0 integer array Test_B_nextFree integer Test_B_firstFree=0 integer array Test_B_typeId integer array Test_B_y endglobals native testSuccess takes nothing returns nothing function initGlobals takes nothing returns nothing endfunction function destroyA takes integer this0 returns nothing set Test_test_x = Test_test_x + Test_B_y[this0] set Test_test_x = Test_test_x * Test_B_y[this0] if Test_B_typeId[this0] == 0 then else set Test_B_nextFree[Test_B_firstFree] = this0 set Test_B_firstFree = Test_B_firstFree + 1 set Test_B_typeId[this0] = 0 if Test_B_nextFree[Test_B_firstFree - 1] == 42 then call testSuccess() endif endif endfunction function init_Test takes nothing returns nothing set Test_B_typeId[42] = 1 call destroyA(42) endfunction function main takes nothing returns nothing call initGlobals() call init_Test() endfunction function config takes nothing returns nothing endfunction