// 1 "runtime/convert.j" // 1 "" // 1 "" // 31 "" // 1 "/usr/include/stdc-predef.h" 1 3 4 // 32 "" 2 // 1 "runtime/convert.j" globals integer array JHCR_Convert_toTypeOffset endglobals function JHCR_Convert_convert takes integer JHCR_Convert_toType,integer JHCR_Convert_toReg,integer JHCR_Convert_fromType,integer JHCR_Convert_fromReg,integer JHCR_Convert_ctx returns nothing set JHCR_Convert_toType = JHCR_Convert_toTypeOffset [JHCR_Convert_toType] if (JHCR_Convert_toType < 5) then if (JHCR_Convert_toType < 3) then if (JHCR_Convert_toType < 2) then if (JHCR_Convert_fromType < 49) then if (JHCR_Convert_fromType < 25) then if (JHCR_Convert_fromType < 13) then if (JHCR_Convert_fromType < 7) then if (JHCR_Convert_fromType < 4) then if (JHCR_Convert_fromType < 3) then call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_agent (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_event (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) endif else if (JHCR_Convert_fromType < 5) then call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_player (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else if (JHCR_Convert_fromType < 6) then call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_widget (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_unit (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) endif endif endif else if (JHCR_Convert_fromType < 10) then if (JHCR_Convert_fromType < 8) then call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_destructable (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else if (JHCR_Convert_fromType < 9) then call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_item (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_ability (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) endif endif else if (JHCR_Convert_fromType < 11) then call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_buff (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else if (JHCR_Convert_fromType < 12) then call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_force (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_group (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) endif endif endif endif else if (JHCR_Convert_fromType < 19) then if (JHCR_Convert_fromType < 16) then if (JHCR_Convert_fromType < 14) then call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_trigger (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else if (JHCR_Convert_fromType < 15) then call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_triggercondition (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_timer (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) endif endif else if (JHCR_Convert_fromType < 17) then call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_location (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else if (JHCR_Convert_fromType < 18) then call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_region (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_rect (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) endif endif endif else if (JHCR_Convert_fromType < 22) then if (JHCR_Convert_fromType < 20) then call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_boolexpr (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else if (JHCR_Convert_fromType < 21) then call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_conditionfunc (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_filterfunc (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) endif endif else if (JHCR_Convert_fromType < 23) then call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_sound (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else if (JHCR_Convert_fromType < 24) then call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_effect (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_fogmodifier (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) endif endif endif endif endif else if (JHCR_Convert_fromType < 37) then if (JHCR_Convert_fromType < 31) then if (JHCR_Convert_fromType < 28) then if (JHCR_Convert_fromType < 26) then call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_dialog (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else if (JHCR_Convert_fromType < 27) then call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_button (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_quest (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) endif endif else if (JHCR_Convert_fromType < 29) then call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_questitem (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else if (JHCR_Convert_fromType < 30) then call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_defeatcondition (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_timerdialog (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) endif endif endif else if (JHCR_Convert_fromType < 34) then if (JHCR_Convert_fromType < 32) then call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_leaderboard (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else if (JHCR_Convert_fromType < 33) then call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_multiboard (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_multiboarditem (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) endif endif else if (JHCR_Convert_fromType < 35) then call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_trackable (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else if (JHCR_Convert_fromType < 36) then call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_gamecache (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_hashtable (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) endif endif endif endif else if (JHCR_Convert_fromType < 43) then if (JHCR_Convert_fromType < 40) then if (JHCR_Convert_fromType < 38) then call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_triggeraction (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else if (JHCR_Convert_fromType < 39) then call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_unitpool (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_itempool (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) endif endif else if (JHCR_Convert_fromType < 41) then call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_race (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else if (JHCR_Convert_fromType < 42) then call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_alliancetype (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_racepreference (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) endif endif endif else if (JHCR_Convert_fromType < 46) then if (JHCR_Convert_fromType < 44) then call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_gamestate (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else if (JHCR_Convert_fromType < 45) then call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_igamestate (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_fgamestate (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) endif endif else if (JHCR_Convert_fromType < 47) then call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_playerstate (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else if (JHCR_Convert_fromType < 48) then call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_playerscore (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_playergameresult (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) endif endif endif endif endif endif else if (JHCR_Convert_fromType < 72) then if (JHCR_Convert_fromType < 60) then if (JHCR_Convert_fromType < 54) then if (JHCR_Convert_fromType < 51) then if (JHCR_Convert_fromType < 50) then call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_unitstate (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_aidifficulty (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) endif else if (JHCR_Convert_fromType < 52) then call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_eventid (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else if (JHCR_Convert_fromType < 53) then call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_gameevent (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_playerevent (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) endif endif endif else if (JHCR_Convert_fromType < 57) then if (JHCR_Convert_fromType < 55) then call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_playerunitevent (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else if (JHCR_Convert_fromType < 56) then call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_unitevent (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_limitop (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) endif endif else if (JHCR_Convert_fromType < 58) then call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_widgetevent (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else if (JHCR_Convert_fromType < 59) then call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_dialogevent (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_unittype (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) endif endif endif endif else if (JHCR_Convert_fromType < 66) then if (JHCR_Convert_fromType < 63) then if (JHCR_Convert_fromType < 61) then call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_gamespeed (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else if (JHCR_Convert_fromType < 62) then call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_gamedifficulty (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_gametype (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) endif endif else if (JHCR_Convert_fromType < 64) then call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_mapflag (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else if (JHCR_Convert_fromType < 65) then call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_mapvisibility (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_mapsetting (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) endif endif endif else if (JHCR_Convert_fromType < 69) then if (JHCR_Convert_fromType < 67) then call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_mapdensity (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else if (JHCR_Convert_fromType < 68) then call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_mapcontrol (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_playerslotstate (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) endif endif else if (JHCR_Convert_fromType < 70) then call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_volumegroup (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else if (JHCR_Convert_fromType < 71) then call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_camerafield (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_camerasetup (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) endif endif endif endif endif else if (JHCR_Convert_fromType < 84) then if (JHCR_Convert_fromType < 78) then if (JHCR_Convert_fromType < 75) then if (JHCR_Convert_fromType < 73) then call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_playercolor (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else if (JHCR_Convert_fromType < 74) then call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_placement (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_startlocprio (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) endif endif else if (JHCR_Convert_fromType < 76) then call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_raritycontrol (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else if (JHCR_Convert_fromType < 77) then call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_blendmode (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_texmapflags (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) endif endif endif else if (JHCR_Convert_fromType < 81) then if (JHCR_Convert_fromType < 79) then call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_effecttype (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else if (JHCR_Convert_fromType < 80) then call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_weathereffect (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_terraindeformation (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) endif endif else if (JHCR_Convert_fromType < 82) then call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_fogstate (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else if (JHCR_Convert_fromType < 83) then call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_version (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_itemtype (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) endif endif endif endif else if (JHCR_Convert_fromType < 90) then if (JHCR_Convert_fromType < 87) then if (JHCR_Convert_fromType < 85) then call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_texttag (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else if (JHCR_Convert_fromType < 86) then call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_attacktype (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_damagetype (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) endif endif else if (JHCR_Convert_fromType < 88) then call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_weapontype (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else if (JHCR_Convert_fromType < 89) then call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_soundtype (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_lightning (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) endif endif endif else if (JHCR_Convert_fromType < 93) then if (JHCR_Convert_fromType < 91) then call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_pathingtype (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else if (JHCR_Convert_fromType < 92) then call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_mousebuttontype (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_animtype (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) endif endif else if (JHCR_Convert_fromType < 94) then call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_subanimtype (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else if (JHCR_Convert_fromType < 95) then call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_image (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else call JHCR_Table_set_handle (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_ubersplat (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) endif endif endif endif endif endif endif else if (JHCR_Convert_fromType < 20) then if (JHCR_Convert_fromType < 11) then if (JHCR_Convert_fromType < 7) then if (JHCR_Convert_fromType < 5) then if (JHCR_Convert_fromType < 4) then call JHCR_Table_set_agent (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_event (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else call JHCR_Table_set_agent (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_player (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) endif else if (JHCR_Convert_fromType < 6) then call JHCR_Table_set_agent (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_widget (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else call JHCR_Table_set_agent (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_unit (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) endif endif else if (JHCR_Convert_fromType < 9) then if (JHCR_Convert_fromType < 8) then call JHCR_Table_set_agent (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_destructable (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else call JHCR_Table_set_agent (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_item (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) endif else if (JHCR_Convert_fromType < 10) then call JHCR_Table_set_agent (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_ability (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else call JHCR_Table_set_agent (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_buff (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) endif endif endif else if (JHCR_Convert_fromType < 15) then if (JHCR_Convert_fromType < 13) then if (JHCR_Convert_fromType < 12) then call JHCR_Table_set_agent (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_force (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else call JHCR_Table_set_agent (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_group (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) endif else if (JHCR_Convert_fromType < 14) then call JHCR_Table_set_agent (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_trigger (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else call JHCR_Table_set_agent (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_triggercondition (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) endif endif else if (JHCR_Convert_fromType < 17) then if (JHCR_Convert_fromType < 16) then call JHCR_Table_set_agent (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_timer (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else call JHCR_Table_set_agent (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_location (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) endif else if (JHCR_Convert_fromType < 18) then call JHCR_Table_set_agent (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_region (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else if (JHCR_Convert_fromType < 19) then call JHCR_Table_set_agent (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_rect (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else call JHCR_Table_set_agent (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_boolexpr (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) endif endif endif endif endif else if (JHCR_Convert_fromType < 28) then if (JHCR_Convert_fromType < 24) then if (JHCR_Convert_fromType < 22) then if (JHCR_Convert_fromType < 21) then call JHCR_Table_set_agent (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_conditionfunc (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else call JHCR_Table_set_agent (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_filterfunc (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) endif else if (JHCR_Convert_fromType < 23) then call JHCR_Table_set_agent (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_sound (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else call JHCR_Table_set_agent (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_effect (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) endif endif else if (JHCR_Convert_fromType < 26) then if (JHCR_Convert_fromType < 25) then call JHCR_Table_set_agent (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_fogmodifier (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else call JHCR_Table_set_agent (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_dialog (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) endif else if (JHCR_Convert_fromType < 27) then call JHCR_Table_set_agent (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_button (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else call JHCR_Table_set_agent (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_quest (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) endif endif endif else if (JHCR_Convert_fromType < 32) then if (JHCR_Convert_fromType < 30) then if (JHCR_Convert_fromType < 29) then call JHCR_Table_set_agent (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_questitem (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else call JHCR_Table_set_agent (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_defeatcondition (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) endif else if (JHCR_Convert_fromType < 31) then call JHCR_Table_set_agent (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_timerdialog (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else call JHCR_Table_set_agent (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_leaderboard (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) endif endif else if (JHCR_Convert_fromType < 34) then if (JHCR_Convert_fromType < 33) then call JHCR_Table_set_agent (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_multiboard (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else call JHCR_Table_set_agent (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_multiboarditem (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) endif else if (JHCR_Convert_fromType < 35) then call JHCR_Table_set_agent (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_trackable (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else if (JHCR_Convert_fromType < 36) then call JHCR_Table_set_agent (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_gamecache (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else call JHCR_Table_set_agent (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_hashtable (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) endif endif endif endif endif endif endif else if (JHCR_Convert_toType < 4) then if (JHCR_Convert_fromType < 7) then call JHCR_Table_set_widget (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_unit (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else if (JHCR_Convert_fromType < 8) then call JHCR_Table_set_widget (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_destructable (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else call JHCR_Table_set_widget (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_item (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) endif endif else call JHCR_Table_set_ability (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_buff (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) endif endif else if (JHCR_Convert_toType < 7) then if (JHCR_Convert_toType < 6) then if (JHCR_Convert_fromType < 21) then call JHCR_Table_set_boolexpr (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_conditionfunc (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else call JHCR_Table_set_boolexpr (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_filterfunc (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) endif else if (JHCR_Convert_fromType < 45) then call JHCR_Table_set_gamestate (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_igamestate (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else call JHCR_Table_set_gamestate (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_fgamestate (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) endif endif else if (JHCR_Convert_toType < 8) then if (JHCR_Convert_fromType < 55) then if (JHCR_Convert_fromType < 53) then call JHCR_Table_set_eventid (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_gameevent (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else if (JHCR_Convert_fromType < 54) then call JHCR_Table_set_eventid (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_playerevent (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else call JHCR_Table_set_eventid (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_playerunitevent (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) endif endif else if (JHCR_Convert_fromType < 57) then if (JHCR_Convert_fromType < 56) then call JHCR_Table_set_eventid (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_unitevent (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else call JHCR_Table_set_eventid (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_limitop (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) endif else if (JHCR_Convert_fromType < 58) then call JHCR_Table_set_eventid (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_widgetevent (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) else call JHCR_Table_set_eventid (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_dialogevent (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) endif endif endif else call JHCR_Table_set_real (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_toReg,JHCR_Table_get_integer (JHCR_Context_locals[JHCR_Convert_ctx],JHCR_Convert_fromReg)) endif endif endif endfunction function JHCR_Convert_init takes nothing returns nothing set JHCR_Convert_toTypeOffset [1] = 1 set JHCR_Convert_toTypeOffset [2] = 2 set JHCR_Convert_toTypeOffset [5] = 3 set JHCR_Convert_toTypeOffset [9] = 4 set JHCR_Convert_toTypeOffset [19] = 5 set JHCR_Convert_toTypeOffset [43] = 6 set JHCR_Convert_toTypeOffset [51] = 7 set JHCR_Convert_toTypeOffset [96] = 8 endfunction