BattleEnemy_Generate.lua 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644
  1. ---@class BattleEnemy__Generate_leftTime
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public text UnityEngine.UI.Text
  4. ---@class BattleEnemy__Generate_playerNode4_headBoxItemNew_sp
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public image UnityEngine.UI.Image
  7. ---@class BattleEnemy__Generate_playerNode4_headBoxItemNew_hp
  8. ---@field public gameObject UnityEngine.GameObject
  9. ---@field public image UnityEngine.UI.Image
  10. ---@class BattleEnemy__Generate_playerNode4_headBoxItemNew_headItem
  11. ---@field public gameObject UnityEngine.GameObject
  12. ---@field public layoutElement UnityEngine.UI.LayoutElement
  13. ---@class BattleEnemy__Generate_playerNode4_headBoxItemNew
  14. ---@field public gameObject UnityEngine.GameObject
  15. ---@field public headItem BattleEnemy__Generate_playerNode4_headBoxItemNew_headItem
  16. ---@field public hp BattleEnemy__Generate_playerNode4_headBoxItemNew_hp
  17. ---@field public sp BattleEnemy__Generate_playerNode4_headBoxItemNew_sp
  18. ---@field public deadNode UnityEngine.GameObject
  19. ---@class BattleEnemy__Generate_playerNode4
  20. ---@field public gameObject UnityEngine.GameObject
  21. ---@field public headBoxItemNew BattleEnemy__Generate_playerNode4_headBoxItemNew
  22. ---@class BattleEnemy__Generate_playerNode3_headBoxItemNew_sp
  23. ---@field public gameObject UnityEngine.GameObject
  24. ---@field public image UnityEngine.UI.Image
  25. ---@class BattleEnemy__Generate_playerNode3_headBoxItemNew_hp
  26. ---@field public gameObject UnityEngine.GameObject
  27. ---@field public image UnityEngine.UI.Image
  28. ---@class BattleEnemy__Generate_playerNode3_headBoxItemNew_headItem
  29. ---@field public gameObject UnityEngine.GameObject
  30. ---@field public layoutElement UnityEngine.UI.LayoutElement
  31. ---@class BattleEnemy__Generate_playerNode3_headBoxItemNew
  32. ---@field public gameObject UnityEngine.GameObject
  33. ---@field public headItem BattleEnemy__Generate_playerNode3_headBoxItemNew_headItem
  34. ---@field public hp BattleEnemy__Generate_playerNode3_headBoxItemNew_hp
  35. ---@field public sp BattleEnemy__Generate_playerNode3_headBoxItemNew_sp
  36. ---@field public deadNode UnityEngine.GameObject
  37. ---@class BattleEnemy__Generate_playerNode3
  38. ---@field public gameObject UnityEngine.GameObject
  39. ---@field public headBoxItemNew BattleEnemy__Generate_playerNode3_headBoxItemNew
  40. ---@class BattleEnemy__Generate_playerNode2_headBoxItemNew_sp
  41. ---@field public gameObject UnityEngine.GameObject
  42. ---@field public image UnityEngine.UI.Image
  43. ---@class BattleEnemy__Generate_playerNode2_headBoxItemNew_hp
  44. ---@field public gameObject UnityEngine.GameObject
  45. ---@field public image UnityEngine.UI.Image
  46. ---@class BattleEnemy__Generate_playerNode2_headBoxItemNew_headItem
  47. ---@field public gameObject UnityEngine.GameObject
  48. ---@field public layoutElement UnityEngine.UI.LayoutElement
  49. ---@class BattleEnemy__Generate_playerNode2_headBoxItemNew
  50. ---@field public gameObject UnityEngine.GameObject
  51. ---@field public headItem BattleEnemy__Generate_playerNode2_headBoxItemNew_headItem
  52. ---@field public hp BattleEnemy__Generate_playerNode2_headBoxItemNew_hp
  53. ---@field public sp BattleEnemy__Generate_playerNode2_headBoxItemNew_sp
  54. ---@field public deadNode UnityEngine.GameObject
  55. ---@class BattleEnemy__Generate_playerNode2
  56. ---@field public gameObject UnityEngine.GameObject
  57. ---@field public headBoxItemNew BattleEnemy__Generate_playerNode2_headBoxItemNew
  58. ---@class BattleEnemy__Generate_playerNode1_headBoxItemNew_sp
  59. ---@field public gameObject UnityEngine.GameObject
  60. ---@field public image UnityEngine.UI.Image
  61. ---@class BattleEnemy__Generate_playerNode1_headBoxItemNew_hp
  62. ---@field public gameObject UnityEngine.GameObject
  63. ---@field public image UnityEngine.UI.Image
  64. ---@class BattleEnemy__Generate_playerNode1_headBoxItemNew_headItem
  65. ---@field public gameObject UnityEngine.GameObject
  66. ---@field public layoutElement UnityEngine.UI.LayoutElement
  67. ---@class BattleEnemy__Generate_playerNode1_headBoxItemNew
  68. ---@field public gameObject UnityEngine.GameObject
  69. ---@field public headItem BattleEnemy__Generate_playerNode1_headBoxItemNew_headItem
  70. ---@field public hp BattleEnemy__Generate_playerNode1_headBoxItemNew_hp
  71. ---@field public sp BattleEnemy__Generate_playerNode1_headBoxItemNew_sp
  72. ---@field public deadNode UnityEngine.GameObject
  73. ---@class BattleEnemy__Generate_playerNode1
  74. ---@field public gameObject UnityEngine.GameObject
  75. ---@field public headBoxItemNew BattleEnemy__Generate_playerNode1_headBoxItemNew
  76. ---@class BattleEnemy__Generate_enemyNameTxt
  77. ---@field public gameObject UnityEngine.GameObject
  78. ---@field public text TMPro.TextMeshProUGUI
  79. ---@class BattleEnemy__Generate_bg
  80. ---@field public gameObject UnityEngine.GameObject
  81. ---@field public image UnityEngine.UI.Image
  82. ---@class BattleEnemy__Generate
  83. ---@field private gameObject UnityEngine.GameObject
  84. ---@field private transform UnityEngine.Transform
  85. ---@field private bg BattleEnemy__Generate_bg
  86. ---@field private enemyNameTxt BattleEnemy__Generate_enemyNameTxt
  87. ---@field private playerNode1 BattleEnemy__Generate_playerNode1
  88. ---@field private playerNode2 BattleEnemy__Generate_playerNode2
  89. ---@field private playerNode3 BattleEnemy__Generate_playerNode3
  90. ---@field private playerNode4 BattleEnemy__Generate_playerNode4
  91. ---@field private leftTime BattleEnemy__Generate_leftTime
  92. ---@field private infinite UnityEngine.GameObject
  93. local BattleEnemyView = class("BattleEnemyView")
  94. function BattleEnemyView:ctor()
  95. end
  96. ---@private
  97. function BattleEnemyView:SetActive(result)
  98. self.gameObject:SetActive(result)
  99. end
  100. ---@private
  101. function BattleEnemyView:InitGenerate(Root, data)
  102. self.transform = Root
  103. self.inited = true
  104. local tmp
  105. self:InitGenerate__1(Root,data)
  106. self:InitGenerate__2(Root,data)
  107. self:InitGenerate__3(Root,data)
  108. self:InitGenerate__4(Root,data)
  109. self:InitGenerate__5(Root,data)
  110. self:InitGenerate__6(Root,data)
  111. self:InitGenerate__7(Root,data)
  112. self:InitGenerate__8(Root,data)
  113. self:InitGenerate__9(Root,data)
  114. self:InitGenerate__10(Root,data)
  115. self:InitGenerate__11(Root,data)
  116. self:InitGenerate__12(Root,data)
  117. self:InitGenerate__13(Root,data)
  118. self:InitGenerate__14(Root,data)
  119. self:InitGenerate__15(Root,data)
  120. self:InitGenerate__16(Root,data)
  121. self:InitGenerate__17(Root,data)
  122. self:InitGenerate__18(Root,data)
  123. self:InitGenerate__19(Root,data)
  124. self:InitGenerate__20(Root,data)
  125. self:InitGenerate__21(Root,data)
  126. self:InitGenerate__22(Root,data)
  127. self:InitGenerate__23(Root,data)
  128. self:InitGenerate__24(Root,data)
  129. self:InitGenerate__25(Root,data)
  130. self:InitGenerate__26(Root,data)
  131. self:InitGenerate__27(Root,data)
  132. self:InitGenerate__28(Root,data)
  133. end
  134. ---@private
  135. function BattleEnemyView:InitGenerate__1(Root, data)
  136. --[[
  137. UIBattleEnemyAnim/NameBox/bg
  138. --]]
  139. local tmp = Root:Find("UIBattleEnemyAnim/NameBox/bg").gameObject
  140. if tolua.getpeer(tmp) == nil then
  141. tolua.setpeer(tmp, {})
  142. end
  143. self.bg = tmp
  144. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  145. end
  146. ---@private
  147. function BattleEnemyView:InitGenerate__2(Root, data)
  148. --[[
  149. UIBattleEnemyAnim/NameBox/Text
  150. --]]
  151. local tmp = Root:Find("UIBattleEnemyAnim/NameBox/Text").gameObject
  152. if tolua.getpeer(tmp) == nil then
  153. tolua.setpeer(tmp, {})
  154. end
  155. self.enemyNameTxt = tmp
  156. tmp.text = tmp:GetComponent(Enum.TypeInfo.TextMeshProUGUI)
  157. end
  158. ---@private
  159. function BattleEnemyView:InitGenerate__3(Root, data)
  160. --[[
  161. UIBattleEnemyAnim/PlayerList/Player1
  162. --]]
  163. local tmp = Root:Find("UIBattleEnemyAnim/PlayerList/Player1").gameObject
  164. if tolua.getpeer(tmp) == nil then
  165. tolua.setpeer(tmp, {})
  166. end
  167. self.playerNode1 = tmp
  168. end
  169. ---@private
  170. function BattleEnemyView:InitGenerate__4(Root, data)
  171. --[[
  172. UIBattleEnemyAnim/PlayerList/Player1/HeadBoxItemNew
  173. --]]
  174. local tmp = Root:Find("UIBattleEnemyAnim/PlayerList/Player1/HeadBoxItemNew").gameObject
  175. if tolua.getpeer(tmp) == nil then
  176. tolua.setpeer(tmp, {})
  177. end
  178. self.playerNode1.headBoxItemNew = tmp
  179. end
  180. ---@private
  181. function BattleEnemyView:InitGenerate__5(Root, data)
  182. --[[
  183. UIBattleEnemyAnim/PlayerList/Player1/HeadBoxItemNew/HeadItem
  184. --]]
  185. local tmp = Root:Find("UIBattleEnemyAnim/PlayerList/Player1/HeadBoxItemNew/HeadItem").gameObject
  186. if tolua.getpeer(tmp) == nil then
  187. tolua.setpeer(tmp, {})
  188. end
  189. self.playerNode1.headBoxItemNew.headItem = CommonUtil.BindGridViewItem2LuaStatic("HeadItem", tmp)
  190. self.playerNode1.headBoxItemNew.headItem.prefabName = "HeadItem"
  191. tmp.layoutElement = tmp:GetComponent(Enum.TypeInfo.LayoutElement)
  192. end
  193. ---@private
  194. function BattleEnemyView:InitGenerate__6(Root, data)
  195. --[[
  196. UIBattleEnemyAnim/PlayerList/Player1/HeadBoxItemNew/Bar/HP/bloodImg
  197. --]]
  198. local tmp = Root:Find("UIBattleEnemyAnim/PlayerList/Player1/HeadBoxItemNew/Bar/HP/bloodImg").gameObject
  199. if tolua.getpeer(tmp) == nil then
  200. tolua.setpeer(tmp, {})
  201. end
  202. self.playerNode1.headBoxItemNew.hp = tmp
  203. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  204. end
  205. ---@private
  206. function BattleEnemyView:InitGenerate__7(Root, data)
  207. --[[
  208. UIBattleEnemyAnim/PlayerList/Player1/HeadBoxItemNew/Bar/Sp/spImg
  209. --]]
  210. local tmp = Root:Find("UIBattleEnemyAnim/PlayerList/Player1/HeadBoxItemNew/Bar/Sp/spImg").gameObject
  211. if tolua.getpeer(tmp) == nil then
  212. tolua.setpeer(tmp, {})
  213. end
  214. self.playerNode1.headBoxItemNew.sp = tmp
  215. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  216. end
  217. ---@private
  218. function BattleEnemyView:InitGenerate__8(Root, data)
  219. --[[
  220. UIBattleEnemyAnim/PlayerList/Player1/HeadBoxItemNew/Dead
  221. --]]
  222. local tmp = Root:Find("UIBattleEnemyAnim/PlayerList/Player1/HeadBoxItemNew/Dead").gameObject
  223. if tolua.getpeer(tmp) == nil then
  224. tolua.setpeer(tmp, {})
  225. end
  226. self.playerNode1.headBoxItemNew.deadNode = tmp
  227. end
  228. ---@private
  229. function BattleEnemyView:InitGenerate__9(Root, data)
  230. --[[
  231. UIBattleEnemyAnim/PlayerList/Player2
  232. --]]
  233. local tmp = Root:Find("UIBattleEnemyAnim/PlayerList/Player2").gameObject
  234. if tolua.getpeer(tmp) == nil then
  235. tolua.setpeer(tmp, {})
  236. end
  237. self.playerNode2 = tmp
  238. end
  239. ---@private
  240. function BattleEnemyView:InitGenerate__10(Root, data)
  241. --[[
  242. UIBattleEnemyAnim/PlayerList/Player2/HeadBoxItemNew
  243. --]]
  244. local tmp = Root:Find("UIBattleEnemyAnim/PlayerList/Player2/HeadBoxItemNew").gameObject
  245. if tolua.getpeer(tmp) == nil then
  246. tolua.setpeer(tmp, {})
  247. end
  248. self.playerNode2.headBoxItemNew = tmp
  249. end
  250. ---@private
  251. function BattleEnemyView:InitGenerate__11(Root, data)
  252. --[[
  253. UIBattleEnemyAnim/PlayerList/Player2/HeadBoxItemNew/HeadItem
  254. --]]
  255. local tmp = Root:Find("UIBattleEnemyAnim/PlayerList/Player2/HeadBoxItemNew/HeadItem").gameObject
  256. if tolua.getpeer(tmp) == nil then
  257. tolua.setpeer(tmp, {})
  258. end
  259. self.playerNode2.headBoxItemNew.headItem = CommonUtil.BindGridViewItem2LuaStatic("HeadItem", tmp)
  260. self.playerNode2.headBoxItemNew.headItem.prefabName = "HeadItem"
  261. tmp.layoutElement = tmp:GetComponent(Enum.TypeInfo.LayoutElement)
  262. end
  263. ---@private
  264. function BattleEnemyView:InitGenerate__12(Root, data)
  265. --[[
  266. UIBattleEnemyAnim/PlayerList/Player2/HeadBoxItemNew/Bar/HP/bloodImg
  267. --]]
  268. local tmp = Root:Find("UIBattleEnemyAnim/PlayerList/Player2/HeadBoxItemNew/Bar/HP/bloodImg").gameObject
  269. if tolua.getpeer(tmp) == nil then
  270. tolua.setpeer(tmp, {})
  271. end
  272. self.playerNode2.headBoxItemNew.hp = tmp
  273. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  274. end
  275. ---@private
  276. function BattleEnemyView:InitGenerate__13(Root, data)
  277. --[[
  278. UIBattleEnemyAnim/PlayerList/Player2/HeadBoxItemNew/Bar/Sp/spImg
  279. --]]
  280. local tmp = Root:Find("UIBattleEnemyAnim/PlayerList/Player2/HeadBoxItemNew/Bar/Sp/spImg").gameObject
  281. if tolua.getpeer(tmp) == nil then
  282. tolua.setpeer(tmp, {})
  283. end
  284. self.playerNode2.headBoxItemNew.sp = tmp
  285. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  286. end
  287. ---@private
  288. function BattleEnemyView:InitGenerate__14(Root, data)
  289. --[[
  290. UIBattleEnemyAnim/PlayerList/Player2/HeadBoxItemNew/Dead
  291. --]]
  292. local tmp = Root:Find("UIBattleEnemyAnim/PlayerList/Player2/HeadBoxItemNew/Dead").gameObject
  293. if tolua.getpeer(tmp) == nil then
  294. tolua.setpeer(tmp, {})
  295. end
  296. self.playerNode2.headBoxItemNew.deadNode = tmp
  297. end
  298. ---@private
  299. function BattleEnemyView:InitGenerate__15(Root, data)
  300. --[[
  301. UIBattleEnemyAnim/PlayerList/Player3
  302. --]]
  303. local tmp = Root:Find("UIBattleEnemyAnim/PlayerList/Player3").gameObject
  304. if tolua.getpeer(tmp) == nil then
  305. tolua.setpeer(tmp, {})
  306. end
  307. self.playerNode3 = tmp
  308. end
  309. ---@private
  310. function BattleEnemyView:InitGenerate__16(Root, data)
  311. --[[
  312. UIBattleEnemyAnim/PlayerList/Player3/HeadBoxItemNew
  313. --]]
  314. local tmp = Root:Find("UIBattleEnemyAnim/PlayerList/Player3/HeadBoxItemNew").gameObject
  315. if tolua.getpeer(tmp) == nil then
  316. tolua.setpeer(tmp, {})
  317. end
  318. self.playerNode3.headBoxItemNew = tmp
  319. end
  320. ---@private
  321. function BattleEnemyView:InitGenerate__17(Root, data)
  322. --[[
  323. UIBattleEnemyAnim/PlayerList/Player3/HeadBoxItemNew/HeadItem
  324. --]]
  325. local tmp = Root:Find("UIBattleEnemyAnim/PlayerList/Player3/HeadBoxItemNew/HeadItem").gameObject
  326. if tolua.getpeer(tmp) == nil then
  327. tolua.setpeer(tmp, {})
  328. end
  329. self.playerNode3.headBoxItemNew.headItem = CommonUtil.BindGridViewItem2LuaStatic("HeadItem", tmp)
  330. self.playerNode3.headBoxItemNew.headItem.prefabName = "HeadItem"
  331. tmp.layoutElement = tmp:GetComponent(Enum.TypeInfo.LayoutElement)
  332. end
  333. ---@private
  334. function BattleEnemyView:InitGenerate__18(Root, data)
  335. --[[
  336. UIBattleEnemyAnim/PlayerList/Player3/HeadBoxItemNew/Bar/HP/bloodImg
  337. --]]
  338. local tmp = Root:Find("UIBattleEnemyAnim/PlayerList/Player3/HeadBoxItemNew/Bar/HP/bloodImg").gameObject
  339. if tolua.getpeer(tmp) == nil then
  340. tolua.setpeer(tmp, {})
  341. end
  342. self.playerNode3.headBoxItemNew.hp = tmp
  343. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  344. end
  345. ---@private
  346. function BattleEnemyView:InitGenerate__19(Root, data)
  347. --[[
  348. UIBattleEnemyAnim/PlayerList/Player3/HeadBoxItemNew/Bar/Sp/spImg
  349. --]]
  350. local tmp = Root:Find("UIBattleEnemyAnim/PlayerList/Player3/HeadBoxItemNew/Bar/Sp/spImg").gameObject
  351. if tolua.getpeer(tmp) == nil then
  352. tolua.setpeer(tmp, {})
  353. end
  354. self.playerNode3.headBoxItemNew.sp = tmp
  355. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  356. end
  357. ---@private
  358. function BattleEnemyView:InitGenerate__20(Root, data)
  359. --[[
  360. UIBattleEnemyAnim/PlayerList/Player3/HeadBoxItemNew/Dead
  361. --]]
  362. local tmp = Root:Find("UIBattleEnemyAnim/PlayerList/Player3/HeadBoxItemNew/Dead").gameObject
  363. if tolua.getpeer(tmp) == nil then
  364. tolua.setpeer(tmp, {})
  365. end
  366. self.playerNode3.headBoxItemNew.deadNode = tmp
  367. end
  368. ---@private
  369. function BattleEnemyView:InitGenerate__21(Root, data)
  370. --[[
  371. UIBattleEnemyAnim/PlayerList/Player4
  372. --]]
  373. local tmp = Root:Find("UIBattleEnemyAnim/PlayerList/Player4").gameObject
  374. if tolua.getpeer(tmp) == nil then
  375. tolua.setpeer(tmp, {})
  376. end
  377. self.playerNode4 = tmp
  378. end
  379. ---@private
  380. function BattleEnemyView:InitGenerate__22(Root, data)
  381. --[[
  382. UIBattleEnemyAnim/PlayerList/Player4/HeadBoxItemNew
  383. --]]
  384. local tmp = Root:Find("UIBattleEnemyAnim/PlayerList/Player4/HeadBoxItemNew").gameObject
  385. if tolua.getpeer(tmp) == nil then
  386. tolua.setpeer(tmp, {})
  387. end
  388. self.playerNode4.headBoxItemNew = tmp
  389. end
  390. ---@private
  391. function BattleEnemyView:InitGenerate__23(Root, data)
  392. --[[
  393. UIBattleEnemyAnim/PlayerList/Player4/HeadBoxItemNew/HeadItem
  394. --]]
  395. local tmp = Root:Find("UIBattleEnemyAnim/PlayerList/Player4/HeadBoxItemNew/HeadItem").gameObject
  396. if tolua.getpeer(tmp) == nil then
  397. tolua.setpeer(tmp, {})
  398. end
  399. self.playerNode4.headBoxItemNew.headItem = CommonUtil.BindGridViewItem2LuaStatic("HeadItem", tmp)
  400. self.playerNode4.headBoxItemNew.headItem.prefabName = "HeadItem"
  401. tmp.layoutElement = tmp:GetComponent(Enum.TypeInfo.LayoutElement)
  402. end
  403. ---@private
  404. function BattleEnemyView:InitGenerate__24(Root, data)
  405. --[[
  406. UIBattleEnemyAnim/PlayerList/Player4/HeadBoxItemNew/Bar/HP/bloodImg
  407. --]]
  408. local tmp = Root:Find("UIBattleEnemyAnim/PlayerList/Player4/HeadBoxItemNew/Bar/HP/bloodImg").gameObject
  409. if tolua.getpeer(tmp) == nil then
  410. tolua.setpeer(tmp, {})
  411. end
  412. self.playerNode4.headBoxItemNew.hp = tmp
  413. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  414. end
  415. ---@private
  416. function BattleEnemyView:InitGenerate__25(Root, data)
  417. --[[
  418. UIBattleEnemyAnim/PlayerList/Player4/HeadBoxItemNew/Bar/Sp/spImg
  419. --]]
  420. local tmp = Root:Find("UIBattleEnemyAnim/PlayerList/Player4/HeadBoxItemNew/Bar/Sp/spImg").gameObject
  421. if tolua.getpeer(tmp) == nil then
  422. tolua.setpeer(tmp, {})
  423. end
  424. self.playerNode4.headBoxItemNew.sp = tmp
  425. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  426. end
  427. ---@private
  428. function BattleEnemyView:InitGenerate__26(Root, data)
  429. --[[
  430. UIBattleEnemyAnim/PlayerList/Player4/HeadBoxItemNew/Dead
  431. --]]
  432. local tmp = Root:Find("UIBattleEnemyAnim/PlayerList/Player4/HeadBoxItemNew/Dead").gameObject
  433. if tolua.getpeer(tmp) == nil then
  434. tolua.setpeer(tmp, {})
  435. end
  436. self.playerNode4.headBoxItemNew.deadNode = tmp
  437. end
  438. ---@private
  439. function BattleEnemyView:InitGenerate__27(Root, data)
  440. --[[
  441. UIBattleEnemyAnim/BattleTime/LeftBattleTime
  442. --]]
  443. local tmp = Root:Find("UIBattleEnemyAnim/BattleTime/LeftBattleTime").gameObject
  444. if tolua.getpeer(tmp) == nil then
  445. tolua.setpeer(tmp, {})
  446. end
  447. self.leftTime = tmp
  448. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  449. end
  450. ---@private
  451. function BattleEnemyView:InitGenerate__28(Root, data)
  452. --[[
  453. UIBattleEnemyAnim/BattleTime/infinite
  454. --]]
  455. local tmp = Root:Find("UIBattleEnemyAnim/BattleTime/infinite").gameObject
  456. if tolua.getpeer(tmp) == nil then
  457. tolua.setpeer(tmp, {})
  458. end
  459. self.infinite = tmp
  460. end
  461. ---@private
  462. function BattleEnemyView:GenerateDestroy()
  463. if tolua.getpeer(self.playerNode4.headBoxItemNew.deadNode) ~= nil then
  464. tolua.setpeer(self.playerNode4.headBoxItemNew.deadNode, nil)
  465. end
  466. if tolua.getpeer(self.playerNode4.headBoxItemNew.sp) ~= nil then
  467. tolua.setpeer(self.playerNode4.headBoxItemNew.sp, nil)
  468. end
  469. if tolua.getpeer(self.playerNode4.headBoxItemNew.hp) ~= nil then
  470. tolua.setpeer(self.playerNode4.headBoxItemNew.hp, nil)
  471. end
  472. if self.playerNode4.headBoxItemNew.headItem.GenerateDestroy ~= nil then
  473. self.playerNode4.headBoxItemNew.headItem:GenerateDestroy()
  474. end
  475. if tolua.getpeer(self.playerNode4.headBoxItemNew.headItem) ~= nil then
  476. tolua.setpeer(self.playerNode4.headBoxItemNew.headItem, nil)
  477. end
  478. if tolua.getpeer(self.playerNode4.headBoxItemNew) ~= nil then
  479. tolua.setpeer(self.playerNode4.headBoxItemNew, nil)
  480. end
  481. if tolua.getpeer(self.playerNode3.headBoxItemNew.deadNode) ~= nil then
  482. tolua.setpeer(self.playerNode3.headBoxItemNew.deadNode, nil)
  483. end
  484. if tolua.getpeer(self.playerNode3.headBoxItemNew.sp) ~= nil then
  485. tolua.setpeer(self.playerNode3.headBoxItemNew.sp, nil)
  486. end
  487. if tolua.getpeer(self.playerNode3.headBoxItemNew.hp) ~= nil then
  488. tolua.setpeer(self.playerNode3.headBoxItemNew.hp, nil)
  489. end
  490. if self.playerNode3.headBoxItemNew.headItem.GenerateDestroy ~= nil then
  491. self.playerNode3.headBoxItemNew.headItem:GenerateDestroy()
  492. end
  493. if tolua.getpeer(self.playerNode3.headBoxItemNew.headItem) ~= nil then
  494. tolua.setpeer(self.playerNode3.headBoxItemNew.headItem, nil)
  495. end
  496. if tolua.getpeer(self.playerNode3.headBoxItemNew) ~= nil then
  497. tolua.setpeer(self.playerNode3.headBoxItemNew, nil)
  498. end
  499. if tolua.getpeer(self.playerNode2.headBoxItemNew.deadNode) ~= nil then
  500. tolua.setpeer(self.playerNode2.headBoxItemNew.deadNode, nil)
  501. end
  502. if tolua.getpeer(self.playerNode2.headBoxItemNew.sp) ~= nil then
  503. tolua.setpeer(self.playerNode2.headBoxItemNew.sp, nil)
  504. end
  505. if tolua.getpeer(self.playerNode2.headBoxItemNew.hp) ~= nil then
  506. tolua.setpeer(self.playerNode2.headBoxItemNew.hp, nil)
  507. end
  508. if self.playerNode2.headBoxItemNew.headItem.GenerateDestroy ~= nil then
  509. self.playerNode2.headBoxItemNew.headItem:GenerateDestroy()
  510. end
  511. if tolua.getpeer(self.playerNode2.headBoxItemNew.headItem) ~= nil then
  512. tolua.setpeer(self.playerNode2.headBoxItemNew.headItem, nil)
  513. end
  514. if tolua.getpeer(self.playerNode2.headBoxItemNew) ~= nil then
  515. tolua.setpeer(self.playerNode2.headBoxItemNew, nil)
  516. end
  517. if tolua.getpeer(self.playerNode1.headBoxItemNew.deadNode) ~= nil then
  518. tolua.setpeer(self.playerNode1.headBoxItemNew.deadNode, nil)
  519. end
  520. if tolua.getpeer(self.playerNode1.headBoxItemNew.sp) ~= nil then
  521. tolua.setpeer(self.playerNode1.headBoxItemNew.sp, nil)
  522. end
  523. if tolua.getpeer(self.playerNode1.headBoxItemNew.hp) ~= nil then
  524. tolua.setpeer(self.playerNode1.headBoxItemNew.hp, nil)
  525. end
  526. if self.playerNode1.headBoxItemNew.headItem.GenerateDestroy ~= nil then
  527. self.playerNode1.headBoxItemNew.headItem:GenerateDestroy()
  528. end
  529. if tolua.getpeer(self.playerNode1.headBoxItemNew.headItem) ~= nil then
  530. tolua.setpeer(self.playerNode1.headBoxItemNew.headItem, nil)
  531. end
  532. if tolua.getpeer(self.playerNode1.headBoxItemNew) ~= nil then
  533. tolua.setpeer(self.playerNode1.headBoxItemNew, nil)
  534. end
  535. if tolua.getpeer(self.bg) ~= nil then
  536. tolua.setpeer(self.bg, nil)
  537. end
  538. self.bg = nil
  539. if tolua.getpeer(self.enemyNameTxt) ~= nil then
  540. tolua.setpeer(self.enemyNameTxt, nil)
  541. end
  542. self.enemyNameTxt = nil
  543. if tolua.getpeer(self.playerNode1) ~= nil then
  544. tolua.setpeer(self.playerNode1, nil)
  545. end
  546. self.playerNode1 = nil
  547. if tolua.getpeer(self.playerNode2) ~= nil then
  548. tolua.setpeer(self.playerNode2, nil)
  549. end
  550. self.playerNode2 = nil
  551. if tolua.getpeer(self.playerNode3) ~= nil then
  552. tolua.setpeer(self.playerNode3, nil)
  553. end
  554. self.playerNode3 = nil
  555. if tolua.getpeer(self.playerNode4) ~= nil then
  556. tolua.setpeer(self.playerNode4, nil)
  557. end
  558. self.playerNode4 = nil
  559. if tolua.getpeer(self.leftTime) ~= nil then
  560. tolua.setpeer(self.leftTime, nil)
  561. end
  562. self.leftTime = nil
  563. if tolua.getpeer(self.infinite) ~= nil then
  564. tolua.setpeer(self.infinite, nil)
  565. end
  566. self.infinite = nil
  567. self.transform = nil
  568. self.gameObject = nil
  569. self.inited = false
  570. end
  571. return BattleEnemyView