// this script was compiled with wurst 1.8.1.0-jenkins-Wurst-1365 globals integer array CallbackPeriodic_nextFree integer CallbackPeriodic_firstFree=0 integer CallbackPeriodic_maxIndex=0 integer array CallbackPeriodic_typeId code ref_function_CallbackPeriodic_staticCallback=null endglobals native blub takes code c returns nothing function CallbackPeriodic_staticCallback takes nothing returns nothing endfunction function initGlobals takes nothing returns nothing set ref_function_CallbackPeriodic_staticCallback = function CallbackPeriodic_staticCallback endfunction function error takes string msg returns nothing call BJDebugMsg(msg + "\n" + "") endfunction function init_Hello takes nothing returns nothing local integer this if CallbackPeriodic_firstFree == 0 then if CallbackPeriodic_maxIndex < 32768 then set CallbackPeriodic_maxIndex = CallbackPeriodic_maxIndex + 1 set this = CallbackPeriodic_maxIndex set CallbackPeriodic_typeId[this] = 2 else call error("Out of memory: Could not create CallbackPeriodic_doPeriodically_Hello.") set this = 0 endif else set CallbackPeriodic_firstFree = CallbackPeriodic_firstFree - 1 set this = CallbackPeriodic_nextFree[CallbackPeriodic_firstFree] set CallbackPeriodic_typeId[this] = 2 endif if CallbackPeriodic_typeId[this] == 0 then if this == 0 then call error("Nullpointer exception when calling CallbackPeriodic.start") else call error("Called CallbackPeriodic.start on invalid object.") endif endif call blub(ref_function_CallbackPeriodic_staticCallback) endfunction function main takes nothing returns nothing call initGlobals() call init_Hello() endfunction function config takes nothing returns nothing endfunction