# ProgressActivity_Model_ProgressActivityDefinition_964.luac
; fn @ProgressActivityDefinition.lua  line 0-0 np=0 va=1 ms=9 code=49 consts=24 upvals=1 protos=1
;   K[0]='ProgressActivityDefinition'
;   K[1]='ActivityType'
;   K[2]='ProgressActivity1'
;   K[3]='NoticeWindowPrefabName'
;   K[4]='UIPrefabConfigName'
;   K[5]='ProgressActivity1NoticeWindow'
;   K[6]='RewardProgressWindowPrefabName'
;   K[7]='ProgressActivity1RewardProgressWindow'
;   K[8]='ActivityTokenIconNameBig'
;   K[9]='ImageFileConfigName'
;   K[10]='icon_ball'
;   K[11]='TutorialStartCondition'
;   K[12]='ETutorialStartCondition'
;   K[13]='ProgressStart'
;   K[14]='WindowDescKey'
;   K[15]='progress_ball_desc'
;   K[16]='ProgressActivity2'
;   K[17]='icon_swimming'
;   K[18]='pairs'
;   K[19]='ProgressActivityDefinition'
;   K[20]='EPropertySprite'
;   K[21]='ActivityTokenPropertyType'
;   K[22]='ActivityTokenIconName'
;   K[23]='EPropertySpriteBig'
;   upvals: _ENV
;   locals: CreateActivityDefinition(3-49), (for generator)(34-48), (for state)(34-48), (for control)(34-48), activityType(35-46), activityDefinition(35-46)
0000  NEWTABLE  R0 = {} (0 items)
0001  SETTABUP  _ENV[K0('ProgressActivityDefinition')] = R0
0002  CLOSURE   R0 = closure proto0
0003  MOVE      R1 = R0
0004  GETTABUP  R2 = _ENV[K1('ActivityType')]
0005  GETTABLE  R2 = R2[K2('ProgressActivity1')]
0006  LOADK     R3 = K2 'ProgressActivity1'
0007  NEWTABLE  R4 = {} (0 items)
0008  GETTABUP  R5 = _ENV[K4('UIPrefabConfigName')]
0009  GETTABLE  R5 = R5[K5('ProgressActivity1NoticeWindow')]
0010  SETTABLE  R4[K3('NoticeWindowPrefabName')] = R5
0011  GETTABUP  R5 = _ENV[K4('UIPrefabConfigName')]
0012  GETTABLE  R5 = R5[K7('ProgressActivity1RewardProgressWindow')]
0013  SETTABLE  R4[K6('RewardProgressWindowPrefabName')] = R5
0014  GETTABUP  R5 = _ENV[K9('ImageFileConfigName')]
0015  GETTABLE  R5 = R5[K10('icon_ball')]
0016  SETTABLE  R4[K8('ActivityTokenIconNameBig')] = R5
0017  GETTABUP  R5 = _ENV[K12('ETutorialStartCondition')]
0018  GETTABLE  R5 = R5[K13('ProgressStart')]
0019  SETTABLE  R4[K11('TutorialStartCondition')] = R5
0020  SETTABLE  R4[K14('WindowDescKey')] = K15('progress_ball_desc')
0021  CALL      R1 = call(R1, 0 args, 3 rets)
0022  MOVE      R1 = R0
0023  GETTABUP  R2 = _ENV[K1('ActivityType')]
0024  GETTABLE  R2 = R2[K16('ProgressActivity2')]
0025  LOADK     R3 = K16 'ProgressActivity2'
0026  NEWTABLE  R4 = {} (0 items)
0027  GETTABUP  R5 = _ENV[K9('ImageFileConfigName')]
0028  GETTABLE  R5 = R5[K17('icon_swimming')]
0029  SETTABLE  R4[K8('ActivityTokenIconNameBig')] = R5
0030  CALL      R1 = call(R1, 0 args, 3 rets)
0031  GETTABUP  R1 = _ENV[K18('pairs')]
0032  GETTABUP  R2 = _ENV[K19('ProgressActivityDefinition')]
0033  CALL      R1 = call(R1, 3 args, 1 rets)
0034  JMP       (jump)   -> 46
0035  GETTABUP  R6 = _ENV[K20('EPropertySprite')]
0036  GETTABLE  R7 = R5[K21('ActivityTokenPropertyType')]
0037  GETTABLE  R8 = R5[K22('ActivityTokenIconName')]
0038  SETTABLE  R6[R7] = R8
0039  GETTABUP  R6 = _ENV[K23('EPropertySpriteBig')]
0040  GETTABLE  R7 = R5[K21('ActivityTokenPropertyType')]
0041  GETTABLE  R8 = R5[K8('ActivityTokenIconNameBig')]
0042  TEST      if not R8 then   -> -131027
0043  JMP       (jump)   -> 45
0044  GETTABLE  R8 = R5[K22('ActivityTokenIconName')]
0045  SETTABLE  R6[R7] = R8
0046  TFORCALL  tforcall R1
0047  TFORLOOP  tforloop R3(sBx=-13)   -> 35
0048  RETURN    return R0..R-1
; ---------- proto0 [] ----------
  ; fn ?  line 3-35 np=3 va=0 ms=8 code=98 consts=39 upvals=1 protos=0
  ;   K[0]='EntryButtonKey'
  ;   K[1]='ESceneViewHudButtonKey'
  ;   K[2]='ActivityDataTableName'
  ;   K[3]='VirtualDBTableName'
  ;   K[4]='ActivityTokenPropertyType'
  ;   K[5]='EPropertyType'
  ;   K[6]='StateChangedEvent'
  ;   K[7]='EEventType'
  ;   K[8]='StateChanged'
  ;   K[9]='ScoreChangedEvent'
  ;   K[10]='ScoreChanged'
  ;   K[11]='LevelChangedEvent'
  ;   K[12]='LevelChanged'
  ;   K[13]='GetRewardsBIType'
  ;   K[14]='EBIType'
  ;   K[15]='GetRewards'
  ;   K[16]='GetScoreBIType'
  ;   K[17]='GetScore'
  ;   K[18]='EntryPrefabName'
  ;   K[19]='UIPrefabConfigName'
  ;   K[20]='Entry'
  ;   K[21]='BoardEntryPrefabName'
  ;   K[22]='BoardEntry'
  ;   K[23]='FinishFailWindowPrefabName'
  ;   K[24]='FinishFailWindow'
  ;   K[25]='FinishSuccessWindowPrefabName'
  ;   K[26]='FinishSuccessWindow'
  ;   K[27]='MainWindowPrefabName'
  ;   K[28]='MainWindow'
  ;   K[29]='ActivityTokenIconName'
  ;   K[30]='ImageFileConfigName'
  ;   K[31]='_token_icon'
  ;   K[32]='ResourceLabels'
  ;   K[33]='AddressableLabel'
  ;   K[34]='WindowDescKey'
  ;   K[35]='_desc'
  ;   K[36]='__index'
  ;   K[37]='ProgressActivityDefinition'
  ;   K[38]='setmetatable'
  ;   upvals: _ENV
  ;   locals: activityType(0-98), prefix(0-98), overrideTable(0-98), BaseTable(85-98)
  0000  NEWTABLE  R3 = {} (0 items)
  0001  GETTABUP  R4 = _ENV[K1('ESceneViewHudButtonKey')]
  0002  GETTABLE  R4 = R4[R1]
  0003  SETTABLE  R3[K0('EntryButtonKey')] = R4
  0004  GETTABUP  R4 = _ENV[K3('VirtualDBTableName')]
  0005  GETTABLE  R4 = R4[R1]
  0006  SETTABLE  R3[K2('ActivityDataTableName')] = R4
  0007  GETTABUP  R4 = _ENV[K5('EPropertyType')]
  0008  GETTABLE  R4 = R4[R1]
  0009  SETTABLE  R3[K4('ActivityTokenPropertyType')] = R4
  0010  GETTABUP  R4 = _ENV[K7('EEventType')]
  0011  MOVE      R5 = R0
  0012  LOADK     R6 = K8 'StateChanged'
  0013  CONCAT    R5 = concat(R5..R5)
  0014  GETTABLE  R4 = R4[R5]
  0015  SETTABLE  R3[K6('StateChangedEvent')] = R4
  0016  GETTABUP  R4 = _ENV[K7('EEventType')]
  0017  MOVE      R5 = R0
  0018  LOADK     R6 = K10 'ScoreChanged'
  0019  CONCAT    R5 = concat(R5..R5)
  0020  GETTABLE  R4 = R4[R5]
  0021  SETTABLE  R3[K9('ScoreChangedEvent')] = R4
  0022  GETTABUP  R4 = _ENV[K7('EEventType')]
  0023  MOVE      R5 = R0
  0024  LOADK     R6 = K12 'LevelChanged'
  0025  CONCAT    R5 = concat(R5..R5)
  0026  GETTABLE  R4 = R4[R5]
  0027  SETTABLE  R3[K11('LevelChangedEvent')] = R4
  0028  GETTABUP  R4 = _ENV[K14('EBIType')]
  0029  MOVE      R5 = R0
  0030  LOADK     R6 = K15 'GetRewards'
  0031  CONCAT    R5 = concat(R5..R5)
  0032  GETTABLE  R4 = R4[R5]
  0033  SETTABLE  R3[K13('GetRewardsBIType')] = R4
  0034  GETTABUP  R4 = _ENV[K14('EBIType')]
  0035  MOVE      R5 = R0
  0036  LOADK     R6 = K17 'GetScore'
  0037  CONCAT    R5 = concat(R5..R5)
  0038  GETTABLE  R4 = R4[R5]
  0039  SETTABLE  R3[K16('GetScoreBIType')] = R4
  0040  GETTABUP  R4 = _ENV[K19('UIPrefabConfigName')]
  0041  MOVE      R5 = R0
  0042  LOADK     R6 = K20 'Entry'
  0043  CONCAT    R5 = concat(R5..R5)
  0044  GETTABLE  R4 = R4[R5]
  0045  SETTABLE  R3[K18('EntryPrefabName')] = R4
  0046  GETTABUP  R4 = _ENV[K19('UIPrefabConfigName')]
  0047  MOVE      R5 = R0
  0048  LOADK     R6 = K22 'BoardEntry'
  0049  CONCAT    R5 = concat(R5..R5)
  0050  GETTABLE  R4 = R4[R5]
  0051  SETTABLE  R3[K21('BoardEntryPrefabName')] = R4
  0052  GETTABUP  R4 = _ENV[K19('UIPrefabConfigName')]
  0053  MOVE      R5 = R0
  0054  LOADK     R6 = K24 'FinishFailWindow'
  0055  CONCAT    R5 = concat(R5..R5)
  0056  GETTABLE  R4 = R4[R5]
  0057  SETTABLE  R3[K23('FinishFailWindowPrefabName')] = R4
  0058  GETTABUP  R4 = _ENV[K19('UIPrefabConfigName')]
  0059  MOVE      R5 = R0
  0060  LOADK     R6 = K26 'FinishSuccessWindow'
  0061  CONCAT    R5 = concat(R5..R5)
  0062  GETTABLE  R4 = R4[R5]
  0063  SETTABLE  R3[K25('FinishSuccessWindowPrefabName')] = R4
  0064  GETTABUP  R4 = _ENV[K19('UIPrefabConfigName')]
  0065  MOVE      R5 = R0
  0066  LOADK     R6 = K28 'MainWindow'
  0067  CONCAT    R5 = concat(R5..R5)
  0068  GETTABLE  R4 = R4[R5]
  0069  SETTABLE  R3[K27('MainWindowPrefabName')] = R4
  0070  GETTABUP  R4 = _ENV[K30('ImageFileConfigName')]
  0071  MOVE      R5 = R0
  0072  LOADK     R6 = K31 '_token_icon'
  0073  CONCAT    R5 = concat(R5..R5)
  0074  GETTABLE  R4 = R4[R5]
  0075  SETTABLE  R3[K29('ActivityTokenIconName')] = R4
  0076  NEWTABLE  R4 = {} (1 items)
  0077  GETTABUP  R5 = _ENV[K33('AddressableLabel')]
  0078  GETTABLE  R5 = R5[R1]
  0079  SETLIST   setlist R4[B=1,C=1]
  0080  SETTABLE  R3[K32('ResourceLabels')] = R4
  0081  MOVE      R4 = R0
  0082  LOADK     R5 = K35 '_desc'
  0083  CONCAT    R4 = concat(R4..R4)
  0084  SETTABLE  R3[K34('WindowDescKey')] = R4
  0085  SETTABLE  R3[K36('__index')] = R3
  0086  GETTABUP  R4 = _ENV[K37('ProgressActivityDefinition')]
  0087  GETTABUP  R5 = _ENV[K38('setmetatable')]
  0088  MOVE      R6 = R0
  0089  MOVE      R7 = R0
  0090  CALL      R5 = call(R5, 1 args, 2 rets)
  0091  SETTABLE  R4[R0] = R5
  0092  GETTABUP  R4 = _ENV[K37('ProgressActivityDefinition')]
  0093  GETTABLE  R4 = R4[R0]
  0094  GETTABUP  R5 = _ENV[K37('ProgressActivityDefinition')]
  0095  GETTABLE  R5 = R5[R0]
  0096  SETTABLE  R4[K36('__index')] = R5
  0097  RETURN    return R0..R-1
