isaacscript-common 2.0.1 → 2.0.4
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.
package/dist/constantsMax.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { PillColor, PlayerType } from "isaac-typescript-definitions";
|
|
1
2
|
export declare const NUM_CARDS: number;
|
|
2
3
|
export declare const MAX_CARD: number;
|
|
3
4
|
export declare const NUM_VANILLA_CARDS: number;
|
|
@@ -14,3 +15,5 @@ export declare const NUM_TRINKET_TYPES: number;
|
|
|
14
15
|
export declare const MAX_TRINKET_TYPE: number;
|
|
15
16
|
export declare const NUM_VANILLA_TRINKET_TYPES: number;
|
|
16
17
|
export declare const MAX_VANILLA_TRINKET_TYPE: number;
|
|
18
|
+
export declare const MAX_VANILLA_PLAYER_TYPE: PlayerType;
|
|
19
|
+
export declare const MAX_NORMAL_PILL_COLOR = PillColor.WHITE_YELLOW;
|
package/dist/constantsMax.lua
CHANGED
|
@@ -2,12 +2,15 @@ local ____exports = {}
|
|
|
2
2
|
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
3
3
|
local Card = ____isaac_2Dtypescript_2Ddefinitions.Card
|
|
4
4
|
local CollectibleType = ____isaac_2Dtypescript_2Ddefinitions.CollectibleType
|
|
5
|
+
local PillColor = ____isaac_2Dtypescript_2Ddefinitions.PillColor
|
|
5
6
|
local PillEffect = ____isaac_2Dtypescript_2Ddefinitions.PillEffect
|
|
7
|
+
local PlayerType = ____isaac_2Dtypescript_2Ddefinitions.PlayerType
|
|
6
8
|
local TrinketType = ____isaac_2Dtypescript_2Ddefinitions.TrinketType
|
|
7
9
|
local ____cachedClasses = require("cachedClasses")
|
|
8
10
|
local itemConfig = ____cachedClasses.itemConfig
|
|
9
11
|
local ____enums = require("functions.enums")
|
|
10
12
|
local getEnumLength = ____enums.getEnumLength
|
|
13
|
+
local getLastEnumValue = ____enums.getLastEnumValue
|
|
11
14
|
____exports.NUM_CARDS = itemConfig:GetCards().Size - 1
|
|
12
15
|
____exports.MAX_CARD = ____exports.NUM_CARDS
|
|
13
16
|
____exports.NUM_VANILLA_CARDS = getEnumLength(nil, Card) - 1
|
|
@@ -24,4 +27,6 @@ ____exports.NUM_TRINKET_TYPES = itemConfig:GetTrinkets().Size - 1
|
|
|
24
27
|
____exports.MAX_TRINKET_TYPE = ____exports.NUM_COLLECTIBLE_TYPES - 1
|
|
25
28
|
____exports.NUM_VANILLA_TRINKET_TYPES = getEnumLength(nil, TrinketType) - 1
|
|
26
29
|
____exports.MAX_VANILLA_TRINKET_TYPE = ____exports.NUM_VANILLA_COLLECTIBLE_TYPES
|
|
30
|
+
____exports.MAX_VANILLA_PLAYER_TYPE = getLastEnumValue(nil, PlayerType)
|
|
31
|
+
____exports.MAX_NORMAL_PILL_COLOR = PillColor.WHITE_YELLOW
|
|
27
32
|
return ____exports
|
|
@@ -29,3 +29,4 @@ export declare function isMoveActionTriggeredOnAnyInput(): boolean;
|
|
|
29
29
|
export declare function isShootAction(buttonAction: ButtonAction): boolean;
|
|
30
30
|
export declare function isShootActionPressedOnAnyInput(): boolean;
|
|
31
31
|
export declare function isShootActionTriggeredOnAnyInput(): boolean;
|
|
32
|
+
export declare function keyboardToString(keyboard: Keyboard): string;
|
package/dist/functions/input.lua
CHANGED
|
@@ -100,4 +100,7 @@ function ____exports.isShootActionTriggeredOnAnyInput(self)
|
|
|
100
100
|
function(____, shootAction) return ____exports.isActionTriggeredOnAnyInput(nil, shootAction) end
|
|
101
101
|
)
|
|
102
102
|
end
|
|
103
|
+
function ____exports.keyboardToString(self, keyboard)
|
|
104
|
+
return Keyboard[keyboard] or "unknown"
|
|
105
|
+
end
|
|
103
106
|
return ____exports
|