// this script was compiled with wurst 1.8.1.0-jenkins-Wurst-1365 globals integer array test_lastClicks_middle_x integer array test_lastClicks_middle_y integer int_getLastClick_return_x=0 integer int_getLastClick_return_y=0 endglobals native testSuccess takes nothing returns nothing function initGlobals takes nothing returns nothing endfunction function getId takes integer i returns integer return 0 endfunction function int_getLastClick takes integer this returns integer local integer tempIndex = getId(this) set int_getLastClick_return_x = test_lastClicks_middle_x[tempIndex] set int_getLastClick_return_y = test_lastClicks_middle_y[tempIndex] return int_getLastClick_return_x endfunction function init_test takes nothing returns nothing local integer tuple_temp = 3 local integer tuple_temp_1 = 4 local integer p set test_lastClicks_middle_x[0] = tuple_temp set test_lastClicks_middle_y[0] = tuple_temp_1 set p = 0 if int_getLastClick(p) == 3 and int_getLastClick_return_y == 4 then call testSuccess() endif endfunction function main takes nothing returns nothing call initGlobals() call init_test() endfunction function config takes nothing returns nothing endfunction