# AdventureBoardActivity_View_AdventureBoardActivityBoardView_1383.luac
; fn @AdventureBoardActivityBoardView.lua  line 0-0 np=0 va=1 ms=3 code=27 consts=10 upvals=1 protos=6
;   K[0]='AdventureBoardActivityBoardView'
;   K[1]='setmetatable'
;   K[2]='BaseUIBoardView'
;   K[3]='__index'
;   K[4]='Init'
;   K[5]='OnDestroy'
;   K[6]='ConvertWorldPositionToScreenPosition'
;   K[7]='ConvertBoardPositionToScreenPosition'
;   K[8]='ConvertScreenPositionToWorldPosition'
;   K[9]='_GetBoardWindow'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  GETTABUP  R2 = _ENV[K2('BaseUIBoardView')]
0003  CALL      R0 = call(R0, 1 args, 2 rets)
0004  SETTABUP  _ENV[K0('AdventureBoardActivityBoardView')] = R0
0005  GETTABUP  R0 = _ENV[K0('AdventureBoardActivityBoardView')]
0006  GETTABUP  R1 = _ENV[K0('AdventureBoardActivityBoardView')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K0('AdventureBoardActivityBoardView')]
0009  CLOSURE   R1 = closure proto0
0010  SETTABLE  R0[K4('Init')] = R1
0011  GETTABUP  R0 = _ENV[K0('AdventureBoardActivityBoardView')]
0012  CLOSURE   R1 = closure proto1
0013  SETTABLE  R0[K5('OnDestroy')] = R1
0014  GETTABUP  R0 = _ENV[K0('AdventureBoardActivityBoardView')]
0015  CLOSURE   R1 = closure proto2
0016  SETTABLE  R0[K6('ConvertWorldPositionToScreenPosition')] = R1
0017  GETTABUP  R0 = _ENV[K0('AdventureBoardActivityBoardView')]
0018  CLOSURE   R1 = closure proto3
0019  SETTABLE  R0[K7('ConvertBoardPositionToScreenPosition')] = R1
0020  GETTABUP  R0 = _ENV[K0('AdventureBoardActivityBoardView')]
0021  CLOSURE   R1 = closure proto4
0022  SETTABLE  R0[K8('ConvertScreenPositionToWorldPosition')] = R1
0023  GETTABUP  R0 = _ENV[K0('AdventureBoardActivityBoardView')]
0024  CLOSURE   R1 = closure proto5
0025  SETTABLE  R0[K9('_GetBoardWindow')] = R1
0026  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 6-8 np=4 va=0 ms=9 code=8 consts=2 upvals=1 protos=0
  ;   K[0]='BaseUIBoardView'
  ;   K[1]='Init'
  ;   upvals: _ENV
  ;   locals: self(0-8), boardModel(0-8), itemDeleteButton(0-8), itemTipButton(0-8)
  0000  GETTABUP  R4 = _ENV[K0('BaseUIBoardView')]
  0001  GETTABLE  R4 = R4[K1('Init')]
  0002  MOVE      R5 = R0
  0003  MOVE      R6 = R0
  0004  MOVE      R7 = R0
  0005  MOVE      R8 = R0
  0006  CALL      R4 = call(R4, 0 args, 4 rets)
  0007  RETURN    return R0..R-1
; ---------- proto1 [OnDestroy] ----------
  ; fn ?  line 11-14 np=1 va=0 ms=3 code=9 consts=4 upvals=1 protos=0
  ;   K[0]='BaseUIBoardView'
  ;   K[1]='OnDestroy'
  ;   K[2]='Scheduler'
  ;   K[3]='UnscheduleTarget'
  ;   upvals: _ENV
  ;   locals: self(0-9)
  0000  GETTABUP  R1 = _ENV[K0('BaseUIBoardView')]
  0001  GETTABLE  R1 = R1[K1('OnDestroy')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  GETTABUP  R1 = _ENV[K2('Scheduler')]
  0005  GETTABLE  R1 = R1[K3('UnscheduleTarget')]
  0006  MOVE      R2 = R0
  0007  CALL      R1 = call(R1, 0 args, 1 rets)
  0008  RETURN    return R0..R-1
; ---------- proto2 [ConvertWorldPositionToScreenPosition] ----------
  ; fn ?  line 16-18 np=2 va=0 ms=5 code=8 consts=3 upvals=1 protos=0
  ;   K[0]='AdventureBoardActivityBoardContainer'
  ;   K[1]='GetInstance'
  ;   K[2]='ConvertWorldPositionToScreenPosition'
  ;   upvals: _ENV
  ;   locals: self(0-8), position(0-8)
  0000  GETTABUP  R2 = _ENV[K0('AdventureBoardActivityBoardContainer')]
  0001  GETTABLE  R2 = R2[K1('GetInstance')]
  0002  CALL      R2 = call(R2, 1 args, 0 rets)
  0003  SELF      R3 = R2[K2('ConvertWorldPositionToScreenPosition')] (self)
  0004  MOVE      R4 = R0
  0005  TAILCALL  tailcall(R2, 0)
  0006  RETURN    return R2..R1
  0007  RETURN    return R0..R-1
; ---------- proto3 [ConvertBoardPositionToScreenPosition] ----------
  ; fn ?  line 20-24 np=2 va=0 ms=9 code=24 consts=11 upvals=1 protos=0
  ;   K[0]='ToLocalPosition'
  ;   K[1]='GetItemsTransform'
  ;   K[2]='TransformPoint'
  ;   K[3]='Vector3'
  ;   K[4]='x'
  ;   K[5]='BaseBoardModel'
  ;   K[6]='TileSize'
  ;   K[7]=2
  ;   K[8]='y'
  ;   K[9]=0
  ;   K[10]='ConvertWorldPositionToScreenPosition'
  ;   upvals: _ENV
  ;   locals: self(0-24), boardPosition(0-24), plottingPosition(2-24), worldPosition(19-24)
  0000  SELF      R3 = R1[K0('ToLocalPosition')] (self)
  0001  CALL      R2 = call(R2, 1 args, 1 rets)
  0002  SELF      R4 = R0[K1('GetItemsTransform')] (self)
  0003  CALL      R3 = call(R3, 1 args, 1 rets)
  0004  SELF      R4 = R3[K2('TransformPoint')] (self)
  0005  GETTABUP  R5 = _ENV[K3('Vector3')]
  0006  GETTABLE  R6 = R2[K4('x')]
  0007  GETTABUP  R7 = _ENV[K5('BaseBoardModel')]
  0008  GETTABLE  R7 = R7[K6('TileSize')]
  0009  DIV       R7 = K7(2) div R7
  0010  ADD       R6 = R7 add R6
  0011  GETTABLE  R7 = R2[K8('y')]
  0012  GETTABUP  R8 = _ENV[K5('BaseBoardModel')]
  0013  GETTABLE  R8 = R8[K6('TileSize')]
  0014  DIV       R8 = K7(2) div R8
  0015  ADD       R7 = R8 add R7
  0016  LOADK     R8 = K9 0
  0017  CALL      R5 = call(R5, -1 args, 3 rets)
  0018  CALL      R3 = call(R3, 1 args, -1 rets)
  0019  SELF      R5 = R0[K10('ConvertWorldPositionToScreenPosition')] (self)
  0020  MOVE      R6 = R0
  0021  TAILCALL  tailcall(R4, 0)
  0022  RETURN    return R4..R3
  0023  RETURN    return R0..R-1
; ---------- proto4 [ConvertScreenPositionToWorldPosition] ----------
  ; fn ?  line 26-28 np=2 va=0 ms=5 code=8 consts=3 upvals=1 protos=0
  ;   K[0]='AdventureBoardActivityBoardContainer'
  ;   K[1]='GetInstance'
  ;   K[2]='ConvertScreenPositionToWorldPosition'
  ;   upvals: _ENV
  ;   locals: self(0-8), position(0-8)
  0000  GETTABUP  R2 = _ENV[K0('AdventureBoardActivityBoardContainer')]
  0001  GETTABLE  R2 = R2[K1('GetInstance')]
  0002  CALL      R2 = call(R2, 1 args, 0 rets)
  0003  SELF      R3 = R2[K2('ConvertScreenPositionToWorldPosition')] (self)
  0004  MOVE      R4 = R0
  0005  TAILCALL  tailcall(R2, 0)
  0006  RETURN    return R2..R1
  0007  RETURN    return R0..R-1
; ---------- proto5 [_GetBoardWindow] ----------
  ; fn ?  line 30-32 np=1 va=0 ms=4 code=8 consts=5 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='UIManager'
  ;   K[2]='GetOpenedViewByName'
  ;   K[3]='m_activityDefinition'
  ;   K[4]='MainWindowPrefabName'
  ;   upvals: _ENV
  ;   locals: self(0-8)
  0000  GETTABUP  R1 = _ENV[K0('GM')]
  0001  GETTABLE  R1 = R1[K1('UIManager')]
  0002  SELF      R2 = R1[K2('GetOpenedViewByName')] (self)
  0003  GETTABLE  R3 = R0[K3('m_activityDefinition')]
  0004  GETTABLE  R3 = R3[K4('MainWindowPrefabName')]
  0005  TAILCALL  tailcall(R1, 0)
  0006  RETURN    return R1..R0
  0007  RETURN    return R0..R-1
