isaacscript-common 1.2.161 → 1.2.164
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/callbacks/customRevive.lua +2 -2
- package/dist/callbacks/itemPickup.lua +4 -4
- package/dist/callbacks/postCustomDoorEnter.d.ts +1 -1
- package/dist/callbacks/postCustomDoorEnter.lua +2 -2
- package/dist/callbacks/postGridEntityCollision.lua +2 -2
- package/dist/callbacks/postPlayerChangeHealth.lua +6 -6
- package/dist/callbacks/postPlayerChangeType.lua +4 -4
- package/dist/callbacks/postPurchase.lua +4 -4
- package/dist/callbacks/postSlotRender.lua +2 -2
- package/dist/callbacks/postTransformation.lua +4 -4
- package/dist/callbacks/postTrinketBreak.lua +4 -4
- package/dist/callbacks/preBerserkDeath.lua +2 -2
- package/dist/callbacks/subscriptions/postPlayerChangeHealth.d.ts +1 -1
- package/dist/classes/DefaultMap.d.ts +74 -0
- package/dist/classes/DefaultMap.lua +85 -0
- package/dist/classes/ModUpgraded.d.ts +19 -0
- package/dist/classes/ModUpgraded.lua +73 -0
- package/dist/enums/CardType.d.ts +40 -0
- package/dist/enums/CardType.lua +20 -0
- package/dist/enums/CollectiblePedestalType.d.ts +38 -0
- package/dist/enums/CollectiblePedestalType.lua +36 -0
- package/dist/enums/HealthType.d.ts +16 -0
- package/dist/enums/HealthType.lua +22 -0
- package/dist/enums/ModCallbacksCustom.d.ts +61 -0
- package/dist/enums/ModCallbacksCustom.lua +108 -0
- package/dist/enums/PillEffectClass.d.ts +17 -0
- package/dist/enums/PillEffectClass.lua +16 -0
- package/dist/enums/PillEffectType.d.ts +16 -0
- package/dist/enums/PillEffectType.lua +14 -0
- package/dist/enums/PocketItemType.d.ts +8 -0
- package/dist/enums/PocketItemType.lua +16 -0
- package/dist/enums/private/SaveDataKeys.d.ts +6 -0
- package/dist/enums/private/SaveDataKeys.lua +8 -0
- package/dist/enums/private/SerializationBrand.d.ts +15 -0
- package/dist/enums/private/SerializationBrand.lua +24 -0
- package/dist/features/deployJSONRoom.lua +2 -2
- package/dist/features/extraConsoleCommands/commands.lua +2 -2
- package/dist/features/isPonyActive.lua +2 -2
- package/dist/features/playerInventory.lua +4 -4
- package/dist/features/preventCollectibleRotate.lua +4 -2
- package/dist/features/saveDataManager/main.lua +4 -4
- package/dist/features/saveDataManager/merge.lua +3 -3
- package/dist/functions/cards.d.ts +1 -1
- package/dist/functions/cards.lua +2 -2
- package/dist/functions/collectibles.d.ts +1 -1
- package/dist/functions/deepCopy.lua +4 -4
- package/dist/functions/deepCopyTests.lua +2 -2
- package/dist/functions/gridEntity.lua +1 -4
- package/dist/functions/map.d.ts +1 -1
- package/dist/functions/pills.d.ts +2 -2
- package/dist/functions/player.d.ts +1 -1
- package/dist/functions/player.lua +2 -2
- package/dist/functions/playerDataStructures.d.ts +1 -1
- package/dist/functions/playerHealth.d.ts +1 -1
- package/dist/functions/playerHealth.lua +1 -1
- package/dist/functions/pocketItems.lua +1 -1
- package/dist/functions/string.d.ts +1 -0
- package/dist/functions/string.lua +6 -0
- package/dist/functions/transformations.lua +2 -2
- package/dist/index.d.ts +10 -8
- package/dist/index.lua +73 -57
- package/dist/objects/callbackRegisterFunctions.d.ts +1 -1
- package/dist/objects/callbackRegisterFunctions.lua +1 -1
- package/dist/objects/cardTypes.d.ts +1 -1
- package/dist/objects/cardTypes.lua +1 -1
- package/dist/objects/directionNames.d.ts +4 -0
- package/dist/objects/directionNames.lua +10 -0
- package/dist/objects/pillEffectClasses.d.ts +1 -1
- package/dist/objects/pillEffectClasses.lua +1 -1
- package/dist/objects/pillEffectTypes.d.ts +1 -1
- package/dist/objects/pillEffectTypes.lua +1 -1
- package/dist/types/AddCallbackParametersCustom.d.ts +1 -1
- package/dist/types/AddCallbackParametersCustom.lua +1 -1
- package/dist/types/PocketItemDescription.d.ts +1 -1
- package/dist/types/private/SaveData.d.ts +0 -6
- package/dist/types/private/SaveData.lua +0 -5
- package/dist/upgradeMod.d.ts +1 -1
- package/dist/upgradeMod.lua +2 -2
- package/package.json +1 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
+
local ____exports = {}
|
|
3
|
+
____exports.HealthType = HealthType or ({})
|
|
4
|
+
____exports.HealthType.RED = 0
|
|
5
|
+
____exports.HealthType[____exports.HealthType.RED] = "RED"
|
|
6
|
+
____exports.HealthType.SOUL = 1
|
|
7
|
+
____exports.HealthType[____exports.HealthType.SOUL] = "SOUL"
|
|
8
|
+
____exports.HealthType.ETERNAL = 2
|
|
9
|
+
____exports.HealthType[____exports.HealthType.ETERNAL] = "ETERNAL"
|
|
10
|
+
____exports.HealthType.BLACK = 3
|
|
11
|
+
____exports.HealthType[____exports.HealthType.BLACK] = "BLACK"
|
|
12
|
+
____exports.HealthType.GOLDEN = 4
|
|
13
|
+
____exports.HealthType[____exports.HealthType.GOLDEN] = "GOLDEN"
|
|
14
|
+
____exports.HealthType.BONE = 5
|
|
15
|
+
____exports.HealthType[____exports.HealthType.BONE] = "BONE"
|
|
16
|
+
____exports.HealthType.ROTTEN = 6
|
|
17
|
+
____exports.HealthType[____exports.HealthType.ROTTEN] = "ROTTEN"
|
|
18
|
+
____exports.HealthType.BROKEN = 7
|
|
19
|
+
____exports.HealthType[____exports.HealthType.BROKEN] = "BROKEN"
|
|
20
|
+
____exports.HealthType.MAX_HEARTS = 8
|
|
21
|
+
____exports.HealthType[____exports.HealthType.MAX_HEARTS] = "MAX_HEARTS"
|
|
22
|
+
return ____exports
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* These are the custom callbacks available for use once the mod object has been upgraded.
|
|
3
|
+
* Also see the [[`upgradeMod`]] function.
|
|
4
|
+
*
|
|
5
|
+
* For a better listing of all custom callbacks, check out the
|
|
6
|
+
* [Function Signatures](https://isaacscript.github.io/docs/function-signatures#custom-callbacks).
|
|
7
|
+
*/
|
|
8
|
+
export declare enum ModCallbacksCustom {
|
|
9
|
+
MC_POST_GAME_STARTED_REORDERED = 0,
|
|
10
|
+
MC_POST_NEW_LEVEL_REORDERED = 1,
|
|
11
|
+
MC_POST_NEW_ROOM_REORDERED = 2,
|
|
12
|
+
MC_POST_PLAYER_INIT_REORDERED = 3,
|
|
13
|
+
MC_POST_PEFFECT_UPDATE_REORDERED = 4,
|
|
14
|
+
MC_POST_PLAYER_UPDATE_REORDERED = 5,
|
|
15
|
+
MC_POST_PLAYER_RENDER_REORDERED = 6,
|
|
16
|
+
MC_POST_NEW_ROOM_EARLY = 7,
|
|
17
|
+
MC_PRE_NEW_LEVEL = 8,
|
|
18
|
+
MC_ROOM_CLEAR_CHANGE = 9,
|
|
19
|
+
MC_POST_PLAYER_INIT_LATE = 10,
|
|
20
|
+
MC_POST_TEAR_INIT_LATE = 11,
|
|
21
|
+
MC_POST_TEAR_INIT_VERY_LATE = 12,
|
|
22
|
+
MC_POST_FAMILIAR_INIT_LATE = 13,
|
|
23
|
+
MC_POST_BOMB_INIT_LATE = 14,
|
|
24
|
+
MC_POST_PICKUP_INIT_LATE = 15,
|
|
25
|
+
MC_POST_LASER_INIT_LATE = 16,
|
|
26
|
+
MC_POST_KNIFE_INIT_LATE = 17,
|
|
27
|
+
MC_POST_PROJECTILE_INIT_LATE = 18,
|
|
28
|
+
MC_POST_NPC_INIT_LATE = 19,
|
|
29
|
+
MC_POST_EFFECT_INIT_LATE = 20,
|
|
30
|
+
MC_POST_PICKUP_COLLECT = 21,
|
|
31
|
+
MC_PRE_ITEM_PICKUP = 22,
|
|
32
|
+
MC_POST_ITEM_PICKUP = 23,
|
|
33
|
+
MC_POST_PLAYER_CHANGE_TYPE = 24,
|
|
34
|
+
MC_POST_PLAYER_CHANGE_HEALTH = 25,
|
|
35
|
+
MC_POST_PLAYER_FATAL_DAMAGE = 26,
|
|
36
|
+
MC_PRE_BERSERK_DEATH = 27,
|
|
37
|
+
MC_PRE_CUSTOM_REVIVE = 28,
|
|
38
|
+
MC_POST_CUSTOM_REVIVE = 29,
|
|
39
|
+
MC_POST_FLIP = 30,
|
|
40
|
+
MC_POST_FIRST_FLIP = 31,
|
|
41
|
+
MC_POST_ESAU_JR = 32,
|
|
42
|
+
MC_POST_FIRST_ESAU_JR = 33,
|
|
43
|
+
MC_POST_TRANSFORMATION = 34,
|
|
44
|
+
MC_POST_PURCHASE = 35,
|
|
45
|
+
MC_POST_SACRIFICE = 36,
|
|
46
|
+
MC_POST_CURSED_TELEPORT = 37,
|
|
47
|
+
MC_POST_TRINKET_BREAK = 38,
|
|
48
|
+
MC_POST_SLOT_INIT = 39,
|
|
49
|
+
MC_POST_SLOT_UPDATE = 40,
|
|
50
|
+
MC_POST_SLOT_RENDER = 41,
|
|
51
|
+
MC_POST_SLOT_ANIMATION_CHANGED = 42,
|
|
52
|
+
MC_POST_SLOT_DESTROYED = 43,
|
|
53
|
+
MC_POST_GRID_ENTITY_INIT = 44,
|
|
54
|
+
MC_POST_GRID_ENTITY_UPDATE = 45,
|
|
55
|
+
MC_POST_GRID_ENTITY_REMOVE = 46,
|
|
56
|
+
MC_POST_GRID_ENTITY_STATE_CHANGE = 47,
|
|
57
|
+
MC_POST_GRID_ENTITY_BROKEN = 48,
|
|
58
|
+
MC_POST_GRID_ENTITY_COLLISION = 49,
|
|
59
|
+
MC_POST_BONE_SWING = 50,
|
|
60
|
+
MC_POST_CUSTOM_DOOR_ENTER = 51
|
|
61
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
+
local ____exports = {}
|
|
3
|
+
____exports.ModCallbacksCustom = ModCallbacksCustom or ({})
|
|
4
|
+
____exports.ModCallbacksCustom.MC_POST_GAME_STARTED_REORDERED = 0
|
|
5
|
+
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_GAME_STARTED_REORDERED] = "MC_POST_GAME_STARTED_REORDERED"
|
|
6
|
+
____exports.ModCallbacksCustom.MC_POST_NEW_LEVEL_REORDERED = 1
|
|
7
|
+
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_NEW_LEVEL_REORDERED] = "MC_POST_NEW_LEVEL_REORDERED"
|
|
8
|
+
____exports.ModCallbacksCustom.MC_POST_NEW_ROOM_REORDERED = 2
|
|
9
|
+
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_NEW_ROOM_REORDERED] = "MC_POST_NEW_ROOM_REORDERED"
|
|
10
|
+
____exports.ModCallbacksCustom.MC_POST_PLAYER_INIT_REORDERED = 3
|
|
11
|
+
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_PLAYER_INIT_REORDERED] = "MC_POST_PLAYER_INIT_REORDERED"
|
|
12
|
+
____exports.ModCallbacksCustom.MC_POST_PEFFECT_UPDATE_REORDERED = 4
|
|
13
|
+
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_PEFFECT_UPDATE_REORDERED] = "MC_POST_PEFFECT_UPDATE_REORDERED"
|
|
14
|
+
____exports.ModCallbacksCustom.MC_POST_PLAYER_UPDATE_REORDERED = 5
|
|
15
|
+
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_PLAYER_UPDATE_REORDERED] = "MC_POST_PLAYER_UPDATE_REORDERED"
|
|
16
|
+
____exports.ModCallbacksCustom.MC_POST_PLAYER_RENDER_REORDERED = 6
|
|
17
|
+
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_PLAYER_RENDER_REORDERED] = "MC_POST_PLAYER_RENDER_REORDERED"
|
|
18
|
+
____exports.ModCallbacksCustom.MC_POST_NEW_ROOM_EARLY = 7
|
|
19
|
+
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_NEW_ROOM_EARLY] = "MC_POST_NEW_ROOM_EARLY"
|
|
20
|
+
____exports.ModCallbacksCustom.MC_PRE_NEW_LEVEL = 8
|
|
21
|
+
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_PRE_NEW_LEVEL] = "MC_PRE_NEW_LEVEL"
|
|
22
|
+
____exports.ModCallbacksCustom.MC_ROOM_CLEAR_CHANGE = 9
|
|
23
|
+
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_ROOM_CLEAR_CHANGE] = "MC_ROOM_CLEAR_CHANGE"
|
|
24
|
+
____exports.ModCallbacksCustom.MC_POST_PLAYER_INIT_LATE = 10
|
|
25
|
+
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_PLAYER_INIT_LATE] = "MC_POST_PLAYER_INIT_LATE"
|
|
26
|
+
____exports.ModCallbacksCustom.MC_POST_TEAR_INIT_LATE = 11
|
|
27
|
+
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_TEAR_INIT_LATE] = "MC_POST_TEAR_INIT_LATE"
|
|
28
|
+
____exports.ModCallbacksCustom.MC_POST_TEAR_INIT_VERY_LATE = 12
|
|
29
|
+
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_TEAR_INIT_VERY_LATE] = "MC_POST_TEAR_INIT_VERY_LATE"
|
|
30
|
+
____exports.ModCallbacksCustom.MC_POST_FAMILIAR_INIT_LATE = 13
|
|
31
|
+
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_FAMILIAR_INIT_LATE] = "MC_POST_FAMILIAR_INIT_LATE"
|
|
32
|
+
____exports.ModCallbacksCustom.MC_POST_BOMB_INIT_LATE = 14
|
|
33
|
+
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_BOMB_INIT_LATE] = "MC_POST_BOMB_INIT_LATE"
|
|
34
|
+
____exports.ModCallbacksCustom.MC_POST_PICKUP_INIT_LATE = 15
|
|
35
|
+
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_PICKUP_INIT_LATE] = "MC_POST_PICKUP_INIT_LATE"
|
|
36
|
+
____exports.ModCallbacksCustom.MC_POST_LASER_INIT_LATE = 16
|
|
37
|
+
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_LASER_INIT_LATE] = "MC_POST_LASER_INIT_LATE"
|
|
38
|
+
____exports.ModCallbacksCustom.MC_POST_KNIFE_INIT_LATE = 17
|
|
39
|
+
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_KNIFE_INIT_LATE] = "MC_POST_KNIFE_INIT_LATE"
|
|
40
|
+
____exports.ModCallbacksCustom.MC_POST_PROJECTILE_INIT_LATE = 18
|
|
41
|
+
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_PROJECTILE_INIT_LATE] = "MC_POST_PROJECTILE_INIT_LATE"
|
|
42
|
+
____exports.ModCallbacksCustom.MC_POST_NPC_INIT_LATE = 19
|
|
43
|
+
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_NPC_INIT_LATE] = "MC_POST_NPC_INIT_LATE"
|
|
44
|
+
____exports.ModCallbacksCustom.MC_POST_EFFECT_INIT_LATE = 20
|
|
45
|
+
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_EFFECT_INIT_LATE] = "MC_POST_EFFECT_INIT_LATE"
|
|
46
|
+
____exports.ModCallbacksCustom.MC_POST_PICKUP_COLLECT = 21
|
|
47
|
+
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_PICKUP_COLLECT] = "MC_POST_PICKUP_COLLECT"
|
|
48
|
+
____exports.ModCallbacksCustom.MC_PRE_ITEM_PICKUP = 22
|
|
49
|
+
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_PRE_ITEM_PICKUP] = "MC_PRE_ITEM_PICKUP"
|
|
50
|
+
____exports.ModCallbacksCustom.MC_POST_ITEM_PICKUP = 23
|
|
51
|
+
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_ITEM_PICKUP] = "MC_POST_ITEM_PICKUP"
|
|
52
|
+
____exports.ModCallbacksCustom.MC_POST_PLAYER_CHANGE_TYPE = 24
|
|
53
|
+
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_PLAYER_CHANGE_TYPE] = "MC_POST_PLAYER_CHANGE_TYPE"
|
|
54
|
+
____exports.ModCallbacksCustom.MC_POST_PLAYER_CHANGE_HEALTH = 25
|
|
55
|
+
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_PLAYER_CHANGE_HEALTH] = "MC_POST_PLAYER_CHANGE_HEALTH"
|
|
56
|
+
____exports.ModCallbacksCustom.MC_POST_PLAYER_FATAL_DAMAGE = 26
|
|
57
|
+
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_PLAYER_FATAL_DAMAGE] = "MC_POST_PLAYER_FATAL_DAMAGE"
|
|
58
|
+
____exports.ModCallbacksCustom.MC_PRE_BERSERK_DEATH = 27
|
|
59
|
+
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_PRE_BERSERK_DEATH] = "MC_PRE_BERSERK_DEATH"
|
|
60
|
+
____exports.ModCallbacksCustom.MC_PRE_CUSTOM_REVIVE = 28
|
|
61
|
+
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_PRE_CUSTOM_REVIVE] = "MC_PRE_CUSTOM_REVIVE"
|
|
62
|
+
____exports.ModCallbacksCustom.MC_POST_CUSTOM_REVIVE = 29
|
|
63
|
+
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_CUSTOM_REVIVE] = "MC_POST_CUSTOM_REVIVE"
|
|
64
|
+
____exports.ModCallbacksCustom.MC_POST_FLIP = 30
|
|
65
|
+
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_FLIP] = "MC_POST_FLIP"
|
|
66
|
+
____exports.ModCallbacksCustom.MC_POST_FIRST_FLIP = 31
|
|
67
|
+
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_FIRST_FLIP] = "MC_POST_FIRST_FLIP"
|
|
68
|
+
____exports.ModCallbacksCustom.MC_POST_ESAU_JR = 32
|
|
69
|
+
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_ESAU_JR] = "MC_POST_ESAU_JR"
|
|
70
|
+
____exports.ModCallbacksCustom.MC_POST_FIRST_ESAU_JR = 33
|
|
71
|
+
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_FIRST_ESAU_JR] = "MC_POST_FIRST_ESAU_JR"
|
|
72
|
+
____exports.ModCallbacksCustom.MC_POST_TRANSFORMATION = 34
|
|
73
|
+
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_TRANSFORMATION] = "MC_POST_TRANSFORMATION"
|
|
74
|
+
____exports.ModCallbacksCustom.MC_POST_PURCHASE = 35
|
|
75
|
+
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_PURCHASE] = "MC_POST_PURCHASE"
|
|
76
|
+
____exports.ModCallbacksCustom.MC_POST_SACRIFICE = 36
|
|
77
|
+
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_SACRIFICE] = "MC_POST_SACRIFICE"
|
|
78
|
+
____exports.ModCallbacksCustom.MC_POST_CURSED_TELEPORT = 37
|
|
79
|
+
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_CURSED_TELEPORT] = "MC_POST_CURSED_TELEPORT"
|
|
80
|
+
____exports.ModCallbacksCustom.MC_POST_TRINKET_BREAK = 38
|
|
81
|
+
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_TRINKET_BREAK] = "MC_POST_TRINKET_BREAK"
|
|
82
|
+
____exports.ModCallbacksCustom.MC_POST_SLOT_INIT = 39
|
|
83
|
+
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_SLOT_INIT] = "MC_POST_SLOT_INIT"
|
|
84
|
+
____exports.ModCallbacksCustom.MC_POST_SLOT_UPDATE = 40
|
|
85
|
+
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_SLOT_UPDATE] = "MC_POST_SLOT_UPDATE"
|
|
86
|
+
____exports.ModCallbacksCustom.MC_POST_SLOT_RENDER = 41
|
|
87
|
+
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_SLOT_RENDER] = "MC_POST_SLOT_RENDER"
|
|
88
|
+
____exports.ModCallbacksCustom.MC_POST_SLOT_ANIMATION_CHANGED = 42
|
|
89
|
+
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_SLOT_ANIMATION_CHANGED] = "MC_POST_SLOT_ANIMATION_CHANGED"
|
|
90
|
+
____exports.ModCallbacksCustom.MC_POST_SLOT_DESTROYED = 43
|
|
91
|
+
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_SLOT_DESTROYED] = "MC_POST_SLOT_DESTROYED"
|
|
92
|
+
____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_INIT = 44
|
|
93
|
+
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_INIT] = "MC_POST_GRID_ENTITY_INIT"
|
|
94
|
+
____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_UPDATE = 45
|
|
95
|
+
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_UPDATE] = "MC_POST_GRID_ENTITY_UPDATE"
|
|
96
|
+
____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_REMOVE = 46
|
|
97
|
+
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_REMOVE] = "MC_POST_GRID_ENTITY_REMOVE"
|
|
98
|
+
____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_STATE_CHANGE = 47
|
|
99
|
+
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_STATE_CHANGE] = "MC_POST_GRID_ENTITY_STATE_CHANGE"
|
|
100
|
+
____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_BROKEN = 48
|
|
101
|
+
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_BROKEN] = "MC_POST_GRID_ENTITY_BROKEN"
|
|
102
|
+
____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_COLLISION = 49
|
|
103
|
+
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_COLLISION] = "MC_POST_GRID_ENTITY_COLLISION"
|
|
104
|
+
____exports.ModCallbacksCustom.MC_POST_BONE_SWING = 50
|
|
105
|
+
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_BONE_SWING] = "MC_POST_BONE_SWING"
|
|
106
|
+
____exports.ModCallbacksCustom.MC_POST_CUSTOM_DOOR_ENTER = 51
|
|
107
|
+
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_CUSTOM_DOOR_ENTER] = "MC_POST_CUSTOM_DOOR_ENTER"
|
|
108
|
+
return ____exports
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Equal to the number in the "class" tag in the "pocketitems.xml" file. The "+" or "-" part of the
|
|
3
|
+
* tag is contained within the `PillEffectType` enum.
|
|
4
|
+
*/
|
|
5
|
+
export declare enum PillEffectClass {
|
|
6
|
+
/** No valid pill will have this type. */
|
|
7
|
+
NULL = 0,
|
|
8
|
+
JOKE = 1,
|
|
9
|
+
MINOR = 2,
|
|
10
|
+
MEDIUM = 3,
|
|
11
|
+
MAJOR = 4,
|
|
12
|
+
/**
|
|
13
|
+
* This is not a real `PillEffectClass`. Due to limitations in the API, getting the real class of
|
|
14
|
+
* modded pill effects is not possible, so this value is returned instead.
|
|
15
|
+
*/
|
|
16
|
+
MODDED = 5
|
|
17
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
+
local ____exports = {}
|
|
3
|
+
____exports.PillEffectClass = PillEffectClass or ({})
|
|
4
|
+
____exports.PillEffectClass.NULL = 0
|
|
5
|
+
____exports.PillEffectClass[____exports.PillEffectClass.NULL] = "NULL"
|
|
6
|
+
____exports.PillEffectClass.JOKE = 1
|
|
7
|
+
____exports.PillEffectClass[____exports.PillEffectClass.JOKE] = "JOKE"
|
|
8
|
+
____exports.PillEffectClass.MINOR = 2
|
|
9
|
+
____exports.PillEffectClass[____exports.PillEffectClass.MINOR] = "MINOR"
|
|
10
|
+
____exports.PillEffectClass.MEDIUM = 3
|
|
11
|
+
____exports.PillEffectClass[____exports.PillEffectClass.MEDIUM] = "MEDIUM"
|
|
12
|
+
____exports.PillEffectClass.MAJOR = 4
|
|
13
|
+
____exports.PillEffectClass[____exports.PillEffectClass.MAJOR] = "MAJOR"
|
|
14
|
+
____exports.PillEffectClass.MODDED = 5
|
|
15
|
+
____exports.PillEffectClass[____exports.PillEffectClass.MODDED] = "MODDED"
|
|
16
|
+
return ____exports
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Equal to the suffix of the "class" tag in the "pocketitems.xml" file. "+" is equal to `POSITIVE`,
|
|
3
|
+
* "-" is equal to `NEGATIVE`, and no suffix is equal to `NEUTRAL`.
|
|
4
|
+
*/
|
|
5
|
+
export declare enum PillEffectType {
|
|
6
|
+
/** No valid pill will have this type. */
|
|
7
|
+
NULL = 0,
|
|
8
|
+
POSITIVE = 1,
|
|
9
|
+
NEGATIVE = 2,
|
|
10
|
+
NEUTRAL = 3,
|
|
11
|
+
/**
|
|
12
|
+
* This is not a real `PillEffectType`. Due to limitations in the API, getting the real type of
|
|
13
|
+
* modded pill effects is not possible, so this value is returned instead.
|
|
14
|
+
*/
|
|
15
|
+
MODDED = 4
|
|
16
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
+
local ____exports = {}
|
|
3
|
+
____exports.PillEffectType = PillEffectType or ({})
|
|
4
|
+
____exports.PillEffectType.NULL = 0
|
|
5
|
+
____exports.PillEffectType[____exports.PillEffectType.NULL] = "NULL"
|
|
6
|
+
____exports.PillEffectType.POSITIVE = 1
|
|
7
|
+
____exports.PillEffectType[____exports.PillEffectType.POSITIVE] = "POSITIVE"
|
|
8
|
+
____exports.PillEffectType.NEGATIVE = 2
|
|
9
|
+
____exports.PillEffectType[____exports.PillEffectType.NEGATIVE] = "NEGATIVE"
|
|
10
|
+
____exports.PillEffectType.NEUTRAL = 3
|
|
11
|
+
____exports.PillEffectType[____exports.PillEffectType.NEUTRAL] = "NEUTRAL"
|
|
12
|
+
____exports.PillEffectType.MODDED = 4
|
|
13
|
+
____exports.PillEffectType[____exports.PillEffectType.MODDED] = "MODDED"
|
|
14
|
+
return ____exports
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
+
local ____exports = {}
|
|
3
|
+
____exports.PocketItemType = PocketItemType or ({})
|
|
4
|
+
____exports.PocketItemType.EMPTY = 0
|
|
5
|
+
____exports.PocketItemType[____exports.PocketItemType.EMPTY] = "EMPTY"
|
|
6
|
+
____exports.PocketItemType.CARD = 1
|
|
7
|
+
____exports.PocketItemType[____exports.PocketItemType.CARD] = "CARD"
|
|
8
|
+
____exports.PocketItemType.PILL = 2
|
|
9
|
+
____exports.PocketItemType[____exports.PocketItemType.PILL] = "PILL"
|
|
10
|
+
____exports.PocketItemType.ACTIVE_ITEM = 3
|
|
11
|
+
____exports.PocketItemType[____exports.PocketItemType.ACTIVE_ITEM] = "ACTIVE_ITEM"
|
|
12
|
+
____exports.PocketItemType.DICE_BAG_DICE = 4
|
|
13
|
+
____exports.PocketItemType[____exports.PocketItemType.DICE_BAG_DICE] = "DICE_BAG_DICE"
|
|
14
|
+
____exports.PocketItemType.UNDETERMINABLE = 5
|
|
15
|
+
____exports.PocketItemType[____exports.PocketItemType.UNDETERMINABLE] = "UNDETERMINABLE"
|
|
16
|
+
return ____exports
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
+
local ____exports = {}
|
|
3
|
+
____exports.SaveDataKeys = SaveDataKeys or ({})
|
|
4
|
+
____exports.SaveDataKeys.Persistent = "persistent"
|
|
5
|
+
____exports.SaveDataKeys.Run = "run"
|
|
6
|
+
____exports.SaveDataKeys.Level = "level"
|
|
7
|
+
____exports.SaveDataKeys.Room = "room"
|
|
8
|
+
return ____exports
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="typescript-to-lua/language-extensions" />
|
|
2
|
+
export declare enum SerializationBrand {
|
|
3
|
+
DEFAULT_MAP = "__TSTL_DEFAULT_MAP",
|
|
4
|
+
/**
|
|
5
|
+
* This is set to the value that represents the default value (instead of an empty string like the
|
|
6
|
+
* other brands are).
|
|
7
|
+
*/
|
|
8
|
+
DEFAULT_MAP_VALUE = "__TSTL_DEFAULT_MAP_VALUE",
|
|
9
|
+
MAP = "__TSTL_MAP",
|
|
10
|
+
SET = "__TSTL_SET",
|
|
11
|
+
CLASS = "__TSTL_CLASS",
|
|
12
|
+
OBJECT_WITH_NUMBER_KEYS = "__TSTL_OBJECT_WITH_NUMBER_KEYS",
|
|
13
|
+
VECTOR = "__VECTOR"
|
|
14
|
+
}
|
|
15
|
+
export declare function isSerializationBrand(key: AnyNotNil): boolean;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
+
local ____lualib = require("lualib_bundle")
|
|
3
|
+
local Set = ____lualib.Set
|
|
4
|
+
local __TS__New = ____lualib.__TS__New
|
|
5
|
+
local ____exports = {}
|
|
6
|
+
local ____utils = require("functions.utils")
|
|
7
|
+
local getEnumValues = ____utils.getEnumValues
|
|
8
|
+
____exports.SerializationBrand = SerializationBrand or ({})
|
|
9
|
+
____exports.SerializationBrand.DEFAULT_MAP = "__TSTL_DEFAULT_MAP"
|
|
10
|
+
____exports.SerializationBrand.DEFAULT_MAP_VALUE = "__TSTL_DEFAULT_MAP_VALUE"
|
|
11
|
+
____exports.SerializationBrand.MAP = "__TSTL_MAP"
|
|
12
|
+
____exports.SerializationBrand.SET = "__TSTL_SET"
|
|
13
|
+
____exports.SerializationBrand.CLASS = "__TSTL_CLASS"
|
|
14
|
+
____exports.SerializationBrand.OBJECT_WITH_NUMBER_KEYS = "__TSTL_OBJECT_WITH_NUMBER_KEYS"
|
|
15
|
+
____exports.SerializationBrand.VECTOR = "__VECTOR"
|
|
16
|
+
local SERIALIZATION_BRANDS = getEnumValues(nil, ____exports.SerializationBrand)
|
|
17
|
+
local SERIALIZATION_BRAND_SET = __TS__New(Set, SERIALIZATION_BRANDS)
|
|
18
|
+
function ____exports.isSerializationBrand(self, key)
|
|
19
|
+
if type(key) ~= "string" then
|
|
20
|
+
return false
|
|
21
|
+
end
|
|
22
|
+
return SERIALIZATION_BRAND_SET:has(key)
|
|
23
|
+
end
|
|
24
|
+
return ____exports
|
|
@@ -9,6 +9,8 @@ local ____exports = {}
|
|
|
9
9
|
local postNewRoom, setDecorationsInvisible, respawnPersistentEntities, removeSpecificNPCs, fillRoomWithDecorations, spawnAllEntities, spawnGridEntityForJSONRoom, spawnNormalEntityForJSONRoom, storePersistentEntity, fixPitGraphics, getPitMap, getPitFrame, FEATURE_NAME, NPC_TYPES_TO_NOT_REMOVE, PERSISTENT_ENTITY_TYPES, v
|
|
10
10
|
local ____cachedClasses = require("cachedClasses")
|
|
11
11
|
local game = ____cachedClasses.game
|
|
12
|
+
local ____DefaultMap = require("classes.DefaultMap")
|
|
13
|
+
local DefaultMap = ____DefaultMap.DefaultMap
|
|
12
14
|
local ____featuresInitialized = require("featuresInitialized")
|
|
13
15
|
local errorIfFeaturesNotInitialized = ____featuresInitialized.errorIfFeaturesNotInitialized
|
|
14
16
|
local ____entity = require("functions.entity")
|
|
@@ -40,8 +42,6 @@ local setRoomCleared = ____rooms.setRoomCleared
|
|
|
40
42
|
local setRoomUncleared = ____rooms.setRoomUncleared
|
|
41
43
|
local ____spawnCollectible = require("functions.spawnCollectible")
|
|
42
44
|
local spawnCollectible = ____spawnCollectible.spawnCollectible
|
|
43
|
-
local ____DefaultMap = require("types.DefaultMap")
|
|
44
|
-
local DefaultMap = ____DefaultMap.DefaultMap
|
|
45
45
|
local ____exports = require("features.saveDataManager.exports")
|
|
46
46
|
local saveDataManager = ____exports.saveDataManager
|
|
47
47
|
function postNewRoom(self)
|
|
@@ -11,6 +11,8 @@ local sfxManager = ____cachedClasses.sfxManager
|
|
|
11
11
|
local ____constants = require("constants")
|
|
12
12
|
local PILL_GIANT_FLAG = ____constants.PILL_GIANT_FLAG
|
|
13
13
|
local TRINKET_GOLDEN_FLAG = ____constants.TRINKET_GOLDEN_FLAG
|
|
14
|
+
local ____HealthType = require("enums.HealthType")
|
|
15
|
+
local HealthType = ____HealthType.HealthType
|
|
14
16
|
local ____cards = require("functions.cards")
|
|
15
17
|
local getCardName = ____cards.getCardName
|
|
16
18
|
local ____gridEntity = require("functions.gridEntity")
|
|
@@ -56,8 +58,6 @@ local ROOM_TYPE_MAP = ____roomTypeMap.ROOM_TYPE_MAP
|
|
|
56
58
|
local ____roomTypeNames = require("objects.roomTypeNames")
|
|
57
59
|
local DEFAULT_ROOM_TYPE_NAME = ____roomTypeNames.DEFAULT_ROOM_TYPE_NAME
|
|
58
60
|
local ROOM_TYPE_NAMES = ____roomTypeNames.ROOM_TYPE_NAMES
|
|
59
|
-
local ____HealthType = require("types.HealthType")
|
|
60
|
-
local HealthType = ____HealthType.HealthType
|
|
61
61
|
local ____v = require("features.extraConsoleCommands.v")
|
|
62
62
|
local v = ____v.default
|
|
63
63
|
function ____exports.blackHearts(self, params)
|
|
@@ -4,6 +4,8 @@ local Set = ____lualib.Set
|
|
|
4
4
|
local __TS__New = ____lualib.__TS__New
|
|
5
5
|
local ____exports = {}
|
|
6
6
|
local postPEffectUpdateReordered, FLAGS_WHEN_PONY_IS_ACTIVE, v
|
|
7
|
+
local ____ModCallbacksCustom = require("enums.ModCallbacksCustom")
|
|
8
|
+
local ModCallbacksCustom = ____ModCallbacksCustom.ModCallbacksCustom
|
|
7
9
|
local ____featuresInitialized = require("featuresInitialized")
|
|
8
10
|
local errorIfFeaturesNotInitialized = ____featuresInitialized.errorIfFeaturesNotInitialized
|
|
9
11
|
local ____flag = require("functions.flag")
|
|
@@ -12,8 +14,6 @@ local ____playerDataStructures = require("functions.playerDataStructures")
|
|
|
12
14
|
local setAddPlayer = ____playerDataStructures.setAddPlayer
|
|
13
15
|
local setDeletePlayer = ____playerDataStructures.setDeletePlayer
|
|
14
16
|
local setHasPlayer = ____playerDataStructures.setHasPlayer
|
|
15
|
-
local ____ModCallbacksCustom = require("types.ModCallbacksCustom")
|
|
16
|
-
local ModCallbacksCustom = ____ModCallbacksCustom.ModCallbacksCustom
|
|
17
17
|
local ____exports = require("features.saveDataManager.exports")
|
|
18
18
|
local saveDataManager = ____exports.saveDataManager
|
|
19
19
|
function postPEffectUpdateReordered(self, player)
|
|
@@ -6,6 +6,10 @@ local __TS__ArrayPush = ____lualib.__TS__ArrayPush
|
|
|
6
6
|
local __TS__Iterator = ____lualib.__TS__Iterator
|
|
7
7
|
local ____exports = {}
|
|
8
8
|
local newPlayerInventory, useItemD4, postPlayerInit, postItemPickup, v
|
|
9
|
+
local ____DefaultMap = require("classes.DefaultMap")
|
|
10
|
+
local DefaultMap = ____DefaultMap.DefaultMap
|
|
11
|
+
local ____ModCallbacksCustom = require("enums.ModCallbacksCustom")
|
|
12
|
+
local ModCallbacksCustom = ____ModCallbacksCustom.ModCallbacksCustom
|
|
9
13
|
local ____featuresInitialized = require("featuresInitialized")
|
|
10
14
|
local errorIfFeaturesNotInitialized = ____featuresInitialized.errorIfFeaturesNotInitialized
|
|
11
15
|
local ____array = require("functions.array")
|
|
@@ -16,10 +20,6 @@ local ____player = require("functions.player")
|
|
|
16
20
|
local getPlayerIndex = ____player.getPlayerIndex
|
|
17
21
|
local ____utils = require("functions.utils")
|
|
18
22
|
local ____repeat = ____utils["repeat"]
|
|
19
|
-
local ____DefaultMap = require("types.DefaultMap")
|
|
20
|
-
local DefaultMap = ____DefaultMap.DefaultMap
|
|
21
|
-
local ____ModCallbacksCustom = require("types.ModCallbacksCustom")
|
|
22
|
-
local ModCallbacksCustom = ____ModCallbacksCustom.ModCallbacksCustom
|
|
23
23
|
local ____exports = require("features.saveDataManager.exports")
|
|
24
24
|
local saveDataManager = ____exports.saveDataManager
|
|
25
25
|
function newPlayerInventory(self, player)
|
|
@@ -17,7 +17,8 @@ function postPickupUpdateCollectible(self, pickup)
|
|
|
17
17
|
if pickup.SubType == CollectibleType.COLLECTIBLE_NULL then
|
|
18
18
|
return
|
|
19
19
|
end
|
|
20
|
-
local
|
|
20
|
+
local ptrHash = GetPtrHash(pickup)
|
|
21
|
+
local trackedCollectibleType = v.room.trackedItems:get(ptrHash)
|
|
21
22
|
if trackedCollectibleType ~= nil and pickup.SubType ~= trackedCollectibleType then
|
|
22
23
|
setCollectibleSubType(nil, pickup, trackedCollectibleType)
|
|
23
24
|
end
|
|
@@ -34,7 +35,8 @@ function ____exports.preventCollectibleRotate(self, collectible, collectibleType
|
|
|
34
35
|
if collectible.Variant ~= PickupVariant.PICKUP_COLLECTIBLE then
|
|
35
36
|
error("You cannot prevent the rotation for pickups of variant: " .. tostring(collectible.Variant))
|
|
36
37
|
end
|
|
37
|
-
|
|
38
|
+
local ptrHash = GetPtrHash(collectible)
|
|
39
|
+
v.room.trackedItems:set(ptrHash, collectibleType)
|
|
38
40
|
postPickupUpdateCollectible(nil, collectible)
|
|
39
41
|
end
|
|
40
42
|
return ____exports
|
|
@@ -5,15 +5,15 @@ local ____exports = {}
|
|
|
5
5
|
local postPlayerInit, preGameExit, postNewLevel, postNewRoomEarly, restoreDefaultsAll, restoreDefaults, clearAndCopyAllElements, mod, loadedDataOnThisRun
|
|
6
6
|
local ____cachedClasses = require("cachedClasses")
|
|
7
7
|
local game = ____cachedClasses.game
|
|
8
|
+
local ____ModCallbacksCustom = require("enums.ModCallbacksCustom")
|
|
9
|
+
local ModCallbacksCustom = ____ModCallbacksCustom.ModCallbacksCustom
|
|
10
|
+
local ____SaveDataKeys = require("enums.private.SaveDataKeys")
|
|
11
|
+
local SaveDataKeys = ____SaveDataKeys.SaveDataKeys
|
|
8
12
|
local ____deepCopy = require("functions.deepCopy")
|
|
9
13
|
local deepCopy = ____deepCopy.deepCopy
|
|
10
14
|
local SerializationType = ____deepCopy.SerializationType
|
|
11
15
|
local ____table = require("functions.table")
|
|
12
16
|
local clearTable = ____table.clearTable
|
|
13
|
-
local ____ModCallbacksCustom = require("types.ModCallbacksCustom")
|
|
14
|
-
local ModCallbacksCustom = ____ModCallbacksCustom.ModCallbacksCustom
|
|
15
|
-
local ____SaveData = require("types.private.SaveData")
|
|
16
|
-
local SaveDataKeys = ____SaveData.SaveDataKeys
|
|
17
17
|
local ____constants = require("features.saveDataManager.constants")
|
|
18
18
|
local SAVE_DATA_MANAGER_FEATURE_NAME = ____constants.SAVE_DATA_MANAGER_FEATURE_NAME
|
|
19
19
|
local ____load = require("features.saveDataManager.load")
|
|
@@ -5,6 +5,9 @@ local __TS__InstanceOf = ____lualib.__TS__InstanceOf
|
|
|
5
5
|
local Set = ____lualib.Set
|
|
6
6
|
local ____exports = {}
|
|
7
7
|
local mergeArray, mergeTSTLObject, mergeTable, mergeVector
|
|
8
|
+
local ____SerializationBrand = require("enums.private.SerializationBrand")
|
|
9
|
+
local isSerializationBrand = ____SerializationBrand.isSerializationBrand
|
|
10
|
+
local SerializationBrand = ____SerializationBrand.SerializationBrand
|
|
8
11
|
local ____array = require("functions.array")
|
|
9
12
|
local isArray = ____array.isArray
|
|
10
13
|
local ____deepCopy = require("functions.deepCopy")
|
|
@@ -17,9 +20,6 @@ local ____log = require("functions.log")
|
|
|
17
20
|
local log = ____log.log
|
|
18
21
|
local ____table = require("functions.table")
|
|
19
22
|
local clearTable = ____table.clearTable
|
|
20
|
-
local ____SerializationBrand = require("types.private.SerializationBrand")
|
|
21
|
-
local isSerializationBrand = ____SerializationBrand.isSerializationBrand
|
|
22
|
-
local SerializationBrand = ____SerializationBrand.SerializationBrand
|
|
23
23
|
local ____constants = require("features.saveDataManager.constants")
|
|
24
24
|
local SAVE_DATA_MANAGER_DEBUG = ____constants.SAVE_DATA_MANAGER_DEBUG
|
|
25
25
|
function ____exports.merge(self, oldObject, newTable, traversalDescription)
|
package/dist/functions/cards.lua
CHANGED
|
@@ -8,6 +8,8 @@ local ____exports = {}
|
|
|
8
8
|
local initCardObjects, CARD_TYPE_TO_CARDS_MAP, CARD_SET
|
|
9
9
|
local ____cachedClasses = require("cachedClasses")
|
|
10
10
|
local itemConfig = ____cachedClasses.itemConfig
|
|
11
|
+
local ____CardType = require("enums.CardType")
|
|
12
|
+
local CardType = ____CardType.CardType
|
|
11
13
|
local ____cardDescriptions = require("objects.cardDescriptions")
|
|
12
14
|
local CARD_DESCRIPTIONS = ____cardDescriptions.CARD_DESCRIPTIONS
|
|
13
15
|
local DEFAULT_CARD_DESCRIPTION = ____cardDescriptions.DEFAULT_CARD_DESCRIPTION
|
|
@@ -17,8 +19,6 @@ local DEFAULT_CARD_NAME = ____cardNames.DEFAULT_CARD_NAME
|
|
|
17
19
|
local ____cardTypes = require("objects.cardTypes")
|
|
18
20
|
local CARD_TYPES = ____cardTypes.CARD_TYPES
|
|
19
21
|
local DEFAULT_CARD_TYPE = ____cardTypes.DEFAULT_CARD_TYPE
|
|
20
|
-
local ____CardType = require("types.CardType")
|
|
21
|
-
local CardType = ____CardType.CardType
|
|
22
22
|
local ____math = require("functions.math")
|
|
23
23
|
local range = ____math.range
|
|
24
24
|
local ____set = require("functions.set")
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="isaac-typescript-definitions" />
|
|
2
|
-
import { CollectiblePedestalType } from "../
|
|
2
|
+
import { CollectiblePedestalType } from "../enums/CollectiblePedestalType";
|
|
3
3
|
export declare function collectibleHasTag(collectibleType: CollectibleType | int, tag: ItemConfigTag): boolean;
|
|
4
4
|
export declare function clearCollectibleSprite(collectible: EntityPickup): void;
|
|
5
5
|
export declare function collectibleHasCacheFlag(collectibleType: CollectibleType | int, cacheFlag: CacheFlag): boolean;
|
|
@@ -7,13 +7,13 @@ local __TS__InstanceOf = ____lualib.__TS__InstanceOf
|
|
|
7
7
|
local __TS__Iterator = ____lualib.__TS__Iterator
|
|
8
8
|
local ____exports = {}
|
|
9
9
|
local isTSTLClass, copyClass, getNewClassFromMetatable, deepCopyValue, copyVector, checkMetatable, validateValue, TSTL_CLASS_KEYS
|
|
10
|
-
local
|
|
11
|
-
local SAVE_DATA_MANAGER_DEBUG = ____constants.SAVE_DATA_MANAGER_DEBUG
|
|
12
|
-
local ____DefaultMap = require("types.DefaultMap")
|
|
10
|
+
local ____DefaultMap = require("classes.DefaultMap")
|
|
13
11
|
local DefaultMap = ____DefaultMap.DefaultMap
|
|
14
|
-
local ____SerializationBrand = require("
|
|
12
|
+
local ____SerializationBrand = require("enums.private.SerializationBrand")
|
|
15
13
|
local isSerializationBrand = ____SerializationBrand.isSerializationBrand
|
|
16
14
|
local SerializationBrand = ____SerializationBrand.SerializationBrand
|
|
15
|
+
local ____constants = require("features.saveDataManager.constants")
|
|
16
|
+
local SAVE_DATA_MANAGER_DEBUG = ____constants.SAVE_DATA_MANAGER_DEBUG
|
|
17
17
|
local ____log = require("functions.log")
|
|
18
18
|
local log = ____log.log
|
|
19
19
|
local ____vector = require("functions.vector")
|
|
@@ -6,9 +6,9 @@ local __TS__InstanceOf = ____lualib.__TS__InstanceOf
|
|
|
6
6
|
local Set = ____lualib.Set
|
|
7
7
|
local ____exports = {}
|
|
8
8
|
local copiedObjectIsTable, copiedObjectHasKeyAndValueString, copiedTableHasKeyAndValueNumber, copiedTableDoesNotCoerceTypes, copiedObjectHasNoReferencesForPrimitivesForward, copiedObjectHasNoReferencesForPrimitivesBackward, copiedObjectHasNoReferencesForArray, copiedObjectHasChildObject, copiedMapIsMap, copiedMapHasValue, copiedSetIsSet, copiedSetHasValue, copiedMapHasChildMap, copiedDefaultMapHasChildDefaultMap, copiedDefaultMapHasBrand
|
|
9
|
-
local ____DefaultMap = require("
|
|
9
|
+
local ____DefaultMap = require("classes.DefaultMap")
|
|
10
10
|
local DefaultMap = ____DefaultMap.DefaultMap
|
|
11
|
-
local ____SerializationBrand = require("
|
|
11
|
+
local ____SerializationBrand = require("enums.private.SerializationBrand")
|
|
12
12
|
local SerializationBrand = ____SerializationBrand.SerializationBrand
|
|
13
13
|
local ____array = require("functions.array")
|
|
14
14
|
local arrayEquals = ____array.arrayEquals
|
|
@@ -188,10 +188,7 @@ function ____exports.isAllPressurePlatesPushed(self)
|
|
|
188
188
|
local pressurePlates = ____exports.getGridEntities(nil, GridEntityType.GRID_PRESSURE_PLATE)
|
|
189
189
|
return __TS__ArrayEvery(
|
|
190
190
|
pressurePlates,
|
|
191
|
-
function(____, pressurePlate)
|
|
192
|
-
local gridEntityDesc = pressurePlate:GetSaveState()
|
|
193
|
-
return gridEntityDesc.State == 3
|
|
194
|
-
end
|
|
191
|
+
function(____, pressurePlate) return pressurePlate.State == 3 end
|
|
195
192
|
)
|
|
196
193
|
end
|
|
197
194
|
function ____exports.isGridEntityBreakableByExplosion(self, gridEntity)
|
package/dist/functions/map.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="isaac-typescript-definitions" />
|
|
2
|
-
import { DefaultMap } from "../
|
|
2
|
+
import { DefaultMap } from "../classes/DefaultMap";
|
|
3
3
|
/** Helper function to copy a map. (You can also use a Map constructor to accomplish this task.) */
|
|
4
4
|
export declare function copyMap<K, V>(oldMap: Map<K, V>): Map<K, V>;
|
|
5
5
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="isaac-typescript-definitions" />
|
|
2
|
-
import { PillEffectClass } from "../
|
|
3
|
-
import { PillEffectType } from "../
|
|
2
|
+
import { PillEffectClass } from "../enums/PillEffectClass";
|
|
3
|
+
import { PillEffectType } from "../enums/PillEffectType";
|
|
4
4
|
/**
|
|
5
5
|
* Helper function to get the final pill effect in the game. This cannot be reliably determined
|
|
6
6
|
* before run-time due to mods adding a variable amount of new pill effects.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="isaac-typescript-definitions" />
|
|
2
|
-
import { HealthType } from "../
|
|
2
|
+
import { HealthType } from "../enums/HealthType";
|
|
3
3
|
import { PlayerIndex } from "../types/PlayerIndex";
|
|
4
4
|
export declare function addCollectibleCostume(player: EntityPlayer, collectibleType: CollectibleType | int): void;
|
|
5
5
|
export declare function addTrinketCostume(player: EntityPlayer, trinketType: TrinketType | int): void;
|
|
@@ -22,11 +22,11 @@ local CHARACTERS_WITH_NO_RED_HEARTS = ____constants.CHARACTERS_WITH_NO_RED_HEART
|
|
|
22
22
|
local CHARACTERS_WITH_NO_SOUL_HEARTS = ____constants.CHARACTERS_WITH_NO_SOUL_HEARTS
|
|
23
23
|
local LOST_STYLE_PLAYER_TYPES = ____constants.LOST_STYLE_PLAYER_TYPES
|
|
24
24
|
local MAX_VANILLA_CHARACTER = ____constants.MAX_VANILLA_CHARACTER
|
|
25
|
+
local ____HealthType = require("enums.HealthType")
|
|
26
|
+
local HealthType = ____HealthType.HealthType
|
|
25
27
|
local ____characterNames = require("objects.characterNames")
|
|
26
28
|
local CHARACTER_NAMES = ____characterNames.CHARACTER_NAMES
|
|
27
29
|
local DEFAULT_CHARACTER_NAME = ____characterNames.DEFAULT_CHARACTER_NAME
|
|
28
|
-
local ____HealthType = require("types.HealthType")
|
|
29
|
-
local HealthType = ____HealthType.HealthType
|
|
30
30
|
local ____array = require("functions.array")
|
|
31
31
|
local getLastElement = ____array.getLastElement
|
|
32
32
|
local sumArray = ____array.sumArray
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="isaac-typescript-definitions" />
|
|
2
|
-
import { DefaultMap } from "../
|
|
2
|
+
import { DefaultMap } from "../classes/DefaultMap";
|
|
3
3
|
import { PlayerIndex } from "../types/PlayerIndex";
|
|
4
4
|
/**
|
|
5
5
|
* Helper function to make using default maps with an index of `PlayerIndex` easier. Use this
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="isaac-typescript-definitions" />
|
|
2
|
-
import { HealthType } from "../
|
|
2
|
+
import { HealthType } from "../enums/HealthType";
|
|
3
3
|
import { PlayerHealth } from "../types/PlayerHealth";
|
|
4
4
|
export declare function addPlayerHealthType(player: EntityPlayer, healthType: HealthType, numHearts: int): void;
|
|
5
5
|
/**
|