isaacscript-common 33.5.1 → 33.7.0

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.
@@ -14478,6 +14478,16 @@ declare interface ReadonlySetConstructor {
14478
14478
  readonly prototype: ReadonlySet<any>;
14479
14479
  }
14480
14480
 
14481
+ /**
14482
+ * Helper function to let the Rebirth Item Tracker know that it should write the submitted text
14483
+ * string to a file. This is useful for capturing text in programs like Open Broadcaster Software
14484
+ * (OBS).
14485
+ *
14486
+ * The "item tracker" in this function does not refer to the in-game item tracker, but rather to the
14487
+ * Python program located at: https://github.com/Rchardon/RebirthItemTracker
14488
+ */
14489
+ export declare function rebirthItemTrackerWriteToFile(msg: string): void;
14490
+
14481
14491
  /**
14482
14492
  * Helper function to reload the current room using `Game.StartRoomTransition`.
14483
14493
  *
@@ -1,6 +1,6 @@
1
1
  --[[
2
2
 
3
- isaacscript-common 33.5.1
3
+ isaacscript-common 33.7.0
4
4
 
5
5
  This is the "isaacscript-common" library, which was created with the IsaacScript tool.
6
6
 
@@ -21745,10 +21745,6 @@ function ____exports.newCollectibleSprite(self, collectibleType)
21745
21745
  sprite:Play(defaultAnimation, true)
21746
21746
  return sprite
21747
21747
  end
21748
- function ____exports.removeCollectibleFromItemTracker(self, collectibleType)
21749
- local collectibleName = ____exports.getCollectibleName(nil, collectibleType)
21750
- Isaac.DebugString(((("Removing collectible " .. tostring(collectibleType)) .. " (") .. collectibleName) .. ") on player 0 (Player)")
21751
- end
21752
21748
  function ____exports.removeCollectiblePickupDelay(self, collectible)
21753
21749
  if not isCollectible(nil, collectible) then
21754
21750
  local entityID = getEntityID(nil, collectible)
@@ -35098,6 +35094,20 @@ function CustomGridEntities.prototype.isCustomGridEntity(self, gridEntityOrGridI
35098
35094
  return gridEntityTypeCustom ~= nil
35099
35095
  end
35100
35096
  __TS__DecorateLegacy({Exported}, CustomGridEntities.prototype, "isCustomGridEntity", true)
35097
+ return ____exports
35098
+ end,
35099
+ ["src.functions.external"] = function(...)
35100
+ local ____exports = {}
35101
+ local ____collectibles = require("src.functions.collectibles")
35102
+ local getCollectibleName = ____collectibles.getCollectibleName
35103
+ local REBIRTH_ITEM_TRACKER_WRITE_TO_FILE_COMMAND = "REBIRTH_ITEM_TRACKER_WRITE_TO_FILE"
35104
+ function ____exports.rebirthItemTrackerWriteToFile(self, msg)
35105
+ Isaac.DebugString((REBIRTH_ITEM_TRACKER_WRITE_TO_FILE_COMMAND .. " ") .. msg)
35106
+ end
35107
+ function ____exports.removeCollectibleFromItemTracker(self, collectibleType)
35108
+ local collectibleName = getCollectibleName(nil, collectibleType)
35109
+ Isaac.DebugString(((("Removing collectible " .. tostring(collectibleType)) .. " (") .. collectibleName) .. ") on player 0 (Player)")
35110
+ end
35101
35111
  return ____exports
35102
35112
  end,
35103
35113
  ["src.classes.features.callbackLogic.CustomRevive"] = function(...)
@@ -35117,8 +35127,8 @@ local ____ISCFeature = require("src.enums.ISCFeature")
35117
35127
  local ISCFeature = ____ISCFeature.ISCFeature
35118
35128
  local ____ModCallbackCustom = require("src.enums.ModCallbackCustom")
35119
35129
  local ModCallbackCustom = ____ModCallbackCustom.ModCallbackCustom
35120
- local ____collectibles = require("src.functions.collectibles")
35121
- local removeCollectibleFromItemTracker = ____collectibles.removeCollectibleFromItemTracker
35130
+ local ____external = require("src.functions.external")
35131
+ local removeCollectibleFromItemTracker = ____external.removeCollectibleFromItemTracker
35122
35132
  local ____log = require("src.functions.log")
35123
35133
  local log = ____log.log
35124
35134
  local ____logMisc = require("src.functions.logMisc")
@@ -54643,6 +54653,14 @@ do
54643
54653
  end
54644
54654
  end
54645
54655
  end
54656
+ do
54657
+ local ____export = require("src.functions.external")
54658
+ for ____exportKey, ____exportValue in pairs(____export) do
54659
+ if ____exportKey ~= "default" then
54660
+ ____exports[____exportKey] = ____exportValue
54661
+ end
54662
+ end
54663
+ end
54646
54664
  do
54647
54665
  local ____export = require("src.functions.familiars")
54648
54666
  for ____exportKey, ____exportValue in pairs(____export) do
@@ -55759,6 +55777,14 @@ do
55759
55777
  end
55760
55778
  end
55761
55779
  end
55780
+ do
55781
+ local ____export = require("src.functions.external")
55782
+ for ____exportKey, ____exportValue in pairs(____export) do
55783
+ if ____exportKey ~= "default" then
55784
+ ____exports[____exportKey] = ____exportValue
55785
+ end
55786
+ end
55787
+ end
55762
55788
  do
55763
55789
  local ____export = require("src.functions.familiars")
55764
55790
  for ____exportKey, ____exportValue in pairs(____export) do
@@ -14,8 +14,8 @@ local ____ISCFeature = require("src.enums.ISCFeature")
14
14
  local ISCFeature = ____ISCFeature.ISCFeature
15
15
  local ____ModCallbackCustom = require("src.enums.ModCallbackCustom")
16
16
  local ModCallbackCustom = ____ModCallbackCustom.ModCallbackCustom
17
- local ____collectibles = require("src.functions.collectibles")
18
- local removeCollectibleFromItemTracker = ____collectibles.removeCollectibleFromItemTracker
17
+ local ____external = require("src.functions.external")
18
+ local removeCollectibleFromItemTracker = ____external.removeCollectibleFromItemTracker
19
19
  local ____log = require("src.functions.log")
20
20
  local log = ____log.log
21
21
  local ____logMisc = require("src.functions.logMisc")
@@ -138,19 +138,6 @@ export declare function isVanillaCollectibleType(collectibleType: CollectibleTyp
138
138
  * If you intentionally want a question mark sprite, pass -1 as the collectible type.
139
139
  */
140
140
  export declare function newCollectibleSprite(collectibleType: CollectibleType | -1): Sprite;
141
- /**
142
- * Helper function to put a message in the log.txt file to let the Rebirth Item Tracker know that it
143
- * should remove an item.
144
- *
145
- * The "item tracker" in this function does not refer to the in-game item tracker, but rather to the
146
- * Python program located at: https://github.com/Rchardon/RebirthItemTracker
147
- *
148
- * This function is useful when you need to add a "fake" collectible to a player. Note that calling
149
- * this function is not necessary when removing items from players. For example, when you remove a
150
- * collectible with the `EntityPlayer.RemoveCollectible` method, a proper message is sent to the log
151
- * the item tracker will automatically remove it.
152
- */
153
- export declare function removeCollectibleFromItemTracker(collectibleType: CollectibleType): void;
154
141
  /**
155
142
  * Helper function to remove all pickup delay on a collectible. By default, collectibles have a 20
156
143
  * frame delay before they can be picked up by a player.
@@ -1 +1 @@
1
- {"version":3,"file":"collectibles.d.ts","sourceRoot":"","sources":["../../../src/functions/collectibles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,SAAS,EACT,uBAAuB,EACvB,aAAa,EACd,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAEL,eAAe,EAEf,oBAAoB,EAEpB,QAAQ,EACR,WAAW,EAGZ,MAAM,8BAA8B,CAAC;AA0CtC,wBAAgB,sBAAsB,CAAC,WAAW,EAAE,YAAY,GAAG,IAAI,CAStE;AAED,iGAAiG;AACjG,wBAAgB,uBAAuB,CACrC,4BAA4B,EAAE,YAAY,GAAG,eAAe,EAC5D,SAAS,EAAE,SAAS,GACnB,OAAO,CAYT;AAED,6FAA6F;AAC7F,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,GACd,OAAO,CAsBT;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CACtC,4BAA4B,EAAE,YAAY,GAAG,eAAe,GAC3D,oBAAoB,CAYtB;AAED;;;;;GAKG;AACH,wBAAgB,yBAAyB,CACvC,4BAA4B,EAAE,YAAY,GAAG,eAAe,GAC3D,MAAM,CAoBR;AAED;;;GAGG;AACH,wBAAgB,4BAA4B,CAC1C,4BAA4B,EAAE,YAAY,GAAG,eAAe,GAC3D,GAAG,CAgBL;AAED;;;GAGG;AACH,wBAAgB,6BAA6B,CAC3C,4BAA4B,EAAE,YAAY,GAAG,eAAe,EAC5D,MAAM,EAAE,YAAY,GACnB,WAAW,CA6Bb;AAED;;;;;;;;;GASG;AACH,wBAAgB,yBAAyB,CACvC,4BAA4B,EAAE,YAAY,GAAG,eAAe,GAAG,CAAC,CAAC,GAChE,MAAM,CAgBR;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CACtC,4BAA4B,EAAE,YAAY,GAAG,eAAe,GAC3D,GAAG,CAYL;AAED;;;GAGG;AACH,wBAAgB,s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;GAIG;AACH,wBAAgB,sBAAsB,CACpC,eAAe,EAAE,eAAe,GAC/B,OAAO,CAET;AAED,wBAAgB,sBAAsB,CACpC,eAAe,EAAE,eAAe,GAC/B,OAAO,CAGT;AAED,wBAAgB,wBAAwB,CACtC,eAAe,EAAE,eAAe,GAC/B,OAAO,CAET;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAClC,eAAe,EAAE,eAAe,GAAG,CAAC,CAAC,GACpC,MAAM,CAiBR;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,gCAAgC,CAC9C,eAAe,EAAE,eAAe,GAC/B,IAAI,CAQN;AAED;;;GAGG;AACH,wBAAgB,4BAA4B,CAAC,WAAW,EAAE,YAAY,GAAG,IAAI,CAS5E;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,WAAW,EAAE,YAAY,GAAG,IAAI,CASnE;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,WAAW,EAAE,YAAY,GAAG,IAAI,CAUnE;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,WAAW,EAAE,YAAY,GAAG,IAAI,CAuBtE;AAED;;;;GAIG;AACH,wBAAgB,0BAA0B,CACxC,WAAW,EAAE,YAAY,EACzB,uBAAuB,EAAE,uBAAuB,GAC/C,IAAI,CAWN;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,oBAAoB,CAClC,WAAW,EAAE,YAAY,EACzB,OAAO,EAAE,MAAM,GAAG,SAAS,GAC1B,IAAI,CAqBN;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CACnC,WAAW,EAAE,YAAY,EACzB,kBAAkB,EAAE,eAAe,GAClC,IAAI,CA2BN;AAED;;;GAGG;AACH,wBAAgB,qCAAqC,IAAI,IAAI,CAK5D"}
1
+ {"version":3,"file":"collectibles.d.ts","sourceRoot":"","sources":["../../../src/functions/collectibles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,SAAS,EACT,uBAAuB,EACvB,aAAa,E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C/B,OAAO,CAET;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAClC,eAAe,EAAE,eAAe,GAAG,CAAC,CAAC,GACpC,MAAM,CAiBR;AAED;;;GAGG;AACH,wBAAgB,4BAA4B,CAAC,WAAW,EAAE,YAAY,GAAG,IAAI,CAS5E;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,WAAW,EAAE,YAAY,GAAG,IAAI,CASnE;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,WAAW,EAAE,YAAY,GAAG,IAAI,CAUnE;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,WAAW,EAAE,YAAY,GAAG,IAAI,CAuBtE;AAED;;;;GAIG;AACH,wBAAgB,0BAA0B,CACxC,WAAW,EAAE,YAAY,EACzB,uBAAuB,EAAE,uBAAuB,GAC/C,IAAI,CAWN;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,oBAAoB,CAClC,WAAW,EAAE,YAAY,EACzB,OAAO,EAAE,MAAM,GAAG,SAAS,GAC1B,IAAI,CAqBN;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CACnC,WAAW,EAAE,YAAY,EACzB,kBAAkB,EAAE,eAAe,GAClC,IAAI,CA2BN;AAED;;;GAGG;AACH,wBAAgB,qCAAqC,IAAI,IAAI,CAK5D"}
@@ -407,20 +407,6 @@ function ____exports.newCollectibleSprite(self, collectibleType)
407
407
  sprite:Play(defaultAnimation, true)
408
408
  return sprite
409
409
  end
410
- --- Helper function to put a message in the log.txt file to let the Rebirth Item Tracker know that it
411
- -- should remove an item.
412
- --
413
- -- The "item tracker" in this function does not refer to the in-game item tracker, but rather to the
414
- -- Python program located at: https://github.com/Rchardon/RebirthItemTracker
415
- --
416
- -- This function is useful when you need to add a "fake" collectible to a player. Note that calling
417
- -- this function is not necessary when removing items from players. For example, when you remove a
418
- -- collectible with the `EntityPlayer.RemoveCollectible` method, a proper message is sent to the log
419
- -- the item tracker will automatically remove it.
420
- function ____exports.removeCollectibleFromItemTracker(self, collectibleType)
421
- local collectibleName = ____exports.getCollectibleName(nil, collectibleType)
422
- Isaac.DebugString(((("Removing collectible " .. tostring(collectibleType)) .. " (") .. collectibleName) .. ") on player 0 (Player)")
423
- end
424
410
  --- Helper function to remove all pickup delay on a collectible. By default, collectibles have a 20
425
411
  -- frame delay before they can be picked up by a player.
426
412
  function ____exports.removeCollectiblePickupDelay(self, collectible)
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Helper functions that have to do with external programs.
3
+ *
4
+ * @module
5
+ */
6
+ import type { CollectibleType } from "isaac-typescript-definitions";
7
+ /**
8
+ * Helper function to let the Rebirth Item Tracker know that it should write the submitted text
9
+ * string to a file. This is useful for capturing text in programs like Open Broadcaster Software
10
+ * (OBS).
11
+ *
12
+ * The "item tracker" in this function does not refer to the in-game item tracker, but rather to the
13
+ * Python program located at: https://github.com/Rchardon/RebirthItemTracker
14
+ */
15
+ export declare function rebirthItemTrackerWriteToFile(msg: string): void;
16
+ /**
17
+ * Helper function to put a message in the log.txt file to let the Rebirth Item Tracker know that it
18
+ * should remove an item.
19
+ *
20
+ * The "item tracker" in this function does not refer to the in-game item tracker, but rather to the
21
+ * Python program located at: https://github.com/Rchardon/RebirthItemTracker
22
+ *
23
+ * This function is useful when you need to add a "fake" collectible to a player. Note that calling
24
+ * this function is not necessary when removing items from players. For example, when you remove a
25
+ * collectible with the `EntityPlayer.RemoveCollectible` method, a proper message is sent to the log
26
+ * the item tracker will automatically remove it.
27
+ */
28
+ export declare function removeCollectibleFromItemTracker(collectibleType: CollectibleType): void;
29
+ //# sourceMappingURL=external.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"external.d.ts","sourceRoot":"","sources":["../../../src/functions/external.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAMpE;;;;;;;GAOG;AACH,wBAAgB,6BAA6B,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAI/D;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,gCAAgC,CAC9C,eAAe,EAAE,eAAe,GAC/B,IAAI,CAQN"}
@@ -0,0 +1,28 @@
1
+ local ____exports = {}
2
+ local ____collectibles = require("src.functions.collectibles")
3
+ local getCollectibleName = ____collectibles.getCollectibleName
4
+ local REBIRTH_ITEM_TRACKER_WRITE_TO_FILE_COMMAND = "REBIRTH_ITEM_TRACKER_WRITE_TO_FILE"
5
+ --- Helper function to let the Rebirth Item Tracker know that it should write the submitted text
6
+ -- string to a file. This is useful for capturing text in programs like Open Broadcaster Software
7
+ -- (OBS).
8
+ --
9
+ -- The "item tracker" in this function does not refer to the in-game item tracker, but rather to the
10
+ -- Python program located at: https://github.com/Rchardon/RebirthItemTracker
11
+ function ____exports.rebirthItemTrackerWriteToFile(self, msg)
12
+ Isaac.DebugString((REBIRTH_ITEM_TRACKER_WRITE_TO_FILE_COMMAND .. " ") .. msg)
13
+ end
14
+ --- Helper function to put a message in the log.txt file to let the Rebirth Item Tracker know that it
15
+ -- should remove an item.
16
+ --
17
+ -- The "item tracker" in this function does not refer to the in-game item tracker, but rather to the
18
+ -- Python program located at: https://github.com/Rchardon/RebirthItemTracker
19
+ --
20
+ -- This function is useful when you need to add a "fake" collectible to a player. Note that calling
21
+ -- this function is not necessary when removing items from players. For example, when you remove a
22
+ -- collectible with the `EntityPlayer.RemoveCollectible` method, a proper message is sent to the log
23
+ -- the item tracker will automatically remove it.
24
+ function ____exports.removeCollectibleFromItemTracker(self, collectibleType)
25
+ local collectibleName = getCollectibleName(nil, collectibleType)
26
+ Isaac.DebugString(((("Removing collectible " .. tostring(collectibleType)) .. " (") .. collectibleName) .. ") on player 0 (Player)")
27
+ end
28
+ return ____exports
@@ -50,6 +50,7 @@ export * from "./functions/entities";
50
50
  export * from "./functions/entitiesSpecific";
51
51
  export * from "./functions/entityTypes";
52
52
  export * from "./functions/enums";
53
+ export * from "./functions/external";
53
54
  export * from "./functions/familiars";
54
55
  export * from "./functions/flag";
55
56
  export * from "./functions/globals";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,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AC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sBAAsB,CAAC;AACrC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC"}
@@ -415,6 +415,14 @@ do
415
415
  end
416
416
  end
417
417
  end
418
+ do
419
+ local ____export = require("src.functions.external")
420
+ for ____exportKey, ____exportValue in pairs(____export) do
421
+ if ____exportKey ~= "default" then
422
+ ____exports[____exportKey] = ____exportValue
423
+ end
424
+ end
425
+ end
418
426
  do
419
427
  local ____export = require("src.functions.familiars")
420
428
  for ____exportKey, ____exportValue in pairs(____export) do
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isaacscript-common",
3
- "version": "33.5.1",
3
+ "version": "33.7.0",
4
4
  "description": "Helper functions and features for IsaacScript mods.",
5
5
  "keywords": [
6
6
  "isaac",
@@ -25,6 +25,6 @@
25
25
  "main": "dist/src/index",
26
26
  "types": "dist/index.rollup.d.ts",
27
27
  "dependencies": {
28
- "isaac-typescript-definitions": "^16.0.0"
28
+ "isaac-typescript-definitions": "^16.1.0"
29
29
  }
30
30
  }
@@ -8,7 +8,7 @@ import {
8
8
  import { sfxManager } from "../../../core/cachedClasses";
9
9
  import { ISCFeature } from "../../../enums/ISCFeature";
10
10
  import { ModCallbackCustom } from "../../../enums/ModCallbackCustom";
11
- import { removeCollectibleFromItemTracker } from "../../../functions/collectibles";
11
+ import { removeCollectibleFromItemTracker } from "../../../functions/external";
12
12
  import { log } from "../../../functions/log";
13
13
  import { logError } from "../../../functions/logMisc";
14
14
  import {
@@ -566,30 +566,6 @@ export function newCollectibleSprite(
566
566
  return sprite;
567
567
  }
568
568
 
569
- /**
570
- * Helper function to put a message in the log.txt file to let the Rebirth Item Tracker know that it
571
- * should remove an item.
572
- *
573
- * The "item tracker" in this function does not refer to the in-game item tracker, but rather to the
574
- * Python program located at: https://github.com/Rchardon/RebirthItemTracker
575
- *
576
- * This function is useful when you need to add a "fake" collectible to a player. Note that calling
577
- * this function is not necessary when removing items from players. For example, when you remove a
578
- * collectible with the `EntityPlayer.RemoveCollectible` method, a proper message is sent to the log
579
- * the item tracker will automatically remove it.
580
- */
581
- export function removeCollectibleFromItemTracker(
582
- collectibleType: CollectibleType,
583
- ): void {
584
- const collectibleName = getCollectibleName(collectibleType);
585
-
586
- // This cannot use the "log" function since the prefix will prevent the Rebirth Item Tracker from
587
- // recognizing the message.
588
- Isaac.DebugString(
589
- `Removing collectible ${collectibleType} (${collectibleName}) on player 0 (Player)`,
590
- );
591
- }
592
-
593
569
  /**
594
570
  * Helper function to remove all pickup delay on a collectible. By default, collectibles have a 20
595
571
  * frame delay before they can be picked up by a player.
@@ -0,0 +1,49 @@
1
+ /**
2
+ * Helper functions that have to do with external programs.
3
+ *
4
+ * @module
5
+ */
6
+
7
+ import type { CollectibleType } from "isaac-typescript-definitions";
8
+ import { getCollectibleName } from "./collectibles";
9
+
10
+ const REBIRTH_ITEM_TRACKER_WRITE_TO_FILE_COMMAND =
11
+ "REBIRTH_ITEM_TRACKER_WRITE_TO_FILE";
12
+
13
+ /**
14
+ * Helper function to let the Rebirth Item Tracker know that it should write the submitted text
15
+ * string to a file. This is useful for capturing text in programs like Open Broadcaster Software
16
+ * (OBS).
17
+ *
18
+ * The "item tracker" in this function does not refer to the in-game item tracker, but rather to the
19
+ * Python program located at: https://github.com/Rchardon/RebirthItemTracker
20
+ */
21
+ export function rebirthItemTrackerWriteToFile(msg: string): void {
22
+ // This cannot use the "log" function since the prefix will prevent the Rebirth Item Tracker from
23
+ // recognizing the message.
24
+ Isaac.DebugString(`${REBIRTH_ITEM_TRACKER_WRITE_TO_FILE_COMMAND} ${msg}`);
25
+ }
26
+
27
+ /**
28
+ * Helper function to put a message in the log.txt file to let the Rebirth Item Tracker know that it
29
+ * should remove an item.
30
+ *
31
+ * The "item tracker" in this function does not refer to the in-game item tracker, but rather to the
32
+ * Python program located at: https://github.com/Rchardon/RebirthItemTracker
33
+ *
34
+ * This function is useful when you need to add a "fake" collectible to a player. Note that calling
35
+ * this function is not necessary when removing items from players. For example, when you remove a
36
+ * collectible with the `EntityPlayer.RemoveCollectible` method, a proper message is sent to the log
37
+ * the item tracker will automatically remove it.
38
+ */
39
+ export function removeCollectibleFromItemTracker(
40
+ collectibleType: CollectibleType,
41
+ ): void {
42
+ const collectibleName = getCollectibleName(collectibleType);
43
+
44
+ // This cannot use the "log" function since the prefix will prevent the Rebirth Item Tracker from
45
+ // recognizing the message.
46
+ Isaac.DebugString(
47
+ `Removing collectible ${collectibleType} (${collectibleName}) on player 0 (Player)`,
48
+ );
49
+ }
package/src/index.ts CHANGED
@@ -50,6 +50,7 @@ export * from "./functions/entities";
50
50
  export * from "./functions/entitiesSpecific";
51
51
  export * from "./functions/entityTypes";
52
52
  export * from "./functions/enums";
53
+ export * from "./functions/external";
53
54
  export * from "./functions/familiars";
54
55
  export * from "./functions/flag";
55
56
  export * from "./functions/globals";