isaacscript-common 2.0.14 → 2.0.15
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.
|
@@ -1,9 +1,22 @@
|
|
|
1
1
|
import { CollectibleType, ItemType, TrinketType } from "isaac-typescript-definitions";
|
|
2
|
-
export
|
|
2
|
+
export declare type PickingUpItem = PickingUpItemNull | PickingUpItemCollectible | PickingUpItemTrinket;
|
|
3
|
+
export interface PickingUpItemNull {
|
|
3
4
|
/** Needed so that we can distinguish between picking up a collectible and a trinket. */
|
|
4
|
-
itemType: ItemType;
|
|
5
|
-
/** Equal to either the collectible type
|
|
6
|
-
subType:
|
|
5
|
+
itemType: ItemType.NULL;
|
|
6
|
+
/** Equal to either the collectible type, the trinket type, or 0. */
|
|
7
|
+
subType: 0;
|
|
8
|
+
}
|
|
9
|
+
export interface PickingUpItemCollectible {
|
|
10
|
+
/** Needed so that we can distinguish between picking up a collectible and a trinket. */
|
|
11
|
+
itemType: ItemType.PASSIVE | ItemType.ACTIVE | ItemType.FAMILIAR;
|
|
12
|
+
/** Equal to either the collectible type, the trinket type, or 0. */
|
|
13
|
+
subType: CollectibleType;
|
|
14
|
+
}
|
|
15
|
+
export interface PickingUpItemTrinket {
|
|
16
|
+
/** Needed so that we can distinguish between picking up a collectible and a trinket. */
|
|
17
|
+
itemType: ItemType.TRINKET;
|
|
18
|
+
/** Equal to either the collectible type, the trinket type, or 0. */
|
|
19
|
+
subType: TrinketType;
|
|
7
20
|
}
|
|
8
21
|
export declare function newPickingUpItem(): PickingUpItem;
|
|
9
22
|
export declare function resetPickingUpItem(pickingUpItem: PickingUpItem): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "isaacscript-common",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.15",
|
|
4
4
|
"description": "Helper functions for IsaacScript mods",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"isaac",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"dist/**/*.d.ts"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"isaac-typescript-definitions": "^2.0.
|
|
28
|
+
"isaac-typescript-definitions": "^2.0.20"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"isaacscript-lint": "^1.0.150",
|