# DigActivity_View_DigActivityEntry_942.luac
; fn @DigActivityEntry.lua  line 0-0 np=0 va=1 ms=3 code=36 consts=13 upvals=1 protos=9
;   K[0]='DigActivityEntry'
;   K[1]='setmetatable'
;   K[2]='HudPropertyButton'
;   K[3]='__index'
;   K[4]='Awake'
;   K[5]='Init'
;   K[6]='_AddListeners'
;   K[7]='UpdatePerSecond'
;   K[8]='OnBtnClicked'
;   K[9]='_OnScoreChanged'
;   K[10]='_OnStateChanged'
;   K[11]='UpdateValueText'
;   K[12]='OnGameModeChanged'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  GETTABUP  R2 = _ENV[K2('HudPropertyButton')]
0003  CALL      R0 = call(R0, 1 args, 2 rets)
0004  SETTABUP  _ENV[K0('DigActivityEntry')] = R0
0005  GETTABUP  R0 = _ENV[K0('DigActivityEntry')]
0006  GETTABUP  R1 = _ENV[K0('DigActivityEntry')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K0('DigActivityEntry')]
0009  CLOSURE   R1 = closure proto0
0010  SETTABLE  R0[K4('Awake')] = R1
0011  GETTABUP  R0 = _ENV[K0('DigActivityEntry')]
0012  CLOSURE   R1 = closure proto1
0013  SETTABLE  R0[K5('Init')] = R1
0014  GETTABUP  R0 = _ENV[K0('DigActivityEntry')]
0015  CLOSURE   R1 = closure proto2
0016  SETTABLE  R0[K6('_AddListeners')] = R1
0017  GETTABUP  R0 = _ENV[K0('DigActivityEntry')]
0018  CLOSURE   R1 = closure proto3
0019  SETTABLE  R0[K7('UpdatePerSecond')] = R1
0020  GETTABUP  R0 = _ENV[K0('DigActivityEntry')]
0021  CLOSURE   R1 = closure proto4
0022  SETTABLE  R0[K8('OnBtnClicked')] = R1
0023  GETTABUP  R0 = _ENV[K0('DigActivityEntry')]
0024  CLOSURE   R1 = closure proto5
0025  SETTABLE  R0[K9('_OnScoreChanged')] = R1
0026  GETTABUP  R0 = _ENV[K0('DigActivityEntry')]
0027  CLOSURE   R1 = closure proto6
0028  SETTABLE  R0[K10('_OnStateChanged')] = R1
0029  GETTABUP  R0 = _ENV[K0('DigActivityEntry')]
0030  CLOSURE   R1 = closure proto7
0031  SETTABLE  R0[K11('UpdateValueText')] = R1
0032  GETTABUP  R0 = _ENV[K0('DigActivityEntry')]
0033  CLOSURE   R1 = closure proto8
0034  SETTABLE  R0[K12('OnGameModeChanged')] = R1
0035  RETURN    return R0..R-1
; ---------- proto0 [Awake] ----------
  ; fn ?  line 5-7 np=1 va=0 ms=3 code=5 consts=2 upvals=1 protos=0
  ;   K[0]='HudPropertyButton'
  ;   K[1]='Awake'
  ;   upvals: _ENV
  ;   locals: self(0-5)
  0000  GETTABUP  R1 = _ENV[K0('HudPropertyButton')]
  0001  GETTABLE  R1 = R1[K1('Awake')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  RETURN    return R0..R-1
; ---------- proto1 [Init] ----------
  ; fn ?  line 9-16 np=2 va=0 ms=5 code=22 consts=12 upvals=1 protos=0
  ;   K[0]='m_model'
  ;   K[1]='m_activityType'
  ;   K[2]='GetType'
  ;   K[3]='m_activityDefinition'
  ;   K[4]='GetActivityDefinition'
  ;   K[5]='HudPropertyButton'
  ;   K[6]='Init'
  ;   K[7]='ActivityTokenPropertyType'
  ;   K[8]='UpdatePerSecond'
  ;   K[9]='_OnScoreChanged'
  ;   K[10]='UpdateScore'
  ;   K[11]=true
  ;   upvals: _ENV
  ;   locals: self(0-22), model(0-22)
  0000  SETTABLE  R0[K0('m_model')] = R1
  0001  GETTABLE  R2 = R0[K0('m_model')]
  0002  SELF      R3 = R2[K2('GetType')] (self)
  0003  CALL      R2 = call(R2, 1 args, 1 rets)
  0004  SETTABLE  R0[K1('m_activityType')] = R2
  0005  GETTABLE  R2 = R0[K0('m_model')]
  0006  SELF      R3 = R2[K4('GetActivityDefinition')] (self)
  0007  CALL      R2 = call(R2, 1 args, 1 rets)
  0008  SETTABLE  R0[K3('m_activityDefinition')] = R2
  0009  GETTABUP  R2 = _ENV[K5('HudPropertyButton')]
  0010  GETTABLE  R2 = R2[K6('Init')]
  0011  MOVE      R3 = R0
  0012  GETTABLE  R4 = R0[K3('m_activityDefinition')]
  0013  GETTABLE  R4 = R4[K7('ActivityTokenPropertyType')]
  0014  CALL      R2 = call(R2, 0 args, 2 rets)
  0015  SELF      R3 = R0[K8('UpdatePerSecond')] (self)
  0016  CALL      R2 = call(R2, 0 args, 1 rets)
  0017  SELF      R3 = R0[K9('_OnScoreChanged')] (self)
  0018  NEWTABLE  R4 = {} (0 items)
  0019  SETTABLE  R4[K10('UpdateScore')] = K11(true)
  0020  CALL      R2 = call(R2, 0 args, 2 rets)
  0021  RETURN    return R0..R-1
; ---------- proto2 [_AddListeners] ----------
  ; fn ?  line 18-24 np=1 va=0 ms=6 code=24 consts=10 upvals=1 protos=0
  ;   K[0]='HudPropertyButton'
  ;   K[1]='_AddListeners'
  ;   K[2]='m_activityDefinition'
  ;   K[3]=nil
  ;   K[4]='EventDispatcher'
  ;   K[5]='AddListener'
  ;   K[6]='ScoreChangedEvent'
  ;   K[7]='_OnScoreChanged'
  ;   K[8]='StateChangedEvent'
  ;   K[9]='_OnStateChanged'
  ;   upvals: _ENV
  ;   locals: self(0-24)
  0000  GETTABUP  R1 = _ENV[K0('HudPropertyButton')]
  0001  GETTABLE  R1 = R1[K1('_AddListeners')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  GETTABLE  R1 = R0[K2('m_activityDefinition')]
  0005  EQ        if R1 eq K3(nil)   -> -130294
  0006  JMP       (jump)   -> 23
  0007  GETTABUP  R1 = _ENV[K4('EventDispatcher')]
  0008  GETTABLE  R1 = R1[K5('AddListener')]
  0009  GETTABLE  R2 = R0[K2('m_activityDefinition')]
  0010  GETTABLE  R2 = R2[K6('ScoreChangedEvent')]
  0011  MOVE      R3 = R0
  0012  GETTABLE  R4 = R0[K7('_OnScoreChanged')]
  0013  LOADBOOL  R5 = true
  0014  CALL      R1 = call(R1, 0 args, 4 rets)
  0015  GETTABUP  R1 = _ENV[K4('EventDispatcher')]
  0016  GETTABLE  R1 = R1[K5('AddListener')]
  0017  GETTABLE  R2 = R0[K2('m_activityDefinition')]
  0018  GETTABLE  R2 = R2[K8('StateChangedEvent')]
  0019  MOVE      R3 = R0
  0020  GETTABLE  R4 = R0[K9('_OnStateChanged')]
  0021  LOADBOOL  R5 = true
  0022  CALL      R1 = call(R1, 0 args, 4 rets)
  0023  RETURN    return R0..R-1
; ---------- proto3 [UpdatePerSecond] ----------
  ; fn ?  line 26-32 np=1 va=0 ms=8 code=27 consts=11 upvals=1 protos=0
  ;   K[0]='m_model'
  ;   K[1]=nil
  ;   K[2]='GetNextStateTime'
  ;   K[3]='GM'
  ;   K[4]='GameModel'
  ;   K[5]='GetServerTime'
  ;   K[6]='m_countDownText'
  ;   K[7]='text'
  ;   K[8]='TimeUtil'
  ;   K[9]='ParseTimeDescription'
  ;   K[10]=2
  ;   upvals: _ENV
  ;   locals: self(0-27), delta(17-27)
  0000  GETTABLE  R1 = R0[K0('m_model')]
  0001  EQ        if R1 eq K1(nil)   -> -130300
  0002  JMP       (jump)   -> 8
  0003  GETTABLE  R1 = R0[K0('m_model')]
  0004  SELF      R2 = R1[K2('GetNextStateTime')] (self)
  0005  CALL      R1 = call(R1, 1 args, 1 rets)
  0006  EQ        if R0 eq K1(nil)   -> -130295
  0007  JMP       (jump)   -> 9
  0008  RETURN    return R0..R-1
  0009  GETTABLE  R1 = R0[K0('m_model')]
  0010  SELF      R2 = R1[K2('GetNextStateTime')] (self)
  0011  CALL      R1 = call(R1, 1 args, 1 rets)
  0012  GETTABUP  R2 = _ENV[K3('GM')]
  0013  GETTABLE  R2 = R2[K4('GameModel')]
  0014  SELF      R3 = R2[K5('GetServerTime')] (self)
  0015  CALL      R2 = call(R2, 1 args, 1 rets)
  0016  SUB       R1 = R2 sub R1
  0017  GETTABLE  R2 = R0[K6('m_countDownText')]
  0018  GETTABUP  R3 = _ENV[K8('TimeUtil')]
  0019  GETTABLE  R3 = R3[K9('ParseTimeDescription')]
  0020  MOVE      R4 = R0
  0021  LOADK     R5 = K10 2
  0022  LOADBOOL  R6 = false
  0023  LOADBOOL  R7 = false
  0024  CALL      R3 = call(R3, 1 args, 4 rets)
  0025  SETTABLE  R2[K7('text')] = R3
  0026  RETURN    return R0..R-1
; ---------- proto4 [OnBtnClicked] ----------
  ; fn ?  line 34-39 np=1 va=0 ms=7 code=24 consts=11 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]='IsViewExisting'
  ;   K[7]='m_activityDefinition'
  ;   K[8]='MainWindowPrefabName'
  ;   K[9]='OpenView'
  ;   K[10]='m_activityType'
  ;   upvals: _ENV
  ;   locals: self(0-24), state(3-24)
  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)   -> 23
  0007  GETTABUP  R2 = _ENV[K4('GM')]
  0008  GETTABLE  R2 = R2[K5('UIManager')]
  0009  SELF      R3 = R2[K6('IsViewExisting')] (self)
  0010  GETTABLE  R4 = R0[K7('m_activityDefinition')]
  0011  GETTABLE  R4 = R4[K8('MainWindowPrefabName')]
  0012  CALL      R2 = call(R2, 1 args, 2 rets)
  0013  TEST      if not R2 then   -> -131056
  0014  JMP       (jump)   -> 23
  0015  GETTABUP  R2 = _ENV[K4('GM')]
  0016  GETTABLE  R2 = R2[K5('UIManager')]
  0017  SELF      R3 = R2[K9('OpenView')] (self)
  0018  GETTABLE  R4 = R0[K7('m_activityDefinition')]
  0019  GETTABLE  R4 = R4[K8('MainWindowPrefabName')]
  0020  GETTABLE  R5 = R0[K10('m_activityType')]
  0021  LOADBOOL  R6 = true
  0022  CALL      R2 = call(R2, 0 args, 4 rets)
  0023  RETURN    return R0..R-1
; ---------- proto5 [_OnScoreChanged] ----------
  ; fn ?  line 41-51 np=2 va=0 ms=6 code=35 consts=16 upvals=1 protos=0
  ;   K[0]='m_model'
  ;   K[1]=nil
  ;   K[2]='UpdateScore'
  ;   K[3]='GM'
  ;   K[4]='UIManager'
  ;   K[5]='IsViewOpen'
  ;   K[6]='m_activityDefinition'
  ;   K[7]='MainWindowPrefabName'
  ;   K[8]='HudPropertyButton'
  ;   K[9]='Init'
  ;   K[10]='ActivityTokenPropertyType'
  ;   K[11]='GetScore'
  ;   K[12]='UIUtil'
  ;   K[13]='SetActive'
  ;   K[14]='m_exclamationGo'
  ;   K[15]=0
  ;   upvals: _ENV
  ;   locals: self(0-35), msg(0-35), score(26-35)
  0000  GETTABLE  R2 = R0[K0('m_model')]
  0001  EQ        if R0 eq K1(nil)   -> -129788
  0002  JMP       (jump)   -> 4
  0003  RETURN    return R0..R-1
  0004  TEST      if not R1 then   -> -131066
  0005  JMP       (jump)   -> 9
  0006  GETTABLE  R2 = R1[K2('UpdateScore')]
  0007  TEST      if not R2 then   -> -131062
  0008  JMP       (jump)   -> 17
  0009  GETTABUP  R2 = _ENV[K3('GM')]
  0010  GETTABLE  R2 = R2[K4('UIManager')]
  0011  SELF      R3 = R2[K5('IsViewOpen')] (self)
  0012  GETTABLE  R4 = R0[K6('m_activityDefinition')]
  0013  GETTABLE  R4 = R4[K7('MainWindowPrefabName')]
  0014  CALL      R2 = call(R2, 1 args, 2 rets)
  0015  TEST      if not R2 then   -> -131055
  0016  JMP       (jump)   -> 23
  0017  GETTABUP  R2 = _ENV[K8('HudPropertyButton')]
  0018  GETTABLE  R2 = R2[K9('Init')]
  0019  MOVE      R3 = R0
  0020  GETTABLE  R4 = R0[K6('m_activityDefinition')]
  0021  GETTABLE  R4 = R4[K10('ActivityTokenPropertyType')]
  0022  CALL      R2 = call(R2, 0 args, 2 rets)
  0023  GETTABLE  R2 = R0[K0('m_model')]
  0024  SELF      R3 = R2[K11('GetScore')] (self)
  0025  CALL      R2 = call(R2, 1 args, 1 rets)
  0026  GETTABUP  R3 = _ENV[K12('UIUtil')]
  0027  GETTABLE  R3 = R3[K13('SetActive')]
  0028  GETTABLE  R4 = R0[K14('m_exclamationGo')]
  0029  LT        if R1 lt R2   -> 7713
  0030  JMP       (jump)   -> 32
  0031  LOADBOOL  R5 = false
  0032  LOADBOOL  R5 = true
  0033  CALL      R3 = call(R3, 0 args, 2 rets)
  0034  RETURN    return R0..R-1
; ---------- proto6 [_OnStateChanged] ----------
  ; fn ?  line 53-60 np=1 va=0 ms=3 code=16 consts=6 upvals=1 protos=0
  ;   K[0]='m_model'
  ;   K[1]='GetState'
  ;   K[2]='ActivityState'
  ;   K[3]='Released'
  ;   K[4]='_OnScoreChanged'
  ;   K[5]='SyncToModelValue'
  ;   upvals: _ENV
  ;   locals: self(0-16)
  0000  GETTABLE  R1 = R0[K0('m_model')]
  0001  TEST      if not R1 then   -> -131069
  0002  JMP       (jump)   -> 10
  0003  GETTABLE  R1 = R0[K0('m_model')]
  0004  SELF      R2 = R1[K1('GetState')] (self)
  0005  CALL      R1 = call(R1, 1 args, 1 rets)
  0006  GETTABUP  R2 = _ENV[K2('ActivityState')]
  0007  GETTABLE  R2 = R2[K3('Released')]
  0008  EQ        if R0 eq R2   -> -130548
  0009  JMP       (jump)   -> 11
  0010  RETURN    return R0..R-1
  0011  SELF      R2 = R0[K4('_OnScoreChanged')] (self)
  0012  CALL      R1 = call(R1, 0 args, 1 rets)
  0013  SELF      R2 = R0[K5('SyncToModelValue')] (self)
  0014  CALL      R1 = call(R1, 0 args, 1 rets)
  0015  RETURN    return R0..R-1
; ---------- proto7 [UpdateValueText] ----------
  ; fn ?  line 62-66 np=1 va=0 ms=4 code=11 consts=6 upvals=1 protos=0
  ;   K[0]='m_exclamationText'
  ;   K[1]='text'
  ;   K[2]='math'
  ;   K[3]='floor'
  ;   K[4]='m_value'
  ;   K[5]=0.5
  ;   upvals: _ENV
  ;   locals: self(0-11)
  0000  GETTABLE  R1 = R0[K0('m_exclamationText')]
  0001  TEST      if not R1 then   -> -131069
  0002  JMP       (jump)   -> 10
  0003  GETTABLE  R1 = R0[K0('m_exclamationText')]
  0004  GETTABUP  R2 = _ENV[K2('math')]
  0005  GETTABLE  R2 = R2[K3('floor')]
  0006  GETTABLE  R3 = R0[K4('m_value')]
  0007  ADD       R3 = K5(0.5) add R3
  0008  CALL      R2 = call(R2, 1 args, 1 rets)
  0009  SETTABLE  R1[K1('text')] = R2
  0010  RETURN    return R0..R-1
; ---------- proto8 [OnGameModeChanged] ----------
  ; fn ?  line 68-71 np=1 va=0 ms=4 code=9 consts=5 upvals=1 protos=0
  ;   K[0]='HudPropertyButton'
  ;   K[1]='OnGameModeChanged'
  ;   K[2]='_OnScoreChanged'
  ;   K[3]='UpdateScore'
  ;   K[4]=true
  ;   upvals: _ENV
  ;   locals: self(0-9)
  0000  GETTABUP  R1 = _ENV[K0('HudPropertyButton')]
  0001  GETTABLE  R1 = R1[K1('OnGameModeChanged')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  SELF      R2 = R0[K2('_OnScoreChanged')] (self)
  0005  NEWTABLE  R3 = {} (0 items)
  0006  SETTABLE  R3[K3('UpdateScore')] = K4(true)
  0007  CALL      R1 = call(R1, 0 args, 2 rets)
  0008  RETURN    return R0..R-1
