isaacscript-common 1.2.176 → 1.2.179

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 (167) hide show
  1. package/dist/callbacks/itemPickup.lua +0 -1
  2. package/dist/callbacks/postBombInitLate.lua +0 -1
  3. package/dist/callbacks/postBoneSwing.lua +0 -1
  4. package/dist/callbacks/postCollectibleInitFirst.d.ts +1 -0
  5. package/dist/callbacks/postCollectibleInitFirst.lua +29 -0
  6. package/dist/callbacks/postCursedTeleport.lua +0 -1
  7. package/dist/callbacks/postCustomDoorEnter.lua +0 -1
  8. package/dist/callbacks/postEffectInitLate.lua +0 -1
  9. package/dist/callbacks/postEsauJr.lua +0 -1
  10. package/dist/callbacks/postFamiliarInitLate.lua +0 -1
  11. package/dist/callbacks/postFlip.lua +0 -1
  12. package/dist/callbacks/postGridEntity.lua +0 -1
  13. package/dist/callbacks/postGridEntityCollision.lua +0 -1
  14. package/dist/callbacks/postKnifeInitLate.lua +0 -1
  15. package/dist/callbacks/postLaserInitLate.lua +0 -1
  16. package/dist/callbacks/postNPCInitLate.lua +0 -1
  17. package/dist/callbacks/postPickupCollect.lua +0 -1
  18. package/dist/callbacks/postPickupInitLate.lua +0 -1
  19. package/dist/callbacks/postPlayerChangeHealth.lua +0 -1
  20. package/dist/callbacks/postPlayerChangeType.lua +0 -1
  21. package/dist/callbacks/postPlayerFatalDamage.lua +0 -1
  22. package/dist/callbacks/postPlayerInitLate.lua +0 -1
  23. package/dist/callbacks/postPlayerReordered.lua +0 -1
  24. package/dist/callbacks/postProjectileInitLate.lua +0 -1
  25. package/dist/callbacks/postPurchase.lua +0 -1
  26. package/dist/callbacks/postSlotInitUpdate.lua +0 -1
  27. package/dist/callbacks/postSlotRender.lua +0 -1
  28. package/dist/callbacks/postTearInitLate.lua +0 -1
  29. package/dist/callbacks/postTearInitVeryLate.lua +0 -1
  30. package/dist/callbacks/postTransformation.lua +0 -1
  31. package/dist/callbacks/postTrinketBreak.lua +1 -2
  32. package/dist/callbacks/preNewLevel.lua +0 -1
  33. package/dist/callbacks/subscriptions/postBombInitLate.lua +0 -1
  34. package/dist/callbacks/subscriptions/postBoneSwing.lua +0 -1
  35. package/dist/callbacks/subscriptions/postCollectibleInitFirst.d.ts +2 -0
  36. package/dist/callbacks/subscriptions/postCollectibleInitFirst.lua +24 -0
  37. package/dist/callbacks/subscriptions/postCursedTeleport.lua +0 -1
  38. package/dist/callbacks/subscriptions/postCustomDoorEnter.lua +0 -1
  39. package/dist/callbacks/subscriptions/postCustomRevive.lua +0 -1
  40. package/dist/callbacks/subscriptions/postEffectInitLate.lua +0 -1
  41. package/dist/callbacks/subscriptions/postEsauJr.lua +0 -1
  42. package/dist/callbacks/subscriptions/postFamiliarInitLate.lua +0 -1
  43. package/dist/callbacks/subscriptions/postFirstEsauJr.lua +0 -1
  44. package/dist/callbacks/subscriptions/postFirstFlip.lua +0 -1
  45. package/dist/callbacks/subscriptions/postFlip.lua +0 -1
  46. package/dist/callbacks/subscriptions/postGameStartedReordered.lua +0 -1
  47. package/dist/callbacks/subscriptions/postGridEntityBroken.lua +0 -1
  48. package/dist/callbacks/subscriptions/postGridEntityCollision.lua +0 -1
  49. package/dist/callbacks/subscriptions/postGridEntityInit.lua +0 -1
  50. package/dist/callbacks/subscriptions/postGridEntityRemove.lua +0 -1
  51. package/dist/callbacks/subscriptions/postGridEntityStateChange.lua +0 -1
  52. package/dist/callbacks/subscriptions/postGridEntityUpdate.lua +0 -1
  53. package/dist/callbacks/subscriptions/postItemPickup.lua +0 -1
  54. package/dist/callbacks/subscriptions/postKnifeInitLate.lua +0 -1
  55. package/dist/callbacks/subscriptions/postLaserInitLate.lua +0 -1
  56. package/dist/callbacks/subscriptions/postNPCInitLate.lua +0 -1
  57. package/dist/callbacks/subscriptions/postNewLevelReordered.lua +0 -1
  58. package/dist/callbacks/subscriptions/postNewRoomEarly.lua +0 -1
  59. package/dist/callbacks/subscriptions/postNewRoomReordered.lua +0 -1
  60. package/dist/callbacks/subscriptions/postPEffectUpdateReordered.lua +0 -1
  61. package/dist/callbacks/subscriptions/postPickupCollect.lua +0 -1
  62. package/dist/callbacks/subscriptions/postPickupInitLate.lua +0 -1
  63. package/dist/callbacks/subscriptions/postPlayerChangeHealth.lua +0 -1
  64. package/dist/callbacks/subscriptions/postPlayerChangeType.lua +0 -1
  65. package/dist/callbacks/subscriptions/postPlayerFatalDamage.lua +0 -1
  66. package/dist/callbacks/subscriptions/postPlayerInitLate.lua +0 -1
  67. package/dist/callbacks/subscriptions/postPlayerInitReordered.lua +0 -1
  68. package/dist/callbacks/subscriptions/postPlayerRenderReordered.lua +0 -1
  69. package/dist/callbacks/subscriptions/postPlayerUpdateReordered.lua +0 -1
  70. package/dist/callbacks/subscriptions/postProjectileInitLate.lua +0 -1
  71. package/dist/callbacks/subscriptions/postPurchase.lua +0 -1
  72. package/dist/callbacks/subscriptions/postSacrifice.lua +0 -1
  73. package/dist/callbacks/subscriptions/postSlotAnimationChanged.lua +0 -1
  74. package/dist/callbacks/subscriptions/postSlotDestroyed.lua +0 -1
  75. package/dist/callbacks/subscriptions/postSlotInit.lua +0 -1
  76. package/dist/callbacks/subscriptions/postSlotRender.lua +0 -1
  77. package/dist/callbacks/subscriptions/postSlotUpdate.lua +0 -1
  78. package/dist/callbacks/subscriptions/postTearInitLate.lua +0 -1
  79. package/dist/callbacks/subscriptions/postTearInitVeryLate.lua +0 -1
  80. package/dist/callbacks/subscriptions/postTransformation.lua +0 -1
  81. package/dist/callbacks/subscriptions/postTrinketBreak.lua +0 -1
  82. package/dist/callbacks/subscriptions/preBerserkDeath.lua +0 -1
  83. package/dist/callbacks/subscriptions/preCustomRevive.lua +0 -1
  84. package/dist/callbacks/subscriptions/preItemPickup.lua +0 -1
  85. package/dist/callbacks/subscriptions/preNewLevel.lua +0 -1
  86. package/dist/callbacks/subscriptions/roomClearChange.lua +0 -1
  87. package/dist/classes/DefaultMap.lua +0 -1
  88. package/dist/classes/ModUpgraded.lua +0 -1
  89. package/dist/classes/null.lua +0 -1
  90. package/dist/constants.lua +12 -13
  91. package/dist/enums/ModCallbacksCustom.d.ts +32 -31
  92. package/dist/enums/ModCallbacksCustom.lua +33 -31
  93. package/dist/enums/private/SerializationBrand.lua +0 -1
  94. package/dist/features/collectiblesSeen.lua +0 -1
  95. package/dist/features/deployJSONRoom.lua +1 -2
  96. package/dist/features/disableInputs.lua +0 -1
  97. package/dist/features/disableSound.lua +0 -1
  98. package/dist/features/extraConsoleCommands/commands.lua +3 -4
  99. package/dist/features/extraConsoleCommands/init.lua +0 -1
  100. package/dist/features/getCollectibleItemPoolType.lua +2 -3
  101. package/dist/features/isPonyActive.lua +0 -1
  102. package/dist/features/playerInventory.lua +0 -1
  103. package/dist/features/preventCollectibleRotate.lua +2 -3
  104. package/dist/features/runInNFrames.lua +0 -1
  105. package/dist/features/saveDataManager/exports.lua +0 -1
  106. package/dist/features/saveDataManager/load.lua +0 -1
  107. package/dist/features/saveDataManager/main.lua +0 -1
  108. package/dist/features/saveDataManager/maps.lua +0 -1
  109. package/dist/features/saveDataManager/merge.lua +0 -1
  110. package/dist/features/saveDataManager/save.lua +0 -1
  111. package/dist/features/sirenHelpers.lua +0 -1
  112. package/dist/features/taintedLazarusPlayers.lua +0 -1
  113. package/dist/functions/array.lua +0 -1
  114. package/dist/functions/cards.lua +0 -1
  115. package/dist/functions/collectibleCacheFlag.lua +0 -1
  116. package/dist/functions/collectibleSet.lua +0 -1
  117. package/dist/functions/collectibles.d.ts +8 -5
  118. package/dist/functions/collectibles.lua +13 -13
  119. package/dist/functions/deepCopy.lua +0 -1
  120. package/dist/functions/deepCopyTests.lua +0 -1
  121. package/dist/functions/doors.lua +0 -1
  122. package/dist/functions/entity.lua +0 -1
  123. package/dist/functions/entitySpecific.lua +0 -1
  124. package/dist/functions/familiars.lua +0 -1
  125. package/dist/functions/flying.lua +1 -2
  126. package/dist/functions/globals.lua +0 -1
  127. package/dist/functions/gridEntity.lua +0 -1
  128. package/dist/functions/input.lua +0 -1
  129. package/dist/functions/jsonRoom.lua +0 -1
  130. package/dist/functions/log.lua +0 -1
  131. package/dist/functions/map.lua +0 -1
  132. package/dist/functions/math.lua +0 -1
  133. package/dist/functions/npc.lua +0 -1
  134. package/dist/functions/pickups.lua +0 -1
  135. package/dist/functions/player.lua +0 -1
  136. package/dist/functions/playerDataStructures.lua +0 -1
  137. package/dist/functions/playerHealth.lua +0 -1
  138. package/dist/functions/pocketItems.lua +0 -1
  139. package/dist/functions/positionVelocity.lua +0 -1
  140. package/dist/functions/rooms.lua +0 -1
  141. package/dist/functions/set.lua +0 -1
  142. package/dist/functions/spawnCollectible.lua +1 -1
  143. package/dist/functions/string.lua +0 -1
  144. package/dist/functions/transformations.lua +0 -1
  145. package/dist/functions/trinketCacheFlag.lua +0 -1
  146. package/dist/functions/trinketSet.lua +0 -1
  147. package/dist/functions/trinkets.lua +2 -2
  148. package/dist/functions/utils.lua +0 -1
  149. package/dist/index.d.ts +0 -1
  150. package/dist/index.lua +0 -5
  151. package/dist/lualib_bundle.lua +83 -49
  152. package/dist/maps/cardMap.lua +0 -1
  153. package/dist/maps/characterMap.lua +0 -1
  154. package/dist/maps/collectibleDescriptionMap.lua +0 -1
  155. package/dist/maps/collectibleNameMap.lua +0 -1
  156. package/dist/maps/gridEntityTypeToBrokenStateMap.lua +0 -1
  157. package/dist/maps/gridEntityXMLMap.lua +0 -1
  158. package/dist/maps/pillEffectMap.lua +0 -1
  159. package/dist/maps/roomShapeToTopLeftWallGridIndexMap.lua +0 -1
  160. package/dist/maps/roomTypeMap.lua +0 -1
  161. package/dist/maps/trinketDescriptionMap.lua +0 -1
  162. package/dist/maps/trinketNameMap.lua +0 -1
  163. package/dist/objects/callbackRegisterFunctions.lua +3 -0
  164. package/dist/patchErrorFunctions.lua +0 -1
  165. package/dist/types/AddCallbackParametersCustom.d.ts +6 -1
  166. package/dist/upgradeMod.lua +3 -4
  167. package/package.json +3 -3
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local __TS__New = ____lualib.__TS__New
4
3
  local ____exports = {}
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local Set = ____lualib.Set
4
3
  local __TS__New = ____lualib.__TS__New
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local Set = ____lualib.Set
4
3
  local __TS__New = ____lualib.__TS__New
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,29 @@
1
+ local ____lualib = require("lualib_bundle")
2
+ local Set = ____lualib.Set
3
+ local __TS__New = ____lualib.__TS__New
4
+ local ____exports = {}
5
+ local hasSubscriptions, postPickupInitCollectible, v
6
+ local ____exports = require("features.saveDataManager.exports")
7
+ local saveDataManager = ____exports.saveDataManager
8
+ local ____collectibles = require("functions.collectibles")
9
+ local getCollectibleIndex = ____collectibles.getCollectibleIndex
10
+ local ____postCollectibleInitFirst = require("callbacks.subscriptions.postCollectibleInitFirst")
11
+ local postCollectibleInitFirstFire = ____postCollectibleInitFirst.postCollectibleInitFirstFire
12
+ local postCollectibleInitFirstHasSubscriptions = ____postCollectibleInitFirst.postCollectibleInitFirstHasSubscriptions
13
+ function hasSubscriptions(self)
14
+ return postCollectibleInitFirstHasSubscriptions(nil)
15
+ end
16
+ function postPickupInitCollectible(self, collectible)
17
+ local collectibleIndex = getCollectibleIndex(nil, collectible)
18
+ if v.run.seenCollectibles:has(collectibleIndex) then
19
+ return
20
+ end
21
+ v.run.seenCollectibles:add(collectibleIndex)
22
+ postCollectibleInitFirstFire(nil, collectible)
23
+ end
24
+ v = {run = {seenCollectibles = __TS__New(Set)}}
25
+ function ____exports.postCollectibleInitFirstCallbackInit(self, mod)
26
+ saveDataManager(nil, "postCollectibleInitFirst", v, hasSubscriptions)
27
+ mod:AddCallback(ModCallbacks.MC_POST_PICKUP_INIT, postPickupInitCollectible, 100)
28
+ end
29
+ return ____exports
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local Map = ____lualib.Map
4
3
  local __TS__New = ____lualib.__TS__New
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local Set = ____lualib.Set
4
3
  local __TS__New = ____lualib.__TS__New
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local Set = ____lualib.Set
4
3
  local __TS__New = ____lualib.__TS__New
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local __TS__ArrayFind = ____lualib.__TS__ArrayFind
4
3
  local ____exports = {}
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local Set = ____lualib.Set
4
3
  local __TS__New = ____lualib.__TS__New
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local __TS__ArrayFind = ____lualib.__TS__ArrayFind
4
3
  local ____exports = {}
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local Map = ____lualib.Map
4
3
  local __TS__New = ____lualib.__TS__New
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local Set = ____lualib.Set
4
3
  local __TS__New = ____lualib.__TS__New
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local Set = ____lualib.Set
4
3
  local __TS__New = ____lualib.__TS__New
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local Set = ____lualib.Set
4
3
  local __TS__New = ____lualib.__TS__New
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local Set = ____lualib.Set
4
3
  local __TS__New = ____lualib.__TS__New
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local Set = ____lualib.Set
4
3
  local __TS__New = ____lualib.__TS__New
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local Set = ____lualib.Set
4
3
  local __TS__New = ____lualib.__TS__New
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local Map = ____lualib.Map
4
3
  local __TS__New = ____lualib.__TS__New
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local __TS__New = ____lualib.__TS__New
4
3
  local ____exports = {}
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local Map = ____lualib.Map
4
3
  local __TS__New = ____lualib.__TS__New
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local Set = ____lualib.Set
4
3
  local __TS__New = ____lualib.__TS__New
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local __TS__ArrayPush = ____lualib.__TS__ArrayPush
4
3
  local ____exports = {}
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local Set = ____lualib.Set
4
3
  local __TS__New = ____lualib.__TS__New
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local __TS__New = ____lualib.__TS__New
4
3
  local __TS__ArrayFind = ____lualib.__TS__ArrayFind
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local Set = ____lualib.Set
4
3
  local __TS__New = ____lualib.__TS__New
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local Set = ____lualib.Set
4
3
  local __TS__New = ____lualib.__TS__New
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local Set = ____lualib.Set
4
3
  local __TS__New = ____lualib.__TS__New
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local Set = ____lualib.Set
4
3
  local __TS__New = ____lualib.__TS__New
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local Set = ____lualib.Set
4
3
  local __TS__New = ____lualib.__TS__New
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local __TS__New = ____lualib.__TS__New
4
3
  local ____exports = {}
@@ -34,7 +33,7 @@ function entityTakeDmgPlayer(self, tookDamage, _damageAmount, _damageFlags, _dam
34
33
  goto __continue8
35
34
  end
36
35
  trinketMap:set(trinketType, numTrinketsHeld)
37
- local numTrinketsOnGround = Isaac.CountEntities(nil, EntityType.ENTITY_PICKUP, PickupVariant.PICKUP_TRINKET, trinketType)
36
+ local numTrinketsOnGround = Isaac.CountEntities(nil, EntityType.ENTITY_PICKUP, 350, trinketType)
38
37
  if numTrinketsOnGround > 0 then
39
38
  goto __continue8
40
39
  end
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local Set = ____lualib.Set
4
3
  local __TS__New = ____lualib.__TS__New
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local __TS__ArrayPush = ____lualib.__TS__ArrayPush
4
3
  local ____exports = {}
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local __TS__ArrayPush = ____lualib.__TS__ArrayPush
4
3
  local ____exports = {}
@@ -0,0 +1,2 @@
1
+ /// <reference types="isaac-typescript-definitions" />
2
+ export declare type PostCollectibleInitFirstCallbackType = (collectible: EntityPickup) => void;
@@ -0,0 +1,24 @@
1
+ local ____lualib = require("lualib_bundle")
2
+ local __TS__ArrayPush = ____lualib.__TS__ArrayPush
3
+ local ____exports = {}
4
+ local subscriptions = {}
5
+ function ____exports.postCollectibleInitFirstHasSubscriptions(self)
6
+ return #subscriptions > 0
7
+ end
8
+ function ____exports.postCollectibleInitFirstRegister(self, callback, collectibleType)
9
+ __TS__ArrayPush(subscriptions, {callback, collectibleType})
10
+ end
11
+ function ____exports.postCollectibleInitFirstFire(self, collectible)
12
+ for ____, ____value in ipairs(subscriptions) do
13
+ local callback = ____value[1]
14
+ local collectibleType = ____value[2]
15
+ do
16
+ if collectibleType ~= nil and collectibleType ~= collectible.SubType then
17
+ goto __continue5
18
+ end
19
+ callback(nil, collectible)
20
+ end
21
+ ::__continue5::
22
+ end
23
+ end
24
+ return ____exports
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local __TS__ArrayPush = ____lualib.__TS__ArrayPush
4
3
  local ____exports = {}
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local __TS__ArrayPush = ____lualib.__TS__ArrayPush
4
3
  local ____exports = {}
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local __TS__ArrayPush = ____lualib.__TS__ArrayPush
4
3
  local ____exports = {}
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local __TS__ArrayPush = ____lualib.__TS__ArrayPush
4
3
  local ____exports = {}
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local __TS__ArrayPush = ____lualib.__TS__ArrayPush
4
3
  local ____exports = {}
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local __TS__ArrayPush = ____lualib.__TS__ArrayPush
4
3
  local ____exports = {}
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local __TS__ArrayPush = ____lualib.__TS__ArrayPush
4
3
  local ____exports = {}
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local __TS__ArrayPush = ____lualib.__TS__ArrayPush
4
3
  local ____exports = {}
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local __TS__ArrayPush = ____lualib.__TS__ArrayPush
4
3
  local ____exports = {}
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local __TS__ArrayPush = ____lualib.__TS__ArrayPush
4
3
  local ____exports = {}
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local __TS__ArrayPush = ____lualib.__TS__ArrayPush
4
3
  local ____exports = {}
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local __TS__ArrayPush = ____lualib.__TS__ArrayPush
4
3
  local ____exports = {}
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local __TS__ArrayPush = ____lualib.__TS__ArrayPush
4
3
  local ____exports = {}
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local __TS__ArrayPush = ____lualib.__TS__ArrayPush
4
3
  local ____exports = {}
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local __TS__ArrayPush = ____lualib.__TS__ArrayPush
4
3
  local ____exports = {}
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local __TS__ArrayPush = ____lualib.__TS__ArrayPush
4
3
  local ____exports = {}
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local __TS__ArrayPush = ____lualib.__TS__ArrayPush
4
3
  local ____exports = {}
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local __TS__ArrayPush = ____lualib.__TS__ArrayPush
4
3
  local ____exports = {}
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local __TS__ArrayPush = ____lualib.__TS__ArrayPush
4
3
  local ____exports = {}
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local __TS__ArrayPush = ____lualib.__TS__ArrayPush
4
3
  local ____exports = {}
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local __TS__ArrayPush = ____lualib.__TS__ArrayPush
4
3
  local ____exports = {}
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local __TS__ArrayPush = ____lualib.__TS__ArrayPush
4
3
  local ____exports = {}
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local __TS__ArrayPush = ____lualib.__TS__ArrayPush
4
3
  local ____exports = {}
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local __TS__ArrayPush = ____lualib.__TS__ArrayPush
4
3
  local ____exports = {}
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local __TS__ArrayPush = ____lualib.__TS__ArrayPush
4
3
  local ____exports = {}
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local __TS__ArrayPush = ____lualib.__TS__ArrayPush
4
3
  local ____exports = {}
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local __TS__ArrayPush = ____lualib.__TS__ArrayPush
4
3
  local ____exports = {}
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local __TS__ArrayPush = ____lualib.__TS__ArrayPush
4
3
  local ____exports = {}
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local __TS__ArrayPush = ____lualib.__TS__ArrayPush
4
3
  local ____exports = {}
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local __TS__ArrayPush = ____lualib.__TS__ArrayPush
4
3
  local ____exports = {}
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local __TS__ArrayPush = ____lualib.__TS__ArrayPush
4
3
  local ____exports = {}
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local __TS__ArrayPush = ____lualib.__TS__ArrayPush
4
3
  local ____exports = {}
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local __TS__ArrayPush = ____lualib.__TS__ArrayPush
4
3
  local ____exports = {}
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local __TS__ArrayPush = ____lualib.__TS__ArrayPush
4
3
  local ____exports = {}
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local __TS__ArrayPush = ____lualib.__TS__ArrayPush
4
3
  local ____exports = {}
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local __TS__ArrayPush = ____lualib.__TS__ArrayPush
4
3
  local ____exports = {}
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local __TS__ArrayPush = ____lualib.__TS__ArrayPush
4
3
  local ____exports = {}
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local __TS__ArrayPush = ____lualib.__TS__ArrayPush
4
3
  local ____exports = {}
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local __TS__ArrayPush = ____lualib.__TS__ArrayPush
4
3
  local ____exports = {}
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local __TS__ArrayPush = ____lualib.__TS__ArrayPush
4
3
  local ____exports = {}
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local __TS__ArrayPush = ____lualib.__TS__ArrayPush
4
3
  local ____exports = {}
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local __TS__ArrayPush = ____lualib.__TS__ArrayPush
4
3
  local ____exports = {}
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local __TS__ArrayPush = ____lualib.__TS__ArrayPush
4
3
  local ____exports = {}
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local __TS__ArrayPush = ____lualib.__TS__ArrayPush
4
3
  local ____exports = {}
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local __TS__ArrayPush = ____lualib.__TS__ArrayPush
4
3
  local ____exports = {}
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local __TS__ArrayPush = ____lualib.__TS__ArrayPush
4
3
  local ____exports = {}
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local __TS__ArrayPush = ____lualib.__TS__ArrayPush
4
3
  local ____exports = {}
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local __TS__ArrayPush = ____lualib.__TS__ArrayPush
4
3
  local ____exports = {}
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local __TS__ArrayPush = ____lualib.__TS__ArrayPush
4
3
  local ____exports = {}
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local __TS__ArrayPush = ____lualib.__TS__ArrayPush
4
3
  local ____exports = {}
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local __TS__Class = ____lualib.__TS__Class
4
3
  local Map = ____lualib.Map
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local __TS__Class = ____lualib.__TS__Class
4
3
  local __TS__Spread = ____lualib.__TS__Spread
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local __TS__Class = ____lualib.__TS__Class
4
3
  local __TS__New = ____lualib.__TS__New