# ProgressActivity_View_ProgressActivityBoardEntry_982.luac
; fn @ProgressActivityBoardEntry.lua  line 0-0 np=0 va=1 ms=2 code=21 consts=7 upvals=1 protos=5
;   K[0]='ProgressActivityBoardEntry'
;   K[1]='__index'
;   K[2]='Init'
;   K[3]='OnEnable'
;   K[4]='UpdatePerSecond'
;   K[5]='OnBtnClicked'
;   K[6]='GetIconArea'
;   upvals: _ENV
0000  NEWTABLE  R0 = {} (0 items)
0001  SETTABUP  _ENV[K0('ProgressActivityBoardEntry')] = R0
0002  GETTABUP  R0 = _ENV[K0('ProgressActivityBoardEntry')]
0003  GETTABUP  R1 = _ENV[K0('ProgressActivityBoardEntry')]
0004  SETTABLE  R0[K1('__index')] = R1
0005  GETTABUP  R0 = _ENV[K0('ProgressActivityBoardEntry')]
0006  CLOSURE   R1 = closure proto0
0007  SETTABLE  R0[K2('Init')] = R1
0008  GETTABUP  R0 = _ENV[K0('ProgressActivityBoardEntry')]
0009  CLOSURE   R1 = closure proto1
0010  SETTABLE  R0[K3('OnEnable')] = R1
0011  GETTABUP  R0 = _ENV[K0('ProgressActivityBoardEntry')]
0012  CLOSURE   R1 = closure proto2
0013  SETTABLE  R0[K4('UpdatePerSecond')] = R1
0014  GETTABUP  R0 = _ENV[K0('ProgressActivityBoardEntry')]
0015  CLOSURE   R1 = closure proto3
0016  SETTABLE  R0[K5('OnBtnClicked')] = R1
0017  GETTABUP  R0 = _ENV[K0('ProgressActivityBoardEntry')]
0018  CLOSURE   R1 = closure proto4
0019  SETTABLE  R0[K6('GetIconArea')] = R1
0020  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 4-14 np=3 va=0 ms=6 code=20 consts=10 upvals=1 protos=0
  ;   K[0]='m_model'
  ;   K[1]='m_activityType'
  ;   K[2]='GetType'
  ;   K[3]='m_activityDefinition'
  ;   K[4]='ProgressActivityDefinition'
  ;   K[5]='m_orderArea'
  ;   K[6]='m_iconArea'
  ;   K[7]='Init'
  ;   K[8]='SetInBoardView'
  ;   K[9]='UpdatePerSecond'
  ;   upvals: _ENV
  ;   locals: self(0-20), model(0-20), orderArea(0-20)
  0000  SETTABLE  R0[K0('m_model')] = R1
  0001  GETTABLE  R3 = R0[K0('m_model')]
  0002  SELF      R4 = R3[K2('GetType')] (self)
  0003  CALL      R3 = call(R3, 1 args, 1 rets)
  0004  SETTABLE  R0[K1('m_activityType')] = R3
  0005  GETTABUP  R3 = _ENV[K4('ProgressActivityDefinition')]
  0006  GETTABLE  R4 = R0[K1('m_activityType')]
  0007  GETTABLE  R3 = R3[R4]
  0008  SETTABLE  R0[K3('m_activityDefinition')] = R3
  0009  SETTABLE  R0[K5('m_orderArea')] = R2
  0010  GETTABLE  R3 = R0[K6('m_iconArea')]
  0011  SELF      R4 = R3[K7('Init')] (self)
  0012  GETTABLE  R5 = R0[K1('m_activityType')]
  0013  CALL      R3 = call(R3, 0 args, 2 rets)
  0014  GETTABLE  R3 = R0[K6('m_iconArea')]
  0015  SELF      R4 = R3[K8('SetInBoardView')] (self)
  0016  CALL      R3 = call(R3, 0 args, 1 rets)
  0017  SELF      R4 = R0[K9('UpdatePerSecond')] (self)
  0018  CALL      R3 = call(R3, 0 args, 1 rets)
  0019  RETURN    return R0..R-1
; ---------- proto1 [OnEnable] ----------
  ; fn ?  line 16-18 np=1 va=0 ms=3 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='UpdatePerSecond'
  ;   locals: self(0-3)
  0000  SELF      R2 = R0[K0('UpdatePerSecond')] (self)
  0001  CALL      R1 = call(R1, 0 args, 1 rets)
  0002  RETURN    return R0..R-1
; ---------- proto2 [UpdatePerSecond] ----------
  ; fn ?  line 20-32 np=1 va=0 ms=9 code=45 consts=18 upvals=1 protos=0
  ;   K[0]='m_model'
  ;   K[1]=nil
  ;   K[2]='GetNextStateTime'
  ;   K[3]='HasFinishedAllLevel'
  ;   K[4]='GetState'
  ;   K[5]='ActivityState'
  ;   K[6]='Ended'
  ;   K[7]='m_countDownText'
  ;   K[8]='text'
  ;   K[9]='GM'
  ;   K[10]='GameTextModel'
  ;   K[11]='GetText'
  ;   K[12]='countdown_finished'
  ;   K[13]='GameModel'
  ;   K[14]='GetServerTime'
  ;   K[15]='TimeUtil'
  ;   K[16]='ParseTimeDescription'
  ;   K[17]=2
  ;   upvals: _ENV
  ;   locals: self(0-45), nextTime(7-45), delta(35-44)
  0000  GETTABLE  R1 = R0[K0('m_model')]
  0001  EQ        if R0 eq K1(nil)   -> -130300
  0002  JMP       (jump)   -> 4
  0003  RETURN    return R0..R-1
  0004  GETTABLE  R1 = R0[K0('m_model')]
  0005  SELF      R2 = R1[K2('GetNextStateTime')] (self)
  0006  CALL      R1 = call(R1, 1 args, 1 rets)
  0007  GETTABLE  R2 = R0[K0('m_model')]
  0008  SELF      R3 = R2[K3('HasFinishedAllLevel')] (self)
  0009  CALL      R2 = call(R2, 1 args, 1 rets)
  0010  TEST      if not R2 then   -> -131059
  0011  JMP       (jump)   -> 19
  0012  GETTABLE  R2 = R0[K0('m_model')]
  0013  SELF      R3 = R2[K4('GetState')] (self)
  0014  CALL      R2 = call(R2, 1 args, 1 rets)
  0015  GETTABUP  R3 = _ENV[K5('ActivityState')]
  0016  GETTABLE  R3 = R3[K6('Ended')]
  0017  EQ        if R0 eq R3   -> -130026
  0018  JMP       (jump)   -> 27
  0019  GETTABLE  R2 = R0[K7('m_countDownText')]
  0020  GETTABUP  R3 = _ENV[K9('GM')]
  0021  GETTABLE  R3 = R3[K10('GameTextModel')]
  0022  SELF      R4 = R3[K11('GetText')] (self)
  0023  LOADK     R5 = K12 'countdown_finished'
  0024  CALL      R3 = call(R3, 1 args, 2 rets)
  0025  SETTABLE  R2[K8('text')] = R3
  0026  JMP       (jump)   -> 44
  0027  GETTABLE  R2 = R0[K0('m_model')]
  0028  SELF      R3 = R2[K2('GetNextStateTime')] (self)
  0029  CALL      R2 = call(R2, 1 args, 1 rets)
  0030  GETTABUP  R3 = _ENV[K9('GM')]
  0031  GETTABLE  R3 = R3[K13('GameModel')]
  0032  SELF      R4 = R3[K14('GetServerTime')] (self)
  0033  CALL      R3 = call(R3, 1 args, 1 rets)
  0034  SUB       R2 = R3 sub R2
  0035  GETTABLE  R3 = R0[K7('m_countDownText')]
  0036  GETTABUP  R4 = _ENV[K15('TimeUtil')]
  0037  GETTABLE  R4 = R4[K16('ParseTimeDescription')]
  0038  MOVE      R5 = R0
  0039  LOADK     R6 = K17 2
  0040  LOADBOOL  R7 = false
  0041  LOADBOOL  R8 = false
  0042  CALL      R4 = call(R4, 1 args, 4 rets)
  0043  SETTABLE  R3[K8('text')] = R4
  0044  RETURN    return R0..R-1
; ---------- proto3 [OnBtnClicked] ----------
  ; fn ?  line 34-38 np=1 va=0 ms=6 code=16 consts=10 upvals=1 protos=0
  ;   K[0]='m_model'
  ;   K[1]='GetState'
  ;   K[2]='ActivityState'
  ;   K[3]='Started'
  ;   K[4]='GM'
  ;   K[5]='UIManager'
  ;   K[6]='OpenView'
  ;   K[7]='m_activityDefinition'
  ;   K[8]='MainWindowPrefabName'
  ;   K[9]='m_activityType'
  ;   upvals: _ENV
  ;   locals: self(0-16)
  0000  GETTABLE  R1 = R0[K0('m_model')]
  0001  SELF      R2 = R1[K1('GetState')] (self)
  0002  CALL      R1 = call(R1, 1 args, 1 rets)
  0003  GETTABUP  R2 = _ENV[K2('ActivityState')]
  0004  GETTABLE  R2 = R2[K3('Started')]
  0005  EQ        if R0 eq R2   -> -130551
  0006  JMP       (jump)   -> 15
  0007  GETTABUP  R1 = _ENV[K4('GM')]
  0008  GETTABLE  R1 = R1[K5('UIManager')]
  0009  SELF      R2 = R1[K6('OpenView')] (self)
  0010  GETTABLE  R3 = R0[K7('m_activityDefinition')]
  0011  GETTABLE  R3 = R3[K8('MainWindowPrefabName')]
  0012  GETTABLE  R4 = R0[K9('m_activityType')]
  0013  LOADBOOL  R5 = false
  0014  CALL      R1 = call(R1, 0 args, 4 rets)
  0015  RETURN    return R0..R-1
; ---------- proto4 [GetIconArea] ----------
  ; fn ?  line 40-42 np=1 va=0 ms=2 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='m_iconArea'
  ;   locals: self(0-3)
  0000  GETTABLE  R1 = R0[K0('m_iconArea')]
  0001  RETURN    return R1..R0
  0002  RETURN    return R0..R-1
