isaacscript-common 1.2.257 → 1.2.258

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/dist/callbacks/postPlayerReordered.lua +9 -6
  2. package/dist/callbacks/subscriptions/postBombInitLate.lua +2 -3
  3. package/dist/callbacks/subscriptions/postBoneSwing.lua +2 -3
  4. package/dist/callbacks/subscriptions/postCollectibleInitFirst.lua +2 -3
  5. package/dist/callbacks/subscriptions/postCursedTeleport.lua +2 -3
  6. package/dist/callbacks/subscriptions/postCustomDoorEnter.lua +2 -3
  7. package/dist/callbacks/subscriptions/postCustomRevive.lua +2 -3
  8. package/dist/callbacks/subscriptions/postEffectInitLate.lua +2 -3
  9. package/dist/callbacks/subscriptions/postEsauJr.lua +2 -3
  10. package/dist/callbacks/subscriptions/postFamiliarInitLate.lua +2 -3
  11. package/dist/callbacks/subscriptions/postFirstEsauJr.lua +2 -3
  12. package/dist/callbacks/subscriptions/postFirstFlip.lua +2 -3
  13. package/dist/callbacks/subscriptions/postFlip.lua +2 -3
  14. package/dist/callbacks/subscriptions/postGameStartedReordered.lua +2 -3
  15. package/dist/callbacks/subscriptions/postGridEntityBroken.lua +2 -3
  16. package/dist/callbacks/subscriptions/postGridEntityCollision.lua +2 -3
  17. package/dist/callbacks/subscriptions/postGridEntityInit.lua +2 -3
  18. package/dist/callbacks/subscriptions/postGridEntityRemove.lua +2 -3
  19. package/dist/callbacks/subscriptions/postGridEntityStateChange.lua +2 -3
  20. package/dist/callbacks/subscriptions/postGridEntityUpdate.lua +2 -3
  21. package/dist/callbacks/subscriptions/postItemPickup.lua +2 -3
  22. package/dist/callbacks/subscriptions/postKnifeInitLate.lua +2 -3
  23. package/dist/callbacks/subscriptions/postLaserInitLate.lua +2 -3
  24. package/dist/callbacks/subscriptions/postNPCInitLate.lua +2 -3
  25. package/dist/callbacks/subscriptions/postNewLevelReordered.lua +2 -3
  26. package/dist/callbacks/subscriptions/postNewRoomEarly.lua +2 -3
  27. package/dist/callbacks/subscriptions/postNewRoomReordered.lua +2 -3
  28. package/dist/callbacks/subscriptions/postPEffectUpdateReordered.lua +2 -3
  29. package/dist/callbacks/subscriptions/postPickupCollect.lua +2 -3
  30. package/dist/callbacks/subscriptions/postPickupInitLate.lua +2 -3
  31. package/dist/callbacks/subscriptions/postPlayerChangeHealth.lua +2 -3
  32. package/dist/callbacks/subscriptions/postPlayerChangeType.lua +2 -3
  33. package/dist/callbacks/subscriptions/postPlayerFatalDamage.lua +2 -3
  34. package/dist/callbacks/subscriptions/postPlayerInitLate.lua +2 -3
  35. package/dist/callbacks/subscriptions/postPlayerInitReordered.lua +2 -3
  36. package/dist/callbacks/subscriptions/postPlayerRenderReordered.lua +2 -3
  37. package/dist/callbacks/subscriptions/postPlayerUpdateReordered.lua +2 -3
  38. package/dist/callbacks/subscriptions/postProjectileInitLate.lua +2 -3
  39. package/dist/callbacks/subscriptions/postPurchase.lua +2 -3
  40. package/dist/callbacks/subscriptions/postSacrifice.lua +2 -3
  41. package/dist/callbacks/subscriptions/postSlotAnimationChanged.lua +2 -3
  42. package/dist/callbacks/subscriptions/postSlotDestroyed.lua +2 -3
  43. package/dist/callbacks/subscriptions/postSlotInit.lua +2 -3
  44. package/dist/callbacks/subscriptions/postSlotRender.lua +2 -3
  45. package/dist/callbacks/subscriptions/postSlotUpdate.lua +2 -3
  46. package/dist/callbacks/subscriptions/postTearInitLate.lua +2 -3
  47. package/dist/callbacks/subscriptions/postTearInitVeryLate.lua +2 -3
  48. package/dist/callbacks/subscriptions/postTransformation.lua +2 -3
  49. package/dist/callbacks/subscriptions/postTrinketBreak.lua +2 -3
  50. package/dist/callbacks/subscriptions/preBerserkDeath.lua +2 -3
  51. package/dist/callbacks/subscriptions/preCustomRevive.lua +2 -3
  52. package/dist/callbacks/subscriptions/preItemPickup.lua +2 -3
  53. package/dist/callbacks/subscriptions/preNewLevel.lua +2 -3
  54. package/dist/callbacks/subscriptions/roomClearChange.lua +2 -3
  55. package/dist/features/deployJSONRoom.lua +2 -3
  56. package/dist/features/playerInventory.lua +3 -4
  57. package/dist/features/runInNFrames.lua +6 -5
  58. package/dist/features/sirenHelpers.lua +2 -2
  59. package/dist/features/taintedLazarusPlayers.lua +6 -6
  60. package/dist/functions/array.lua +5 -6
  61. package/dist/functions/benchmark.lua +1 -2
  62. package/dist/functions/collectibleCacheFlag.lua +1 -2
  63. package/dist/functions/deepCopy.lua +4 -5
  64. package/dist/functions/doors.lua +1 -2
  65. package/dist/functions/entity.d.ts +1 -1
  66. package/dist/functions/entity.lua +2 -6
  67. package/dist/functions/entitySpecific.lua +10 -11
  68. package/dist/functions/globals.lua +1 -2
  69. package/dist/functions/gridEntity.lua +2 -3
  70. package/dist/functions/log.lua +1 -1
  71. package/dist/functions/math.lua +3 -4
  72. package/dist/functions/player.lua +1 -2
  73. package/dist/functions/playerHealth.lua +3 -4
  74. package/dist/functions/playerIndex.lua +1 -2
  75. package/dist/functions/pocketItems.lua +6 -7
  76. package/dist/functions/rooms.lua +2 -3
  77. package/dist/functions/table.lua +5 -6
  78. package/dist/functions/utils.lua +2 -3
  79. package/dist/lualib_bundle.lua +358 -388
  80. package/package.json +4 -4
@@ -1,5 +1,4 @@
1
- local ____lualib = require("lualib_bundle")
2
- local __TS__ArrayPush = ____lualib.__TS__ArrayPush
1
+ --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
3
2
  local ____exports = {}
4
3
  local hasSubscriptions, postPEffectUpdate, postPlayerInit, postPlayerUpdate, postPlayerRender, postGameStarted, dequeue, v
5
4
  local ____exports = require("features.saveDataManager.exports")
@@ -32,7 +31,8 @@ function postPEffectUpdate(self, player)
32
31
  postPEffectUpdateReorderedFire(nil, player)
33
32
  else
34
33
  local playerIndex = getPlayerIndex(nil, player)
35
- __TS__ArrayPush(v.run.postPEffectUpdateQueue, playerIndex)
34
+ local ____v_run_postPEffectUpdateQueue_0 = v.run.postPEffectUpdateQueue
35
+ ____v_run_postPEffectUpdateQueue_0[#____v_run_postPEffectUpdateQueue_0 + 1] = playerIndex
36
36
  end
37
37
  end
38
38
  function postPlayerInit(self, player)
@@ -43,7 +43,8 @@ function postPlayerInit(self, player)
43
43
  postPlayerInitReorderedFire(nil, player)
44
44
  else
45
45
  local playerIndex = getPlayerIndex(nil, player)
46
- __TS__ArrayPush(v.run.postPlayerInitQueue, playerIndex)
46
+ local ____v_run_postPlayerInitQueue_1 = v.run.postPlayerInitQueue
47
+ ____v_run_postPlayerInitQueue_1[#____v_run_postPlayerInitQueue_1 + 1] = playerIndex
47
48
  end
48
49
  end
49
50
  function postPlayerUpdate(self, player)
@@ -54,7 +55,8 @@ function postPlayerUpdate(self, player)
54
55
  postPlayerUpdateReorderedFire(nil, player)
55
56
  else
56
57
  local playerIndex = getPlayerIndex(nil, player)
57
- __TS__ArrayPush(v.run.postPlayerUpdateQueue, playerIndex)
58
+ local ____v_run_postPlayerUpdateQueue_2 = v.run.postPlayerUpdateQueue
59
+ ____v_run_postPlayerUpdateQueue_2[#____v_run_postPlayerUpdateQueue_2 + 1] = playerIndex
58
60
  end
59
61
  end
60
62
  function postPlayerRender(self, player)
@@ -65,7 +67,8 @@ function postPlayerRender(self, player)
65
67
  postPlayerRenderReorderedFire(nil, player)
66
68
  else
67
69
  local playerIndex = getPlayerIndex(nil, player)
68
- __TS__ArrayPush(v.run.postPlayerRenderQueue, playerIndex)
70
+ local ____v_run_postPlayerRenderQueue_3 = v.run.postPlayerRenderQueue
71
+ ____v_run_postPlayerRenderQueue_3[#____v_run_postPlayerRenderQueue_3 + 1] = playerIndex
69
72
  end
70
73
  end
71
74
  function postGameStarted(self)
@@ -1,12 +1,11 @@
1
- local ____lualib = require("lualib_bundle")
2
- local __TS__ArrayPush = ____lualib.__TS__ArrayPush
1
+ --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
3
2
  local ____exports = {}
4
3
  local subscriptions = {}
5
4
  function ____exports.postBombInitLateHasSubscriptions(self)
6
5
  return #subscriptions > 0
7
6
  end
8
7
  function ____exports.postBombInitLateRegister(self, callback, bombVariant)
9
- __TS__ArrayPush(subscriptions, {callback, bombVariant})
8
+ subscriptions[#subscriptions + 1] = {callback, bombVariant}
10
9
  end
11
10
  function ____exports.postBombInitLateFire(self, bomb)
12
11
  for ____, ____value in ipairs(subscriptions) do
@@ -1,12 +1,11 @@
1
- local ____lualib = require("lualib_bundle")
2
- local __TS__ArrayPush = ____lualib.__TS__ArrayPush
1
+ --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
3
2
  local ____exports = {}
4
3
  local subscriptions = {}
5
4
  function ____exports.postBoneSwingHasSubscriptions(self)
6
5
  return #subscriptions > 0
7
6
  end
8
7
  function ____exports.postBoneSwingRegister(self, callback)
9
- __TS__ArrayPush(subscriptions, {callback})
8
+ subscriptions[#subscriptions + 1] = {callback}
10
9
  end
11
10
  function ____exports.postBoneSwingFire(self, boneClub)
12
11
  for ____, ____value in ipairs(subscriptions) do
@@ -1,12 +1,11 @@
1
- local ____lualib = require("lualib_bundle")
2
- local __TS__ArrayPush = ____lualib.__TS__ArrayPush
1
+ --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
3
2
  local ____exports = {}
4
3
  local subscriptions = {}
5
4
  function ____exports.postCollectibleInitFirstHasSubscriptions(self)
6
5
  return #subscriptions > 0
7
6
  end
8
7
  function ____exports.postCollectibleInitFirstRegister(self, callback, collectibleType)
9
- __TS__ArrayPush(subscriptions, {callback, collectibleType})
8
+ subscriptions[#subscriptions + 1] = {callback, collectibleType}
10
9
  end
11
10
  function ____exports.postCollectibleInitFirstFire(self, collectible)
12
11
  for ____, ____value in ipairs(subscriptions) do
@@ -1,12 +1,11 @@
1
- local ____lualib = require("lualib_bundle")
2
- local __TS__ArrayPush = ____lualib.__TS__ArrayPush
1
+ --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
3
2
  local ____exports = {}
4
3
  local subscriptions = {}
5
4
  function ____exports.postCursedTeleportHasSubscriptions(self)
6
5
  return #subscriptions > 0
7
6
  end
8
7
  function ____exports.postCursedTeleportRegister(self, callback)
9
- __TS__ArrayPush(subscriptions, {callback})
8
+ subscriptions[#subscriptions + 1] = {callback}
10
9
  end
11
10
  function ____exports.postCursedTeleportFire(self, player)
12
11
  for ____, ____value in ipairs(subscriptions) do
@@ -1,12 +1,11 @@
1
- local ____lualib = require("lualib_bundle")
2
- local __TS__ArrayPush = ____lualib.__TS__ArrayPush
1
+ --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
3
2
  local ____exports = {}
4
3
  local subscriptions = {}
5
4
  function ____exports.postCustomDoorEnterHasSubscriptions(self)
6
5
  return #subscriptions > 0
7
6
  end
8
7
  function ____exports.postCustomDoorEnterRegister(self, callback, effectVariant)
9
- __TS__ArrayPush(subscriptions, {callback, effectVariant})
8
+ subscriptions[#subscriptions + 1] = {callback, effectVariant}
10
9
  end
11
10
  function ____exports.postCustomDoorEnterFire(self, player, effectVariant, doorSlot, direction)
12
11
  for ____, ____value in ipairs(subscriptions) do
@@ -1,12 +1,11 @@
1
- local ____lualib = require("lualib_bundle")
2
- local __TS__ArrayPush = ____lualib.__TS__ArrayPush
1
+ --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
3
2
  local ____exports = {}
4
3
  local subscriptions = {}
5
4
  function ____exports.postCustomReviveHasSubscriptions(self)
6
5
  return #subscriptions > 0
7
6
  end
8
7
  function ____exports.postCustomReviveRegister(self, callback, revivalType)
9
- __TS__ArrayPush(subscriptions, {callback, revivalType})
8
+ subscriptions[#subscriptions + 1] = {callback, revivalType}
10
9
  end
11
10
  function ____exports.postCustomReviveFire(self, player, revivalType)
12
11
  for ____, ____value in ipairs(subscriptions) do
@@ -1,12 +1,11 @@
1
- local ____lualib = require("lualib_bundle")
2
- local __TS__ArrayPush = ____lualib.__TS__ArrayPush
1
+ --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
3
2
  local ____exports = {}
4
3
  local subscriptions = {}
5
4
  function ____exports.postEffectInitLateHasSubscriptions(self)
6
5
  return #subscriptions > 0
7
6
  end
8
7
  function ____exports.postEffectInitLateRegister(self, callback, effectVariant)
9
- __TS__ArrayPush(subscriptions, {callback, effectVariant})
8
+ subscriptions[#subscriptions + 1] = {callback, effectVariant}
10
9
  end
11
10
  function ____exports.postEffectInitLateFire(self, effect)
12
11
  for ____, ____value in ipairs(subscriptions) do
@@ -1,12 +1,11 @@
1
- local ____lualib = require("lualib_bundle")
2
- local __TS__ArrayPush = ____lualib.__TS__ArrayPush
1
+ --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
3
2
  local ____exports = {}
4
3
  local subscriptions = {}
5
4
  function ____exports.postEsauJrHasSubscriptions(self)
6
5
  return #subscriptions > 0
7
6
  end
8
7
  function ____exports.postEsauJrRegister(self, callback)
9
- __TS__ArrayPush(subscriptions, {callback})
8
+ subscriptions[#subscriptions + 1] = {callback}
10
9
  end
11
10
  function ____exports.postEsauJrFire(self, player)
12
11
  for ____, ____value in ipairs(subscriptions) do
@@ -1,12 +1,11 @@
1
- local ____lualib = require("lualib_bundle")
2
- local __TS__ArrayPush = ____lualib.__TS__ArrayPush
1
+ --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
3
2
  local ____exports = {}
4
3
  local subscriptions = {}
5
4
  function ____exports.postFamiliarInitLateHasSubscriptions(self)
6
5
  return #subscriptions > 0
7
6
  end
8
7
  function ____exports.postFamiliarInitLateRegister(self, callback, familiarVariant)
9
- __TS__ArrayPush(subscriptions, {callback, familiarVariant})
8
+ subscriptions[#subscriptions + 1] = {callback, familiarVariant}
10
9
  end
11
10
  function ____exports.postFamiliarInitLateFire(self, familiar)
12
11
  for ____, ____value in ipairs(subscriptions) do
@@ -1,12 +1,11 @@
1
- local ____lualib = require("lualib_bundle")
2
- local __TS__ArrayPush = ____lualib.__TS__ArrayPush
1
+ --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
3
2
  local ____exports = {}
4
3
  local subscriptions = {}
5
4
  function ____exports.postFirstEsauJrHasSubscriptions(self)
6
5
  return #subscriptions > 0
7
6
  end
8
7
  function ____exports.postFirstEsauJrRegister(self, callback)
9
- __TS__ArrayPush(subscriptions, {callback})
8
+ subscriptions[#subscriptions + 1] = {callback}
10
9
  end
11
10
  function ____exports.postFirstEsauJrFire(self, player)
12
11
  for ____, ____value in ipairs(subscriptions) do
@@ -1,12 +1,11 @@
1
- local ____lualib = require("lualib_bundle")
2
- local __TS__ArrayPush = ____lualib.__TS__ArrayPush
1
+ --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
3
2
  local ____exports = {}
4
3
  local subscriptions = {}
5
4
  function ____exports.postFirstFlipHasSubscriptions(self)
6
5
  return #subscriptions > 0
7
6
  end
8
7
  function ____exports.postFirstFlipRegister(self, callback)
9
- __TS__ArrayPush(subscriptions, {callback})
8
+ subscriptions[#subscriptions + 1] = {callback}
10
9
  end
11
10
  function ____exports.postFirstFlipFire(self, player)
12
11
  for ____, ____value in ipairs(subscriptions) do
@@ -1,12 +1,11 @@
1
- local ____lualib = require("lualib_bundle")
2
- local __TS__ArrayPush = ____lualib.__TS__ArrayPush
1
+ --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
3
2
  local ____exports = {}
4
3
  local subscriptions = {}
5
4
  function ____exports.postFlipHasSubscriptions(self)
6
5
  return #subscriptions > 0
7
6
  end
8
7
  function ____exports.postFlipRegister(self, callback)
9
- __TS__ArrayPush(subscriptions, {callback})
8
+ subscriptions[#subscriptions + 1] = {callback}
10
9
  end
11
10
  function ____exports.postFlipFire(self, player)
12
11
  for ____, ____value in ipairs(subscriptions) do
@@ -1,12 +1,11 @@
1
- local ____lualib = require("lualib_bundle")
2
- local __TS__ArrayPush = ____lualib.__TS__ArrayPush
1
+ --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
3
2
  local ____exports = {}
4
3
  local subscriptions = {}
5
4
  function ____exports.postGameStartedReorderedHasSubscriptions(self)
6
5
  return #subscriptions > 0
7
6
  end
8
7
  function ____exports.postGameStartedReorderedRegister(self, callback)
9
- __TS__ArrayPush(subscriptions, {callback})
8
+ subscriptions[#subscriptions + 1] = {callback}
10
9
  end
11
10
  function ____exports.postGameStartedReorderedFire(self, isContinued)
12
11
  for ____, ____value in ipairs(subscriptions) do
@@ -1,12 +1,11 @@
1
- local ____lualib = require("lualib_bundle")
2
- local __TS__ArrayPush = ____lualib.__TS__ArrayPush
1
+ --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
3
2
  local ____exports = {}
4
3
  local subscriptions = {}
5
4
  function ____exports.postGridEntityBrokenHasSubscriptions(self)
6
5
  return #subscriptions > 0
7
6
  end
8
7
  function ____exports.postGridEntityBrokenRegister(self, callback, gridEntityType)
9
- __TS__ArrayPush(subscriptions, {callback, gridEntityType})
8
+ subscriptions[#subscriptions + 1] = {callback, gridEntityType}
10
9
  end
11
10
  function ____exports.postGridEntityBrokenFire(self, gridEntity)
12
11
  for ____, ____value in ipairs(subscriptions) do
@@ -1,12 +1,11 @@
1
- local ____lualib = require("lualib_bundle")
2
- local __TS__ArrayPush = ____lualib.__TS__ArrayPush
1
+ --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
3
2
  local ____exports = {}
4
3
  local subscriptions = {}
5
4
  function ____exports.postGridEntityCollisionHasSubscriptions(self)
6
5
  return #subscriptions > 0
7
6
  end
8
7
  function ____exports.postGridEntityCollisionRegister(self, callback, gridEntityType)
9
- __TS__ArrayPush(subscriptions, {callback, gridEntityType})
8
+ subscriptions[#subscriptions + 1] = {callback, gridEntityType}
10
9
  end
11
10
  function ____exports.postGridEntityCollisionFire(self, gridEntity, entity)
12
11
  local gridEntityType = gridEntity:GetType()
@@ -1,12 +1,11 @@
1
- local ____lualib = require("lualib_bundle")
2
- local __TS__ArrayPush = ____lualib.__TS__ArrayPush
1
+ --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
3
2
  local ____exports = {}
4
3
  local subscriptions = {}
5
4
  function ____exports.postGridEntityInitHasSubscriptions(self)
6
5
  return #subscriptions > 0
7
6
  end
8
7
  function ____exports.postGridEntityInitRegister(self, callback, gridEntityType)
9
- __TS__ArrayPush(subscriptions, {callback, gridEntityType})
8
+ subscriptions[#subscriptions + 1] = {callback, gridEntityType}
10
9
  end
11
10
  function ____exports.postGridEntityInitFire(self, gridEntity)
12
11
  for ____, ____value in ipairs(subscriptions) do
@@ -1,12 +1,11 @@
1
- local ____lualib = require("lualib_bundle")
2
- local __TS__ArrayPush = ____lualib.__TS__ArrayPush
1
+ --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
3
2
  local ____exports = {}
4
3
  local subscriptions = {}
5
4
  function ____exports.postGridEntityRemoveHasSubscriptions(self)
6
5
  return #subscriptions > 0
7
6
  end
8
7
  function ____exports.postGridEntityRemoveRegister(self, callback, gridEntityType)
9
- __TS__ArrayPush(subscriptions, {callback, gridEntityType})
8
+ subscriptions[#subscriptions + 1] = {callback, gridEntityType}
10
9
  end
11
10
  function ____exports.postGridEntityRemoveFire(self, gridIndex, gridEntityType)
12
11
  for ____, ____value in ipairs(subscriptions) do
@@ -1,12 +1,11 @@
1
- local ____lualib = require("lualib_bundle")
2
- local __TS__ArrayPush = ____lualib.__TS__ArrayPush
1
+ --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
3
2
  local ____exports = {}
4
3
  local subscriptions = {}
5
4
  function ____exports.postGridEntityStateChangeHasSubscriptions(self)
6
5
  return #subscriptions > 0
7
6
  end
8
7
  function ____exports.postGridEntityStateChangeRegister(self, callback, gridEntityType)
9
- __TS__ArrayPush(subscriptions, {callback, gridEntityType})
8
+ subscriptions[#subscriptions + 1] = {callback, gridEntityType}
10
9
  end
11
10
  function ____exports.postGridEntityStateChangeFire(self, gridEntity, oldState, newState)
12
11
  for ____, ____value in ipairs(subscriptions) do
@@ -1,12 +1,11 @@
1
- local ____lualib = require("lualib_bundle")
2
- local __TS__ArrayPush = ____lualib.__TS__ArrayPush
1
+ --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
3
2
  local ____exports = {}
4
3
  local subscriptions = {}
5
4
  function ____exports.postGridEntityUpdateHasSubscriptions(self)
6
5
  return #subscriptions > 0
7
6
  end
8
7
  function ____exports.postGridEntityUpdateRegister(self, callback, gridEntityType)
9
- __TS__ArrayPush(subscriptions, {callback, gridEntityType})
8
+ subscriptions[#subscriptions + 1] = {callback, gridEntityType}
10
9
  end
11
10
  function ____exports.postGridEntityUpdateFire(self, gridEntity)
12
11
  for ____, ____value in ipairs(subscriptions) do
@@ -1,12 +1,11 @@
1
- local ____lualib = require("lualib_bundle")
2
- local __TS__ArrayPush = ____lualib.__TS__ArrayPush
1
+ --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
3
2
  local ____exports = {}
4
3
  local subscriptions = {}
5
4
  function ____exports.postItemPickupHasSubscriptions(self)
6
5
  return #subscriptions > 0
7
6
  end
8
7
  function ____exports.postItemPickupRegister(self, callback, itemType, itemID)
9
- __TS__ArrayPush(subscriptions, {callback, itemType, itemID})
8
+ subscriptions[#subscriptions + 1] = {callback, itemType, itemID}
10
9
  end
11
10
  function ____exports.postItemPickupFire(self, player, pickingUpItem)
12
11
  for ____, ____value in ipairs(subscriptions) do
@@ -1,12 +1,11 @@
1
- local ____lualib = require("lualib_bundle")
2
- local __TS__ArrayPush = ____lualib.__TS__ArrayPush
1
+ --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
3
2
  local ____exports = {}
4
3
  local subscriptions = {}
5
4
  function ____exports.postKnifeInitLateHasSubscriptions(self)
6
5
  return #subscriptions > 0
7
6
  end
8
7
  function ____exports.postKnifeInitLateRegister(self, callback, knifeVariant)
9
- __TS__ArrayPush(subscriptions, {callback, knifeVariant})
8
+ subscriptions[#subscriptions + 1] = {callback, knifeVariant}
10
9
  end
11
10
  function ____exports.postKnifeInitLateFire(self, knife)
12
11
  for ____, ____value in ipairs(subscriptions) do
@@ -1,12 +1,11 @@
1
- local ____lualib = require("lualib_bundle")
2
- local __TS__ArrayPush = ____lualib.__TS__ArrayPush
1
+ --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
3
2
  local ____exports = {}
4
3
  local subscriptions = {}
5
4
  function ____exports.postLaserInitLateHasSubscriptions(self)
6
5
  return #subscriptions > 0
7
6
  end
8
7
  function ____exports.postLaserInitLateRegister(self, callback, laserVariant)
9
- __TS__ArrayPush(subscriptions, {callback, laserVariant})
8
+ subscriptions[#subscriptions + 1] = {callback, laserVariant}
10
9
  end
11
10
  function ____exports.postLaserInitLateFire(self, laser)
12
11
  for ____, ____value in ipairs(subscriptions) do
@@ -1,12 +1,11 @@
1
- local ____lualib = require("lualib_bundle")
2
- local __TS__ArrayPush = ____lualib.__TS__ArrayPush
1
+ --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
3
2
  local ____exports = {}
4
3
  local subscriptions = {}
5
4
  function ____exports.postNPCInitLateHasSubscriptions(self)
6
5
  return #subscriptions > 0
7
6
  end
8
7
  function ____exports.postNPCInitLateRegister(self, callback, entityType)
9
- __TS__ArrayPush(subscriptions, {callback, entityType})
8
+ subscriptions[#subscriptions + 1] = {callback, entityType}
10
9
  end
11
10
  function ____exports.postNPCInitLateFire(self, npc)
12
11
  for ____, ____value in ipairs(subscriptions) do
@@ -1,12 +1,11 @@
1
- local ____lualib = require("lualib_bundle")
2
- local __TS__ArrayPush = ____lualib.__TS__ArrayPush
1
+ --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
3
2
  local ____exports = {}
4
3
  local subscriptions = {}
5
4
  function ____exports.postNewLevelReorderedHasSubscriptions(self)
6
5
  return #subscriptions > 0
7
6
  end
8
7
  function ____exports.postNewLevelReorderedRegister(self, callback)
9
- __TS__ArrayPush(subscriptions, {callback})
8
+ subscriptions[#subscriptions + 1] = {callback}
10
9
  end
11
10
  function ____exports.postNewLevelReorderedFire(self)
12
11
  for ____, ____value in ipairs(subscriptions) do
@@ -1,12 +1,11 @@
1
- local ____lualib = require("lualib_bundle")
2
- local __TS__ArrayPush = ____lualib.__TS__ArrayPush
1
+ --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
3
2
  local ____exports = {}
4
3
  local subscriptions = {}
5
4
  function ____exports.postNewRoomEarlyHasSubscriptions(self)
6
5
  return #subscriptions > 0
7
6
  end
8
7
  function ____exports.postNewRoomEarlyRegister(self, callback)
9
- __TS__ArrayPush(subscriptions, {callback})
8
+ subscriptions[#subscriptions + 1] = {callback}
10
9
  end
11
10
  function ____exports.postNewRoomEarlyFire(self)
12
11
  for ____, ____value in ipairs(subscriptions) do
@@ -1,12 +1,11 @@
1
- local ____lualib = require("lualib_bundle")
2
- local __TS__ArrayPush = ____lualib.__TS__ArrayPush
1
+ --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
3
2
  local ____exports = {}
4
3
  local subscriptions = {}
5
4
  function ____exports.postNewRoomReorderedHasSubscriptions(self)
6
5
  return #subscriptions > 0
7
6
  end
8
7
  function ____exports.postNewRoomReorderedRegister(self, callback)
9
- __TS__ArrayPush(subscriptions, {callback})
8
+ subscriptions[#subscriptions + 1] = {callback}
10
9
  end
11
10
  function ____exports.postNewRoomReorderedFire(self)
12
11
  for ____, ____value in ipairs(subscriptions) do
@@ -1,12 +1,11 @@
1
- local ____lualib = require("lualib_bundle")
2
- local __TS__ArrayPush = ____lualib.__TS__ArrayPush
1
+ --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
3
2
  local ____exports = {}
4
3
  local subscriptions = {}
5
4
  function ____exports.postPEffectUpdateReorderedHasSubscriptions(self)
6
5
  return #subscriptions > 0
7
6
  end
8
7
  function ____exports.postPEffectUpdateReorderedRegister(self, callback, character)
9
- __TS__ArrayPush(subscriptions, {callback, character})
8
+ subscriptions[#subscriptions + 1] = {callback, character}
10
9
  end
11
10
  function ____exports.postPEffectUpdateReorderedFire(self, player)
12
11
  local character = player:GetPlayerType()
@@ -1,12 +1,11 @@
1
- local ____lualib = require("lualib_bundle")
2
- local __TS__ArrayPush = ____lualib.__TS__ArrayPush
1
+ --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
3
2
  local ____exports = {}
4
3
  local subscriptions = {}
5
4
  function ____exports.postPickupCollectHasSubscriptions(self)
6
5
  return #subscriptions > 0
7
6
  end
8
7
  function ____exports.postPickupCollectRegister(self, callback, pickupVariant)
9
- __TS__ArrayPush(subscriptions, {callback, pickupVariant})
8
+ subscriptions[#subscriptions + 1] = {callback, pickupVariant}
10
9
  end
11
10
  function ____exports.postPickupCollectFire(self, pickup, player)
12
11
  for ____, ____value in ipairs(subscriptions) do
@@ -1,12 +1,11 @@
1
- local ____lualib = require("lualib_bundle")
2
- local __TS__ArrayPush = ____lualib.__TS__ArrayPush
1
+ --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
3
2
  local ____exports = {}
4
3
  local subscriptions = {}
5
4
  function ____exports.postPickupInitLateHasSubscriptions(self)
6
5
  return #subscriptions > 0
7
6
  end
8
7
  function ____exports.postPickupInitLateRegister(self, callback, pickupVariant)
9
- __TS__ArrayPush(subscriptions, {callback, pickupVariant})
8
+ subscriptions[#subscriptions + 1] = {callback, pickupVariant}
10
9
  end
11
10
  function ____exports.postPickupInitLateFire(self, pickup)
12
11
  for ____, ____value in ipairs(subscriptions) do
@@ -1,12 +1,11 @@
1
- local ____lualib = require("lualib_bundle")
2
- local __TS__ArrayPush = ____lualib.__TS__ArrayPush
1
+ --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
3
2
  local ____exports = {}
4
3
  local subscriptions = {}
5
4
  function ____exports.postPlayerChangeHealthHasSubscriptions(self)
6
5
  return #subscriptions > 0
7
6
  end
8
7
  function ____exports.postPlayerChangeHealthRegister(self, callback, playerVariant)
9
- __TS__ArrayPush(subscriptions, {callback, playerVariant})
8
+ subscriptions[#subscriptions + 1] = {callback, playerVariant}
10
9
  end
11
10
  function ____exports.postPlayerChangeHealthFire(self, player, healthType, amount)
12
11
  for ____, ____value in ipairs(subscriptions) do
@@ -1,12 +1,11 @@
1
- local ____lualib = require("lualib_bundle")
2
- local __TS__ArrayPush = ____lualib.__TS__ArrayPush
1
+ --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
3
2
  local ____exports = {}
4
3
  local subscriptions = {}
5
4
  function ____exports.postPlayerChangeTypeHasSubscriptions(self)
6
5
  return #subscriptions > 0
7
6
  end
8
7
  function ____exports.postPlayerChangeTypeRegister(self, callback)
9
- __TS__ArrayPush(subscriptions, {callback})
8
+ subscriptions[#subscriptions + 1] = {callback}
10
9
  end
11
10
  function ____exports.postPlayerChangeTypeFire(self, player, oldCharacter, newCharacter)
12
11
  for ____, ____value in ipairs(subscriptions) do
@@ -1,12 +1,11 @@
1
- local ____lualib = require("lualib_bundle")
2
- local __TS__ArrayPush = ____lualib.__TS__ArrayPush
1
+ --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
3
2
  local ____exports = {}
4
3
  local subscriptions = {}
5
4
  function ____exports.postPlayerFatalDamageHasSubscriptions(self)
6
5
  return #subscriptions > 0
7
6
  end
8
7
  function ____exports.postPlayerFatalDamageRegister(self, callback, playerVariant)
9
- __TS__ArrayPush(subscriptions, {callback, playerVariant})
8
+ subscriptions[#subscriptions + 1] = {callback, playerVariant}
10
9
  end
11
10
  function ____exports.postPlayerFatalDamageFire(self, player, damageAmount, damageFlags, damageSource, damageCountdownFrames)
12
11
  for ____, ____value in ipairs(subscriptions) do
@@ -1,12 +1,11 @@
1
- local ____lualib = require("lualib_bundle")
2
- local __TS__ArrayPush = ____lualib.__TS__ArrayPush
1
+ --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
3
2
  local ____exports = {}
4
3
  local subscriptions = {}
5
4
  function ____exports.postPlayerInitLateHasSubscriptions(self)
6
5
  return #subscriptions > 0
7
6
  end
8
7
  function ____exports.postPlayerInitLateRegister(self, callback, playerVariant)
9
- __TS__ArrayPush(subscriptions, {callback, playerVariant})
8
+ subscriptions[#subscriptions + 1] = {callback, playerVariant}
10
9
  end
11
10
  function ____exports.postPlayerInitLateFire(self, player)
12
11
  for ____, ____value in ipairs(subscriptions) do
@@ -1,12 +1,11 @@
1
- local ____lualib = require("lualib_bundle")
2
- local __TS__ArrayPush = ____lualib.__TS__ArrayPush
1
+ --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
3
2
  local ____exports = {}
4
3
  local subscriptions = {}
5
4
  function ____exports.postPlayerInitReorderedHasSubscriptions(self)
6
5
  return #subscriptions > 0
7
6
  end
8
7
  function ____exports.postPlayerInitReorderedRegister(self, callback, playerVariant)
9
- __TS__ArrayPush(subscriptions, {callback, playerVariant})
8
+ subscriptions[#subscriptions + 1] = {callback, playerVariant}
10
9
  end
11
10
  function ____exports.postPlayerInitReorderedFire(self, player)
12
11
  for ____, ____value in ipairs(subscriptions) do
@@ -1,12 +1,11 @@
1
- local ____lualib = require("lualib_bundle")
2
- local __TS__ArrayPush = ____lualib.__TS__ArrayPush
1
+ --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
3
2
  local ____exports = {}
4
3
  local subscriptions = {}
5
4
  function ____exports.postPlayerRenderReorderedHasSubscriptions(self)
6
5
  return #subscriptions > 0
7
6
  end
8
7
  function ____exports.postPlayerRenderReorderedRegister(self, callback, playerVariant)
9
- __TS__ArrayPush(subscriptions, {callback, playerVariant})
8
+ subscriptions[#subscriptions + 1] = {callback, playerVariant}
10
9
  end
11
10
  function ____exports.postPlayerRenderReorderedFire(self, player)
12
11
  for ____, ____value in ipairs(subscriptions) do
@@ -1,12 +1,11 @@
1
- local ____lualib = require("lualib_bundle")
2
- local __TS__ArrayPush = ____lualib.__TS__ArrayPush
1
+ --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
3
2
  local ____exports = {}
4
3
  local subscriptions = {}
5
4
  function ____exports.postPlayerUpdateReorderedHasSubscriptions(self)
6
5
  return #subscriptions > 0
7
6
  end
8
7
  function ____exports.postPlayerUpdateReorderedRegister(self, callback, playerVariant)
9
- __TS__ArrayPush(subscriptions, {callback, playerVariant})
8
+ subscriptions[#subscriptions + 1] = {callback, playerVariant}
10
9
  end
11
10
  function ____exports.postPlayerUpdateReorderedFire(self, player)
12
11
  for ____, ____value in ipairs(subscriptions) do