isaacscript-common 9.2.1 → 9.4.1
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/subscriptions/postGridEntityCollision.d.ts +4 -2
- package/dist/callbacks/subscriptions/postGridEntityCollision.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postGridEntityCollision.lua +8 -0
- package/dist/callbacks/subscriptions/postGridEntityCustomCollision.d.ts +4 -2
- package/dist/callbacks/subscriptions/postGridEntityCustomCollision.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postGridEntityCustomCollision.lua +8 -0
- package/dist/core/constants.d.ts +2 -0
- package/dist/core/constants.d.ts.map +1 -1
- package/dist/core/constants.lua +2 -0
- package/dist/enums/ModCallbackCustom.d.ts +52 -26
- package/dist/enums/ModCallbackCustom.d.ts.map +1 -1
- package/dist/features/customStage/customStageGridEntities.d.ts +4 -4
- package/dist/features/customStage/customStageGridEntities.d.ts.map +1 -1
- package/dist/features/customStage/customStageGridEntities.lua +4 -4
- package/dist/functions/effects.d.ts +1 -1
- package/dist/functions/effects.d.ts.map +1 -1
- package/dist/functions/effects.lua +1 -1
- package/dist/functions/entities.d.ts +4 -0
- package/dist/functions/entities.d.ts.map +1 -1
- package/dist/functions/entities.lua +4 -0
- package/dist/functions/entityTypes.d.ts +1 -1
- package/dist/functions/entityTypes.d.ts.map +1 -1
- package/dist/functions/entityTypes.lua +1 -1
- package/dist/functions/pickupVariants.d.ts +11 -11
- package/dist/functions/pickupVariants.d.ts.map +1 -1
- package/dist/functions/pickupVariants.lua +11 -11
- package/dist/index.d.ts +78 -41
- package/package.json +2 -2
- package/src/callbacks/subscriptions/postGridEntityCollision.ts +21 -1
- package/src/callbacks/subscriptions/postGridEntityCustomCollision.ts +25 -2
- package/src/core/constants.ts +3 -0
- package/src/enums/ModCallbackCustom.ts +52 -26
- package/src/features/customStage/customStageGridEntities.ts +4 -4
- package/src/functions/effects.ts +1 -1
- package/src/functions/entities.ts +4 -0
- package/src/functions/entityTypes.ts +1 -1
- package/src/functions/pickupVariants.ts +11 -11
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { GridEntityType } from "isaac-typescript-definitions";
|
|
1
|
+
import { EntityType, GridEntityType } from "isaac-typescript-definitions";
|
|
2
2
|
export declare type PostGridEntityCollisionRegisterParameters = [
|
|
3
3
|
callback: (gridEntity: GridEntity, entity: Entity) => void,
|
|
4
4
|
gridEntityType?: GridEntityType,
|
|
5
|
-
gridEntityVariant?: int
|
|
5
|
+
gridEntityVariant?: int,
|
|
6
|
+
entityType?: EntityType,
|
|
7
|
+
entityVariant?: int
|
|
6
8
|
];
|
|
7
9
|
export declare function postGridEntityCollisionHasSubscriptions(): boolean;
|
|
8
10
|
export declare function postGridEntityCollisionRegister(...args: PostGridEntityCollisionRegisterParameters): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postGridEntityCollision.d.ts","sourceRoot":"","sources":["../../../src/callbacks/subscriptions/postGridEntityCollision.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"postGridEntityCollision.d.ts","sourceRoot":"","sources":["../../../src/callbacks/subscriptions/postGridEntityCollision.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE1E,oBAAY,yCAAyC,GAAG;IACtD,QAAQ,EAAE,CAAC,UAAU,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI;IAC1D,cAAc,CAAC,EAAE,cAAc;IAC/B,iBAAiB,CAAC,EAAE,GAAG;IACvB,UAAU,CAAC,EAAE,UAAU;IACvB,aAAa,CAAC,EAAE,GAAG;CACpB,CAAC;AAIF,wBAAgB,uCAAuC,IAAI,OAAO,CAEjE;AAED,wBAAgB,+BAA+B,CAC7C,GAAG,IAAI,EAAE,yCAAyC,GACjD,IAAI,CAEN;AAED,wBAAgB,2BAA2B,CACzC,UAAU,EAAE,UAAU,EACtB,MAAM,EAAE,MAAM,GACb,IAAI,CA6CN"}
|
|
@@ -14,6 +14,8 @@ function ____exports.postGridEntityCollisionFire(self, gridEntity, entity)
|
|
|
14
14
|
local callback = ____value[1]
|
|
15
15
|
local callbackGridEntityType = ____value[2]
|
|
16
16
|
local callbackGridEntityVariant = ____value[3]
|
|
17
|
+
local callbackEntityType = ____value[4]
|
|
18
|
+
local callbackEntityVariant = ____value[5]
|
|
17
19
|
do
|
|
18
20
|
if callbackGridEntityType ~= nil and callbackGridEntityType ~= gridEntityType then
|
|
19
21
|
goto __continue5
|
|
@@ -21,6 +23,12 @@ function ____exports.postGridEntityCollisionFire(self, gridEntity, entity)
|
|
|
21
23
|
if callbackGridEntityVariant ~= nil and callbackGridEntityVariant ~= gridEntityVariant then
|
|
22
24
|
goto __continue5
|
|
23
25
|
end
|
|
26
|
+
if callbackEntityType ~= nil and callbackEntityType ~= entity.Type then
|
|
27
|
+
goto __continue5
|
|
28
|
+
end
|
|
29
|
+
if callbackEntityVariant ~= nil and callbackEntityVariant ~= entity.Variant then
|
|
30
|
+
goto __continue5
|
|
31
|
+
end
|
|
24
32
|
callback(nil, gridEntity, entity)
|
|
25
33
|
end
|
|
26
34
|
::__continue5::
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { GridEntityType } from "isaac-typescript-definitions";
|
|
1
|
+
import { EntityType, GridEntityType } from "isaac-typescript-definitions";
|
|
2
2
|
export declare type PostGridEntityCustomCollisionRegisterParameters = [
|
|
3
3
|
callback: (gridEntity: GridEntity, gridEntityTypeCustom: GridEntityType, entity: Entity) => void,
|
|
4
|
-
gridEntityTypeCustom?: GridEntityType
|
|
4
|
+
gridEntityTypeCustom?: GridEntityType,
|
|
5
|
+
entityType?: EntityType,
|
|
6
|
+
entityVariant?: int
|
|
5
7
|
];
|
|
6
8
|
export declare function postGridEntityCustomCollisionHasSubscriptions(): boolean;
|
|
7
9
|
export declare function postGridEntityCustomCollisionRegister(...args: PostGridEntityCustomCollisionRegisterParameters): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postGridEntityCustomCollision.d.ts","sourceRoot":"","sources":["../../../src/callbacks/subscriptions/postGridEntityCustomCollision.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"postGridEntityCustomCollision.d.ts","sourceRoot":"","sources":["../../../src/callbacks/subscriptions/postGridEntityCustomCollision.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE1E,oBAAY,+CAA+C,GAAG;IAC5D,QAAQ,EAAE,CACR,UAAU,EAAE,UAAU,EACtB,oBAAoB,EAAE,cAAc,EACpC,MAAM,EAAE,MAAM,KACX,IAAI;IACT,oBAAoB,CAAC,EAAE,cAAc;IACrC,UAAU,CAAC,EAAE,UAAU;IACvB,aAAa,CAAC,EAAE,GAAG;CACpB,CAAC;AAIF,wBAAgB,6CAA6C,IAAI,OAAO,CAEvE;AAED,wBAAgB,qCAAqC,CACnD,GAAG,IAAI,EAAE,+CAA+C,GACvD,IAAI,CAEN;AAED,wBAAgB,iCAAiC,CAC/C,UAAU,EAAE,UAAU,EACtB,oBAAoB,EAAE,cAAc,EACpC,MAAM,EAAE,MAAM,GACb,IAAI,CAiCN"}
|
|
@@ -11,10 +11,18 @@ function ____exports.postGridEntityCustomCollisionFire(self, gridEntity, gridEnt
|
|
|
11
11
|
for ____, ____value in ipairs(subscriptions) do
|
|
12
12
|
local callback = ____value[1]
|
|
13
13
|
local callbackGridEntityTypeCustom = ____value[2]
|
|
14
|
+
local callbackEntityType = ____value[3]
|
|
15
|
+
local callbackEntityVariant = ____value[4]
|
|
14
16
|
do
|
|
15
17
|
if callbackGridEntityTypeCustom ~= nil and callbackGridEntityTypeCustom ~= gridEntityTypeCustom then
|
|
16
18
|
goto __continue5
|
|
17
19
|
end
|
|
20
|
+
if callbackEntityType ~= nil and callbackEntityType ~= entity.Type then
|
|
21
|
+
goto __continue5
|
|
22
|
+
end
|
|
23
|
+
if callbackEntityVariant ~= nil and callbackEntityVariant ~= entity.Variant then
|
|
24
|
+
goto __continue5
|
|
25
|
+
end
|
|
18
26
|
callback(nil, gridEntity, gridEntityTypeCustom, entity)
|
|
19
27
|
end
|
|
20
28
|
::__continue5::
|
package/dist/core/constants.d.ts
CHANGED
|
@@ -116,6 +116,8 @@ export declare const MINUTE_IN_MILLISECONDS: number;
|
|
|
116
116
|
export declare const ONE_BY_ONE_ROOM_GRID_SIZE = 135;
|
|
117
117
|
/** After taking damage, `EntityPlayer.SamsonBerserkCharge` is incremented by this amount. */
|
|
118
118
|
export declare const TAINTED_SAMSON_BERSERK_CHARGE_FROM_TAKING_DAMAGE = 10000;
|
|
119
|
+
/** For `GridEntityType.TELEPORTER` (23). */
|
|
120
|
+
export declare const TELEPORTER_ACTIVATION_DISTANCE: number;
|
|
119
121
|
/**
|
|
120
122
|
* This is the number of draw coordinates that each heart spans on the UI in the upper left hand
|
|
121
123
|
* corner.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/core/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,YAAY,EAEb,MAAM,8BAA8B,CAAC;AAMtC;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB;;;;EAI7B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,iCAAiC,SAAS,CAAC;AAExD;;;GAGG;AACH,eAAO,MAAM,mBAAmB,4CAA4C,CAAC;AAE7E,mEAAmE;AACnE,eAAO,MAAM,kBAAkB,KAAK,CAAC;AAErC,iGAAiG;AACjG,eAAO,MAAM,wBAAwB,KAAK,CAAC;AAE3C,eAAO,MAAM,sBAAsB,wBAAwB,CAAC;AAE5D,gGAAgG;AAChG,eAAO,MAAM,qBAAqB,KAAK,CAAC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CAA4C;AAC5C,eAAO,MAAM,8BAA8B,QAA4B,CAAC;AAExE;;;GAGG;AACH,eAAO,MAAM,cAAc,KAAK,CAAC;AAEjC;;;GAGG;AACH,eAAO,MAAM,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAgB,CAAC;AAExD;;;GAGG;AACH,eAAO,MAAM,UAAU,EAAE,QAAQ,CAAC,MAAM,CAAgB,CAAC;AAEzD;;;;;GAKG;AACH,eAAO,MAAM,YAAY,EAAE,QAAQ,CAAC,KAAK,CAAkB,CAAC;AAE5D;;;;GAIG;AACH,eAAO,MAAM,aAAa,EAAE,QAAQ,CAAC,MAAM,CAAsB,CAAC"}
|
package/dist/core/constants.lua
CHANGED
|
@@ -97,6 +97,8 @@ ____exports.MINUTE_IN_MILLISECONDS = 60 * ____exports.SECOND_IN_MILLISECONDS
|
|
|
97
97
|
____exports.ONE_BY_ONE_ROOM_GRID_SIZE = 135
|
|
98
98
|
--- After taking damage, `EntityPlayer.SamsonBerserkCharge` is incremented by this amount.
|
|
99
99
|
____exports.TAINTED_SAMSON_BERSERK_CHARGE_FROM_TAKING_DAMAGE = 10000
|
|
100
|
+
--- For `GridEntityType.TELEPORTER` (23).
|
|
101
|
+
____exports.TELEPORTER_ACTIVATION_DISTANCE = ____exports.DISTANCE_OF_GRID_TILE / 2
|
|
100
102
|
--- This is the number of draw coordinates that each heart spans on the UI in the upper left hand
|
|
101
103
|
-- corner.
|
|
102
104
|
____exports.UI_HEART_WIDTH = 12
|
|
@@ -323,8 +323,10 @@ export declare enum ModCallbackCustom {
|
|
|
323
323
|
* For grid entities created with `spawnCustomGridEntity`, use the
|
|
324
324
|
* `POST_GRID_ENTITY_CUSTOM_BROKEN` callback instead.
|
|
325
325
|
*
|
|
326
|
-
* When registering the callback, takes an optional second argument that will make the callback
|
|
327
|
-
*
|
|
326
|
+
* - When registering the callback, takes an optional second argument that will make the callback
|
|
327
|
+
* only fire if it matches the `GridEntityType` provided.
|
|
328
|
+
* - When registering the callback, takes an optional third argument that will make the callback
|
|
329
|
+
* only fire if it matches the variant provided.
|
|
328
330
|
*
|
|
329
331
|
* ```ts
|
|
330
332
|
* function postGridEntityBroken(gridEntity: GridEntity): void {}
|
|
@@ -339,8 +341,14 @@ export declare enum ModCallbackCustom {
|
|
|
339
341
|
* For grid entities created with `spawnCustomGridEntity`, use the
|
|
340
342
|
* `POST_GRID_ENTITY_CUSTOM_COLLISION` callback instead.
|
|
341
343
|
*
|
|
342
|
-
* When registering the callback, takes an optional second argument that will make the callback
|
|
343
|
-
*
|
|
344
|
+
* - When registering the callback, takes an optional second argument that will make the callback
|
|
345
|
+
* only fire if it matches the `GridEntityType` provided.
|
|
346
|
+
* - When registering the callback, takes an optional third argument that will make the callback
|
|
347
|
+
* only fire if it matches the variant provided (for the grid entity).
|
|
348
|
+
* - When registering the callback, takes an optional fourth argument that will make the callback
|
|
349
|
+
* only fire if the colliding entity matches the `EntityType` provided.
|
|
350
|
+
* - When registering the callback, takes an optional fifth argument that will make the callback
|
|
351
|
+
* only fire if the colliding entity matches the variant provided.
|
|
344
352
|
*
|
|
345
353
|
* ```ts
|
|
346
354
|
* function postGridEntityCollision(
|
|
@@ -355,7 +363,8 @@ export declare enum ModCallbackCustom {
|
|
|
355
363
|
* with the `spawnCustomGridEntity` helper function.
|
|
356
364
|
*
|
|
357
365
|
* When registering the callback, takes an optional second argument that will make the callback
|
|
358
|
-
* only fire if it matches the `GridEntityType` provided.
|
|
366
|
+
* only fire if it matches the `GridEntityType` provided. (Custom grid entities do not have
|
|
367
|
+
* variants, so there is no need for an optional third argument to filter by variant.)
|
|
359
368
|
*
|
|
360
369
|
* ```ts
|
|
361
370
|
* function postGridEntityCustomBroken(
|
|
@@ -369,8 +378,13 @@ export declare enum ModCallbackCustom {
|
|
|
369
378
|
* The same as the `POST_GRID_ENTITY_COLLISION` callback, but only fires for grid entities created
|
|
370
379
|
* with the `spawnCustomGridEntity` helper function.
|
|
371
380
|
*
|
|
372
|
-
* When registering the callback, takes an optional second argument that will make the callback
|
|
373
|
-
*
|
|
381
|
+
* - When registering the callback, takes an optional second argument that will make the callback
|
|
382
|
+
* only fire if it matches the `GridEntityType` provided. (Custom grid entities do not have
|
|
383
|
+
* variants, so there is no need for an optional third argument to filter by variant.)
|
|
384
|
+
* - When registering the callback, takes an optional third argument that will make the callback
|
|
385
|
+
* only fire if the the colliding entity matches the `EntityType` provided.
|
|
386
|
+
* - When registering the callback, takes an optional fourth argument that will make the callback
|
|
387
|
+
* only fire if the the colliding entity matches the variant provided.
|
|
374
388
|
*
|
|
375
389
|
* ```ts
|
|
376
390
|
* function postGridEntityCustomCollision(
|
|
@@ -386,7 +400,8 @@ export declare enum ModCallbackCustom {
|
|
|
386
400
|
* the `spawnCustomGridEntity` helper function.
|
|
387
401
|
*
|
|
388
402
|
* When registering the callback, takes an optional second argument that will make the callback
|
|
389
|
-
* only fire if it matches the `GridEntityType` provided.
|
|
403
|
+
* only fire if it matches the `GridEntityType` provided. (Custom grid entities do not have
|
|
404
|
+
* variants, so there is no need for an optional third argument to filter by variant.)
|
|
390
405
|
*
|
|
391
406
|
* ```ts
|
|
392
407
|
* function postGridEntityCustomInit(
|
|
@@ -401,7 +416,8 @@ export declare enum ModCallbackCustom {
|
|
|
401
416
|
* with the `spawnCustomGridEntity` helper function.
|
|
402
417
|
*
|
|
403
418
|
* When registering the callback, takes an optional second argument that will make the callback
|
|
404
|
-
* only fire if it matches the `GridEntityType` provided.
|
|
419
|
+
* only fire if it matches the `GridEntityType` provided. (Custom grid entities do not have
|
|
420
|
+
* variants, so there is no need for an optional third argument to filter by variant.)
|
|
405
421
|
*
|
|
406
422
|
* ```ts
|
|
407
423
|
* function postGridEntityCustomRemove(
|
|
@@ -416,7 +432,8 @@ export declare enum ModCallbackCustom {
|
|
|
416
432
|
* with the `spawnCustomGridEntity` helper function.
|
|
417
433
|
*
|
|
418
434
|
* When registering the callback, takes an optional second argument that will make the callback
|
|
419
|
-
* only fire if it matches the `GridEntityType` provided.
|
|
435
|
+
* only fire if it matches the `GridEntityType` provided. (Custom grid entities do not have
|
|
436
|
+
* variants, so there is no need for an optional third argument to filter by variant.)
|
|
420
437
|
*
|
|
421
438
|
* ```ts
|
|
422
439
|
* function postGridEntityCustomRender(
|
|
@@ -431,7 +448,8 @@ export declare enum ModCallbackCustom {
|
|
|
431
448
|
* created with the `spawnCustomGridEntity` helper function.
|
|
432
449
|
*
|
|
433
450
|
* When registering the callback, takes an optional second argument that will make the callback
|
|
434
|
-
* only fire if it matches the `GridEntityType` provided.
|
|
451
|
+
* only fire if it matches the `GridEntityType` provided. (Custom grid entities do not have
|
|
452
|
+
* variants, so there is no need for an optional third argument to filter by variant.)
|
|
435
453
|
*
|
|
436
454
|
* ```ts
|
|
437
455
|
* function postGridEntityCustomStateChanged(
|
|
@@ -448,7 +466,8 @@ export declare enum ModCallbackCustom {
|
|
|
448
466
|
* with the `spawnCustomGridEntity` helper function.
|
|
449
467
|
*
|
|
450
468
|
* When registering the callback, takes an optional second argument that will make the callback
|
|
451
|
-
* only fire if it matches the `GridEntityType` provided.
|
|
469
|
+
* only fire if it matches the `GridEntityType` provided. (Custom grid entities do not have
|
|
470
|
+
* variants, so there is no need for an optional third argument to filter by variant.)
|
|
452
471
|
*
|
|
453
472
|
* ```ts
|
|
454
473
|
* function postGridEntityCustomUpdate(
|
|
@@ -469,8 +488,10 @@ export declare enum ModCallbackCustom {
|
|
|
469
488
|
* For grid entities created with `spawnCustomGridEntity`, use the `POST_GRID_ENTITY_CUSTOM_INIT`
|
|
470
489
|
* callback instead.
|
|
471
490
|
*
|
|
472
|
-
* When registering the callback, takes an optional second argument that will make the callback
|
|
473
|
-
*
|
|
491
|
+
* - When registering the callback, takes an optional second argument that will make the callback
|
|
492
|
+
* only fire if it matches the `GridEntityType` provided.
|
|
493
|
+
* - When registering the callback, takes an optional third argument that will make the callback
|
|
494
|
+
* only fire if it matches the variant provided.
|
|
474
495
|
*
|
|
475
496
|
* ```ts
|
|
476
497
|
* function postGridEntityInit(gridEntity: GridEntity): void {}
|
|
@@ -488,8 +509,10 @@ export declare enum ModCallbackCustom {
|
|
|
488
509
|
* For grid entities created with `spawnCustomGridEntity`, use the
|
|
489
510
|
* `POST_GRID_ENTITY_CUSTOM_REMOVE` callback instead.
|
|
490
511
|
*
|
|
491
|
-
* When registering the callback, takes an optional second argument that will make the callback
|
|
492
|
-
*
|
|
512
|
+
* - When registering the callback, takes an optional second argument that will make the callback
|
|
513
|
+
* only fire if it matches the `GridEntityType` provided.
|
|
514
|
+
* - When registering the callback, takes an optional third argument that will make the callback
|
|
515
|
+
* only fire if it matches the variant provided.
|
|
493
516
|
*
|
|
494
517
|
* ```ts
|
|
495
518
|
* function postGridEntityRemove(
|
|
@@ -502,14 +525,14 @@ export declare enum ModCallbackCustom {
|
|
|
502
525
|
/**
|
|
503
526
|
* Fires from the `POST_RENDER` callback on every frame that a grid entity exists.
|
|
504
527
|
*
|
|
528
|
+
* For grid entities created with `spawnCustomGridEntity`, use the
|
|
529
|
+
* `POST_GRID_ENTITY_CUSTOM_RENDER` callback instead.
|
|
530
|
+
*
|
|
505
531
|
* - When registering the callback, takes an optional second argument that will make the callback
|
|
506
532
|
* only fire if it matches the `GridEntityType` provided.
|
|
507
533
|
* - When registering the callback, takes an optional third argument that will make the callback
|
|
508
534
|
* only fire if it matches the variant provided.
|
|
509
535
|
*
|
|
510
|
-
* For grid entities created with `spawnCustomGridEntity`, use the
|
|
511
|
-
* `POST_GRID_ENTITY_CUSTOM_RENDER` callback instead.
|
|
512
|
-
*
|
|
513
536
|
* ```ts
|
|
514
537
|
* function postGridEntityRender(gridEntity: GridEntity): void {}
|
|
515
538
|
* ```
|
|
@@ -519,12 +542,14 @@ export declare enum ModCallbackCustom {
|
|
|
519
542
|
* Fires from the `POST_UPDATE` callback when a grid entity changes its state. (In this context,
|
|
520
543
|
* "state" refers to the `GridEntity.State` field.)
|
|
521
544
|
*
|
|
522
|
-
* When registering the callback, takes an optional second argument that will make the callback
|
|
523
|
-
* only fire if it matches the `GridEntityType` provided.
|
|
524
|
-
*
|
|
525
545
|
* For grid entities created with `spawnCustomGridEntity`, use the
|
|
526
546
|
* `POST_GRID_ENTITY_CUSTOM_STATE_CHANGED` callback instead.
|
|
527
547
|
*
|
|
548
|
+
* - When registering the callback, takes an optional second argument that will make the callback
|
|
549
|
+
* only fire if it matches the `GridEntityType` provided.
|
|
550
|
+
* - When registering the callback, takes an optional third argument that will make the callback
|
|
551
|
+
* only fire if it matches the variant provided.
|
|
552
|
+
*
|
|
528
553
|
* ```ts
|
|
529
554
|
* function postGridEntityStateChanged(
|
|
530
555
|
* gridEntity: GridEntity,
|
|
@@ -537,14 +562,14 @@ export declare enum ModCallbackCustom {
|
|
|
537
562
|
/**
|
|
538
563
|
* Fires from the `POST_UPDATE` callback on every frame that a grid entity exists.
|
|
539
564
|
*
|
|
565
|
+
* For grid entities created with `spawnCustomGridEntity`, use the
|
|
566
|
+
* `POST_GRID_ENTITY_CUSTOM_UPDATE` callback instead.
|
|
567
|
+
*
|
|
540
568
|
* - When registering the callback, takes an optional second argument that will make the callback
|
|
541
569
|
* only fire if it matches the `GridEntityType` provided.
|
|
542
570
|
* - When registering the callback, takes an optional third argument that will make the callback
|
|
543
571
|
* only fire if it matches the variant provided.
|
|
544
572
|
*
|
|
545
|
-
* For grid entities created with `spawnCustomGridEntity`, use the
|
|
546
|
-
* `POST_GRID_ENTITY_CUSTOM_UPDATE` callback instead.
|
|
547
|
-
*
|
|
548
573
|
* ```ts
|
|
549
574
|
* function postGridEntityUpdate(gridEntity: GridEntity): void {}
|
|
550
575
|
* ```
|
|
@@ -1166,7 +1191,8 @@ export declare enum ModCallbackCustom {
|
|
|
1166
1191
|
* certain conditions, like if the slot entity is playing the "Idle" animation, and so on.
|
|
1167
1192
|
*
|
|
1168
1193
|
* When registering the callback, takes an optional second argument that will make the callback
|
|
1169
|
-
* only fire if it matches the `SlotVariant` provided.
|
|
1194
|
+
* only fire if it matches the `SlotVariant` provided. (There is no need for any additional
|
|
1195
|
+
* arguments, since only players will cause this callback to fire.)
|
|
1170
1196
|
*
|
|
1171
1197
|
* ```ts
|
|
1172
1198
|
* function postSlotCollision(
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModCallbackCustom.d.ts","sourceRoot":"","sources":["../../src/enums/ModCallbackCustom.ts"],"names":[],"mappings":"AASA;;;;;;;GAOG;AACH,oBAAY,iBAAiB;IAC3B;;;;;;;;;;OAUG;IACH,oBAAoB,IAAA;IAEpB;;;;;;;;;;OAUG;IACH,mBAAmB,IAAA;IAEnB;;;;;;;;;OASG;IACH,kBAAkB,IAAA;IAElB;;;;;;;;;;;;OAYG;IACH,mBAAmB,IAAA;IAEnB;;;;;;OAMG;IACH,eAAe,IAAA;IAEf;;;;;;;;;;;;;OAaG;IACH,sBAAsB,IAAA;IAEtB;;;;;;;;;;;;;;;OAeG;IACH,2BAA2B,IAAA;IAE3B;;;;;;;;OAQG;IACH,oBAAoB,IAAA;IAEpB;;;;;;;;;;;;;;;OAeG;IACH,sBAAsB,IAAA;IAEtB;;;;;;;;;;;;;;;OAeG;IACH,kBAAkB,IAAA;IAElB;;;;;;;;;;;;;OAaG;IACH,wBAAwB,KAAA;IAExB;;;;;;;;;OASG;IACH,gBAAgB,KAAA;IAEhB;;;;;;;;;OASG;IACH,gBAAgB,KAAA;IAEhB;;;;;;;;;;;;OAYG;IACH,qBAAqB,KAAA;IAErB;;;;;;;;;;;;;;OAcG;IACH,yBAAyB,KAAA;IAEzB;;;;;;;OAOG;IACH,YAAY,KAAA;IAEZ;;;;;;;;;;;;OAYG;IACH,uBAAuB,KAAA;IAEvB;;;;;;;;;;;;;;;OAeG;IACH,2BAA2B,KAAA;IAE3B;;;;;;;;;;OAUG;IACH,kBAAkB,KAAA;IAElB;;;;;;;;;;;OAWG;IACH,eAAe,KAAA;IAEf;;;;;;;;;;;OAWG;IACH,SAAS,KAAA;IAET;;;;;;;;;OASG;IACH,2BAA2B,KAAA;IAE3B;;;;;;;;;OASG;IACH,gCAAgC,KAAA;IAEhC;;;;;;OAMG;IACH,oBAAoB,KAAA;IAEpB
|
|
1
|
+
{"version":3,"file":"ModCallbackCustom.d.ts","sourceRoot":"","sources":["../../src/enums/ModCallbackCustom.ts"],"names":[],"mappings":"AASA;;;;;;;GAOG;AACH,oBAAY,iBAAiB;IAC3B;;;;;;;;;;OAUG;IACH,oBAAoB,IAAA;IAEpB;;;;;;;;;;OAUG;IACH,mBAAmB,IAAA;IAEnB;;;;;;;;;OASG;IACH,kBAAkB,IAAA;IAElB;;;;;;;;;;;;OAYG;IACH,mBAAmB,IAAA;IAEnB;;;;;;OAMG;IACH,eAAe,IAAA;IAEf;;;;;;;;;;;;;OAaG;IACH,sBAAsB,IAAA;IAEtB;;;;;;;;;;;;;;;OAeG;IACH,2BAA2B,IAAA;IAE3B;;;;;;;;OAQG;IACH,oBAAoB,IAAA;IAEpB;;;;;;;;;;;;;;;OAeG;IACH,sBAAsB,IAAA;IAEtB;;;;;;;;;;;;;;;OAeG;IACH,kBAAkB,IAAA;IAElB;;;;;;;;;;;;;OAaG;IACH,wBAAwB,KAAA;IAExB;;;;;;;;;OASG;IACH,gBAAgB,KAAA;IAEhB;;;;;;;;;OASG;IACH,gBAAgB,KAAA;IAEhB;;;;;;;;;;;;OAYG;IACH,qBAAqB,KAAA;IAErB;;;;;;;;;;;;;;OAcG;IACH,yBAAyB,KAAA;IAEzB;;;;;;;OAOG;IACH,YAAY,KAAA;IAEZ;;;;;;;;;;;;OAYG;IACH,uBAAuB,KAAA;IAEvB;;;;;;;;;;;;;;;OAeG;IACH,2BAA2B,KAAA;IAE3B;;;;;;;;;;OAUG;IACH,kBAAkB,KAAA;IAElB;;;;;;;;;;;OAWG;IACH,eAAe,KAAA;IAEf;;;;;;;;;;;OAWG;IACH,SAAS,KAAA;IAET;;;;;;;;;OASG;IACH,2BAA2B,KAAA;IAE3B;;;;;;;;;OASG;IACH,gCAAgC,KAAA;IAEhC;;;;;;OAMG;IACH,oB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vB;;;;;;;;;;;;OAYG;IACH,cAAc,KAAA;IAEd;;;;;;;;;OASG;IACH,2BAA2B,KAAA;IAE3B;;;;;;;;;;;;;;;;;;OAkBG;IACH,mBAAmB,KAAA;IAEnB;;;;;;;;;;;;OAYG;IACH,mBAAmB,KAAA;IAEnB;;;;;;;;;;;;;;OAcG;IACH,cAAc,KAAA;IAEd;;;;;;;;;OASG;IACH,gBAAgB,KAAA;IAEhB;;;;;;;;;OASG;IACH,gBAAgB,KAAA;IAEhB;;;;;;;;;OASG;IACH,kBAAkB,KAAA;IAElB;;;;;;;;;OASG;IACH,kBAAkB,KAAA;IAElB;;;;;;;;;;;;;OAaG;IACH,mBAAmB,KAAA;IAEnB;;;;;;;;;;;;OAYG;IACH,wBAAwB,KAAA;IAExB;;;;;;;;;OASG;IACH,eAAe,KAAA;IAEf;;;;;;;;;OASG;IACH,eAAe,KAAA;IAEf;;;;;;;;;;;;;;;;OAgBG;IACH,mBAAmB,KAAA;IAEnB;;;;;;;;;;;;OAYG;IACH,kBAAkB,KAAA;IAElB;;;;;;;;;;;;;OAaG;IACH,iBAAiB,KAAA;IAEjB;;;;;;;;;;;;;;;;OAgBG;IACH,iBAAiB,KAAA;IAEjB;;;;;;;;;;;;;;;;;OAiBG;IACH,eAAe,KAAA;IAEf;;;;;;;;;;;;OAYG;IACH,aAAa,KAAA;CACd"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/// <reference types="isaac-typescript-definitions" />
|
|
2
2
|
import { CustomStage } from "../../interfaces/private/CustomStage";
|
|
3
|
-
/** For `GridEntityType.DECORATION` (1) */
|
|
3
|
+
/** For `GridEntityType.DECORATION` (1). */
|
|
4
4
|
export declare function setCustomDecorationGraphics(customStage: CustomStage, gridEntity: GridEntity): void;
|
|
5
|
-
/** For `GridEntityType.ROCK` (2) */
|
|
5
|
+
/** For `GridEntityType.ROCK` (2). */
|
|
6
6
|
export declare function setCustomRockGraphics(customStage: CustomStage, gridEntity: GridEntity): void;
|
|
7
|
-
/** For `GridEntityType.PIT` (7) */
|
|
7
|
+
/** For `GridEntityType.PIT` (7). */
|
|
8
8
|
export declare function setCustomPitGraphics(customStage: CustomStage, gridEntity: GridEntity): void;
|
|
9
|
-
/** For GridEntityType.DOOR (16) */
|
|
9
|
+
/** For `GridEntityType.DOOR` (16). */
|
|
10
10
|
export declare function setCustomDoorGraphics(customStage: CustomStage, gridEntity: GridEntity): void;
|
|
11
11
|
export declare function convertVanillaTrapdoors(customStage: CustomStage, gridEntity: GridEntity): void;
|
|
12
12
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customStageGridEntities.d.ts","sourceRoot":"","sources":["../../../src/features/customStage/customStageGridEntities.ts"],"names":[],"mappings":";AAkBA,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AASnE,
|
|
1
|
+
{"version":3,"file":"customStageGridEntities.d.ts","sourceRoot":"","sources":["../../../src/features/customStage/customStageGridEntities.ts"],"names":[],"mappings":";AAkBA,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AASnE,2CAA2C;AAC3C,wBAAgB,2BAA2B,CACzC,WAAW,EAAE,WAAW,EACxB,UAAU,EAAE,UAAU,GACrB,IAAI,CAwCN;AAED,qCAAqC;AACrC,wBAAgB,qBAAqB,CACnC,WAAW,EAAE,WAAW,EACxB,UAAU,EAAE,UAAU,GACrB,IAAI,CAyDN;AAED,oCAAoC;AACpC,wBAAgB,oBAAoB,CAClC,WAAW,EAAE,WAAW,EACxB,UAAU,EAAE,UAAU,GACrB,IAAI,CAwBN;AAED,sCAAsC;AACtC,wBAAgB,qBAAqB,CACnC,WAAW,EAAE,WAAW,EACxB,UAAU,EAAE,UAAU,GACrB,IAAI,CAwBN;AAuDD,wBAAgB,uBAAuB,CACrC,WAAW,EAAE,WAAW,EACxB,UAAU,EAAE,UAAU,GACrB,IAAI,CAwBN;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAC9B,WAAW,EAAE,WAAW,EACxB,UAAU,EAAE,UAAU,GACrB,IAAI,CAsBN"}
|
|
@@ -155,7 +155,7 @@ function removeEntitiesSpawnedFromGridEntity(self, entities, gridEntity)
|
|
|
155
155
|
)
|
|
156
156
|
removeEntities(nil, entitiesFromGridEntity)
|
|
157
157
|
end
|
|
158
|
-
--- For `GridEntityType.DECORATION` (1)
|
|
158
|
+
--- For `GridEntityType.DECORATION` (1).
|
|
159
159
|
function ____exports.setCustomDecorationGraphics(self, customStage, gridEntity)
|
|
160
160
|
if customStage.decorationsPNGPath == nil and customStage.decorationsANM2Path == nil then
|
|
161
161
|
return
|
|
@@ -181,7 +181,7 @@ function ____exports.setCustomDecorationGraphics(self, customStage, gridEntity)
|
|
|
181
181
|
sprite:LoadGraphics()
|
|
182
182
|
end
|
|
183
183
|
end
|
|
184
|
-
--- For `GridEntityType.ROCK` (2)
|
|
184
|
+
--- For `GridEntityType.ROCK` (2).
|
|
185
185
|
function ____exports.setCustomRockGraphics(self, customStage, gridEntity)
|
|
186
186
|
if customStage.rocksPNGPath == nil and customStage.rocksANM2Path == nil then
|
|
187
187
|
return
|
|
@@ -224,7 +224,7 @@ function ____exports.setCustomRockGraphics(self, customStage, gridEntity)
|
|
|
224
224
|
end
|
|
225
225
|
until true
|
|
226
226
|
end
|
|
227
|
-
--- For `GridEntityType.PIT` (7)
|
|
227
|
+
--- For `GridEntityType.PIT` (7).
|
|
228
228
|
function ____exports.setCustomPitGraphics(self, customStage, gridEntity)
|
|
229
229
|
if customStage.pitsPNGPath == nil then
|
|
230
230
|
return
|
|
@@ -244,7 +244,7 @@ function ____exports.setCustomPitGraphics(self, customStage, gridEntity)
|
|
|
244
244
|
sprite:LoadGraphics()
|
|
245
245
|
end
|
|
246
246
|
end
|
|
247
|
-
--- For GridEntityType.DOOR (16)
|
|
247
|
+
--- For `GridEntityType.DOOR` (16).
|
|
248
248
|
function ____exports.setCustomDoorGraphics(self, customStage, gridEntity)
|
|
249
249
|
if customStage.doorPNGPaths == nil then
|
|
250
250
|
return
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="isaac-typescript-definitions" />
|
|
2
2
|
/// <reference types="isaac-typescript-definitions" />
|
|
3
|
-
/** For `EntityType.EFFECT` (1000), `EffectVariant.DICE_FLOOR` (76) */
|
|
3
|
+
/** For `EntityType.EFFECT` (1000), `EffectVariant.DICE_FLOOR` (76). */
|
|
4
4
|
export declare const DICE_FLOOR_TRIGGER_SQUARE_SIZE = 75;
|
|
5
5
|
/** Helper function to see if a player is close enough to activate a Dice Room floor. */
|
|
6
6
|
export declare function isCloseEnoughToTriggerDiceFloor(player: EntityPlayer, diceFloor: EntityEffect): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"effects.d.ts","sourceRoot":"","sources":["../../src/functions/effects.ts"],"names":[],"mappings":";;AAEA,
|
|
1
|
+
{"version":3,"file":"effects.d.ts","sourceRoot":"","sources":["../../src/functions/effects.ts"],"names":[],"mappings":";;AAEA,uEAAuE;AACvE,eAAO,MAAM,8BAA8B,KAAK,CAAC;AAEjD,wFAAwF;AACxF,wBAAgB,+BAA+B,CAC7C,MAAM,EAAE,YAAY,EACpB,SAAS,EAAE,YAAY,GACtB,OAAO,CAUT"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
local ____exports = {}
|
|
2
2
|
local ____math = require("functions.math")
|
|
3
3
|
local inRectangle = ____math.inRectangle
|
|
4
|
-
--- For `EntityType.EFFECT` (1000), `EffectVariant.DICE_FLOOR` (76)
|
|
4
|
+
--- For `EntityType.EFFECT` (1000), `EffectVariant.DICE_FLOOR` (76).
|
|
5
5
|
____exports.DICE_FLOOR_TRIGGER_SQUARE_SIZE = 75
|
|
6
6
|
--- Helper function to see if a player is close enough to activate a Dice Room floor.
|
|
7
7
|
function ____exports.isCloseEnoughToTriggerDiceFloor(self, player, diceFloor)
|
|
@@ -86,6 +86,10 @@ export declare function getFilteredNewEntities<T extends AnyEntity>(oldEntities:
|
|
|
86
86
|
/**
|
|
87
87
|
* Helper function to measure an entity's velocity to see if it is moving.
|
|
88
88
|
*
|
|
89
|
+
* Use this helper function over checking if the velocity length is equal to 0 because entities can
|
|
90
|
+
* look like they are completely immobile but yet still have a non zero velocity. Thus, using a
|
|
91
|
+
* threshold is needed.
|
|
92
|
+
*
|
|
89
93
|
* @param entity The entity whose velocity to measure.
|
|
90
94
|
* @param threshold Optional. The threshold from 0 to consider to be moving. Default is 0.01.
|
|
91
95
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../src/functions/entities.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAI1D,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAO/C;;;;;;;;;GASG;AACH,wBAAgB,aAAa,CAC3B,UAAU,GAAE,UAAe,EAC3B,OAAO,SAAK,EACZ,OAAO,SAAK,EACZ,cAAc,UAAQ,GACrB,GAAG,CAcL;AAED;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAC7B,UAAU,GAAE,UAAe,EAC3B,OAAO,SAAK,EACZ,OAAO,SAAK,EACZ,cAAc,UAAQ,GACrB,OAAO,CAGT;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,SAAS,SAAS,EACpD,eAAe,EAAE,MAAM,EACvB,QAAQ,EAAE,CAAC,EAAE,GACZ,CAAC,GAAG,SAAS,CAaf;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,WAAW,CACzB,UAAU,GAAE,UAAe,EAC3B,OAAO,SAAK,EACZ,OAAO,SAAK,EACZ,cAAc,UAAQ,GACrB,MAAM,EAAE,CAMV;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAC7B,MAAM,EAAE,MAAM,GACb,MAAM,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC,C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,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAgB9D;AAED,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CASzD;AAED;;;;;GAKG;AACH,wBAAgB,KAAK,CACnB,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,GAAG,EACZ,OAAO,EAAE,GAAG,EACZ,QAAQ,EAAE,MAAM,EAChB,QAAQ,GAAE,MAAmB,EAC7B,OAAO,GAAE,MAAM,GAAG,SAAqB,EACvC,SAAS,GAAE,IAAI,GAAG,GAAG,GAAG,SAAqB,GAC5C,MAAM,CAsCR;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAC3B,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,GAAG,EACZ,OAAO,EAAE,GAAG,EACZ,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,IAAI,GAAG,GAAG,EACrB,QAAQ,GAAE,MAAmB,EAC7B,OAAO,GAAE,MAAM,GAAG,SAAqB,GACtC,MAAM,CAUR"}
|
|
@@ -235,6 +235,10 @@ function ____exports.getFilteredNewEntities(self, oldEntities, newEntities)
|
|
|
235
235
|
end
|
|
236
236
|
--- Helper function to measure an entity's velocity to see if it is moving.
|
|
237
237
|
--
|
|
238
|
+
-- Use this helper function over checking if the velocity length is equal to 0 because entities can
|
|
239
|
+
-- look like they are completely immobile but yet still have a non zero velocity. Thus, using a
|
|
240
|
+
-- threshold is needed.
|
|
241
|
+
--
|
|
238
242
|
-- @param entity The entity whose velocity to measure.
|
|
239
243
|
-- @param threshold Optional. The threshold from 0 to consider to be moving. Default is 0.01.
|
|
240
244
|
function ____exports.isEntityMoving(self, entity, threshold)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entityTypes.d.ts","sourceRoot":"","sources":["../../src/functions/entityTypes.ts"],"names":[],"mappings":";AAEA,
|
|
1
|
+
{"version":3,"file":"entityTypes.d.ts","sourceRoot":"","sources":["../../src/functions/entityTypes.ts"],"names":[],"mappings":";AAEA,iCAAiC;AACjC,wBAAgB,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,IAAI,UAAU,CAE3D"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
local ____exports = {}
|
|
2
2
|
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
3
3
|
local EntityType = ____isaac_2Dtypescript_2Ddefinitions.EntityType
|
|
4
|
-
--- For `EntityType.SLOT` (6)
|
|
4
|
+
--- For `EntityType.SLOT` (6).
|
|
5
5
|
function ____exports.isSlot(self, entity)
|
|
6
6
|
return entity.Type == EntityType.SLOT
|
|
7
7
|
end
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
/// <reference types="isaac-typescript-definitions" />
|
|
2
|
-
/** For `PickupVariant.HEART` (10) */
|
|
2
|
+
/** For `PickupVariant.HEART` (10). */
|
|
3
3
|
export declare function isHeart(pickup: EntityPickup): pickup is EntityPickupHeart;
|
|
4
|
-
/** For `PickupVariant.COIN` (20) */
|
|
4
|
+
/** For `PickupVariant.COIN` (20). */
|
|
5
5
|
export declare function isCoin(pickup: EntityPickup): pickup is EntityPickupCoin;
|
|
6
|
-
/** For `PickupVariant.KEY` (30) */
|
|
6
|
+
/** For `PickupVariant.KEY` (30). */
|
|
7
7
|
export declare function isKey(pickup: EntityPickup): pickup is EntityPickupKey;
|
|
8
|
-
/** For `PickupVariant.BOMB` (40) */
|
|
8
|
+
/** For `PickupVariant.BOMB` (40). */
|
|
9
9
|
export declare function isBombPickup(pickup: EntityPickup): pickup is EntityPickupBomb;
|
|
10
|
-
/** For `PickupVariant.POOP` (42) */
|
|
10
|
+
/** For `PickupVariant.POOP` (42). */
|
|
11
11
|
export declare function isPoopPickup(pickup: EntityPickup): pickup is EntityPickupPoop;
|
|
12
|
-
/** For `PickupVariant.SACK` (69) */
|
|
12
|
+
/** For `PickupVariant.SACK` (69). */
|
|
13
13
|
export declare function isSack(pickup: EntityPickup): pickup is EntityPickupSack;
|
|
14
|
-
/** For `PickupVariant.PILL` (70) */
|
|
14
|
+
/** For `PickupVariant.PILL` (70). */
|
|
15
15
|
export declare function isPill(pickup: EntityPickup): pickup is EntityPickupPill;
|
|
16
|
-
/** For `PickupVariant.LIL_BATTERY` (90) */
|
|
16
|
+
/** For `PickupVariant.LIL_BATTERY` (90). */
|
|
17
17
|
export declare function isBattery(pickup: EntityPickup): pickup is EntityPickupBattery;
|
|
18
|
-
/** For `PickupVariant.COLLECTIBLE` (100) */
|
|
18
|
+
/** For `PickupVariant.COLLECTIBLE` (100). */
|
|
19
19
|
export declare function isCollectible(pickup: EntityPickup): pickup is EntityPickupCollectible;
|
|
20
|
-
/** For `PickupVariant.TAROT_CARD` (300) */
|
|
20
|
+
/** For `PickupVariant.TAROT_CARD` (300). */
|
|
21
21
|
export declare function isCardPickup(pickup: EntityPickup): pickup is EntityPickupCard;
|
|
22
|
-
/** For `PickupVariant.TRINKET` (350) */
|
|
22
|
+
/** For `PickupVariant.TRINKET` (350). */
|
|
23
23
|
export declare function isTrinket(pickup: EntityPickup): pickup is EntityPickupTrinket;
|
|
24
24
|
//# sourceMappingURL=pickupVariants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pickupVariants.d.ts","sourceRoot":"","sources":["../../src/functions/pickupVariants.ts"],"names":[],"mappings":";AAIA,
|
|
1
|
+
{"version":3,"file":"pickupVariants.d.ts","sourceRoot":"","sources":["../../src/functions/pickupVariants.ts"],"names":[],"mappings":";AAIA,sCAAsC;AACtC,wBAAgB,OAAO,CAAC,MAAM,EAAE,YAAY,GAAG,MAAM,IAAI,iBAAiB,CAEzE;AAED,qCAAqC;AACrC,wBAAgB,MAAM,CAAC,MAAM,EAAE,YAAY,GAAG,MAAM,IAAI,gBAAgB,CAEvE;AAED,oCAAoC;AACpC,wBAAgB,KAAK,CAAC,MAAM,EAAE,YAAY,GAAG,MAAM,IAAI,eAAe,CAErE;AAED,qCAAqC;AACrC,wBAAgB,YAAY,CAAC,MAAM,EAAE,YAAY,GAAG,MAAM,IAAI,gBAAgB,CAE7E;AAED,qCAAqC;AACrC,wBAAgB,YAAY,CAAC,MAAM,EAAE,YAAY,GAAG,MAAM,IAAI,gBAAgB,CAE7E;AAED,qCAAqC;AACrC,wBAAgB,MAAM,CAAC,MAAM,EAAE,YAAY,GAAG,MAAM,IAAI,gBAAgB,CAEvE;AAED,qCAAqC;AACrC,wBAAgB,MAAM,CAAC,MAAM,EAAE,YAAY,GAAG,MAAM,IAAI,gBAAgB,CAEvE;AAED,4CAA4C;AAC5C,wBAAgB,SAAS,CAAC,MAAM,EAAE,YAAY,GAAG,MAAM,IAAI,mBAAmB,CAE7E;AAED,6CAA6C;AAC7C,wBAAgB,aAAa,CAC3B,MAAM,EAAE,YAAY,GACnB,MAAM,IAAI,uBAAuB,CAEnC;AAED,4CAA4C;AAC5C,wBAAgB,YAAY,CAAC,MAAM,EAAE,YAAY,GAAG,MAAM,IAAI,gBAAgB,CAE7E;AAED,yCAAyC;AACzC,wBAAgB,SAAS,CAAC,MAAM,EAAE,YAAY,GAAG,MAAM,IAAI,mBAAmB,CAE7E"}
|
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
local ____exports = {}
|
|
2
2
|
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
3
3
|
local PickupVariant = ____isaac_2Dtypescript_2Ddefinitions.PickupVariant
|
|
4
|
-
--- For `PickupVariant.HEART` (10)
|
|
4
|
+
--- For `PickupVariant.HEART` (10).
|
|
5
5
|
function ____exports.isHeart(self, pickup)
|
|
6
6
|
return pickup.Variant == PickupVariant.HEART
|
|
7
7
|
end
|
|
8
|
-
--- For `PickupVariant.COIN` (20)
|
|
8
|
+
--- For `PickupVariant.COIN` (20).
|
|
9
9
|
function ____exports.isCoin(self, pickup)
|
|
10
10
|
return pickup.Variant == PickupVariant.COIN
|
|
11
11
|
end
|
|
12
|
-
--- For `PickupVariant.KEY` (30)
|
|
12
|
+
--- For `PickupVariant.KEY` (30).
|
|
13
13
|
function ____exports.isKey(self, pickup)
|
|
14
14
|
return pickup.Variant == PickupVariant.KEY
|
|
15
15
|
end
|
|
16
|
-
--- For `PickupVariant.BOMB` (40)
|
|
16
|
+
--- For `PickupVariant.BOMB` (40).
|
|
17
17
|
function ____exports.isBombPickup(self, pickup)
|
|
18
18
|
return pickup.Variant == PickupVariant.BOMB
|
|
19
19
|
end
|
|
20
|
-
--- For `PickupVariant.POOP` (42)
|
|
20
|
+
--- For `PickupVariant.POOP` (42).
|
|
21
21
|
function ____exports.isPoopPickup(self, pickup)
|
|
22
22
|
return pickup.Variant == PickupVariant.POOP
|
|
23
23
|
end
|
|
24
|
-
--- For `PickupVariant.SACK` (69)
|
|
24
|
+
--- For `PickupVariant.SACK` (69).
|
|
25
25
|
function ____exports.isSack(self, pickup)
|
|
26
26
|
return pickup.Variant == PickupVariant.SACK
|
|
27
27
|
end
|
|
28
|
-
--- For `PickupVariant.PILL` (70)
|
|
28
|
+
--- For `PickupVariant.PILL` (70).
|
|
29
29
|
function ____exports.isPill(self, pickup)
|
|
30
30
|
return pickup.Variant == PickupVariant.PILL
|
|
31
31
|
end
|
|
32
|
-
--- For `PickupVariant.LIL_BATTERY` (90)
|
|
32
|
+
--- For `PickupVariant.LIL_BATTERY` (90).
|
|
33
33
|
function ____exports.isBattery(self, pickup)
|
|
34
34
|
return pickup.Variant == PickupVariant.LIL_BATTERY
|
|
35
35
|
end
|
|
36
|
-
--- For `PickupVariant.COLLECTIBLE` (100)
|
|
36
|
+
--- For `PickupVariant.COLLECTIBLE` (100).
|
|
37
37
|
function ____exports.isCollectible(self, pickup)
|
|
38
38
|
return pickup.Variant == PickupVariant.COLLECTIBLE
|
|
39
39
|
end
|
|
40
|
-
--- For `PickupVariant.TAROT_CARD` (300)
|
|
40
|
+
--- For `PickupVariant.TAROT_CARD` (300).
|
|
41
41
|
function ____exports.isCardPickup(self, pickup)
|
|
42
42
|
return pickup.Variant == PickupVariant.TAROT_CARD
|
|
43
43
|
end
|
|
44
|
-
--- For `PickupVariant.TRINKET` (350)
|
|
44
|
+
--- For `PickupVariant.TRINKET` (350).
|
|
45
45
|
function ____exports.isTrinket(self, pickup)
|
|
46
46
|
return pickup.Variant == PickupVariant.TRINKET
|
|
47
47
|
end
|