isaacscript-common 9.3.0 → 9.5.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.
- 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/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/gridEntitiesSpecific.d.ts +24 -0
- package/dist/functions/gridEntitiesSpecific.d.ts.map +1 -1
- package/dist/functions/gridEntitiesSpecific.lua +41 -0
- 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/functions/pickups.d.ts +2 -0
- package/dist/functions/pickups.d.ts.map +1 -1
- package/dist/functions/pickups.lua +2 -0
- package/dist/index.d.ts +105 -41
- package/package.json +2 -2
- package/src/callbacks/subscriptions/postGridEntityCollision.ts +21 -1
- package/src/callbacks/subscriptions/postGridEntityCustomCollision.ts +25 -2
- 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/gridEntitiesSpecific.ts +54 -0
- package/src/functions/pickupVariants.ts +11 -11
- package/src/functions/pickups.ts +2 -0
|
@@ -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::
|
|
@@ -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;;;;;;;;;;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;;;;;;;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,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Z,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
|
|
@@ -41,6 +41,14 @@ export declare function getRocks(variant?: number): GridEntityRock[];
|
|
|
41
41
|
export declare function getSpikes(variant?: number): GridEntitySpikes[];
|
|
42
42
|
/** Helper function to get all of the `GridEntityTNT` in the room. */
|
|
43
43
|
export declare function getTNT(variant?: number): GridEntityTNT[];
|
|
44
|
+
/**
|
|
45
|
+
* Helper function to get all of the grid entities of type `GridEntityType.TELEPORTER` (23) in the
|
|
46
|
+
* room.
|
|
47
|
+
*
|
|
48
|
+
* @param variant Optional. If specified, will only get the teleporters that match the variant.
|
|
49
|
+
* Default is -1, which matches every variant.
|
|
50
|
+
*/
|
|
51
|
+
export declare function getTeleporters(variant?: number): GridEntity[];
|
|
44
52
|
/**
|
|
45
53
|
* Helper function to get all of the grid entities of type `GridEntityType.TRAPDOOR` (17) in the
|
|
46
54
|
* room. Specify a specific trapdoor variant to select only trapdoors of that variant.
|
|
@@ -135,6 +143,18 @@ export declare function removeAllSpikes(variant?: number, updateRoom?: boolean,
|
|
|
135
143
|
* @returns The TNTs that were removed.
|
|
136
144
|
*/
|
|
137
145
|
export declare function removeAllTNT(variant?: number, updateRoom?: boolean, cap?: int): GridEntityTNT[];
|
|
146
|
+
/**
|
|
147
|
+
* Helper function to remove all of the `GridEntityType.TELEPORTER` (23) in the room.
|
|
148
|
+
*
|
|
149
|
+
* @param variant Optional. If specified, will only remove the teleporters that match this variant.
|
|
150
|
+
* Default is -1, which matches every variant.
|
|
151
|
+
* @param updateRoom Optional. Whether or not to update the room after the teleporters are removed.
|
|
152
|
+
* Default is false. For more information, see the description of the
|
|
153
|
+
* `removeGridEntities` helper function.
|
|
154
|
+
* @param cap Optional. If specified, will only remove the given amount of teleporters.
|
|
155
|
+
* @returns The teleporters that were removed.
|
|
156
|
+
*/
|
|
157
|
+
export declare function removeAllTeleporters(variant?: number, updateRoom?: boolean, cap?: int): GridEntity[];
|
|
138
158
|
/**
|
|
139
159
|
* Helper function to remove all of the `GridEntityType.TRAPDOOR` (17) in the room.
|
|
140
160
|
*
|
|
@@ -179,6 +199,10 @@ export declare function spawnSpikesWithVariant(variant: int, gridIndexOrPosition
|
|
|
179
199
|
export declare function spawnTNT(gridIndexOrPosition: int | Vector): GridEntityTNT | undefined;
|
|
180
200
|
/** Helper function to spawn a `GridEntityType.TNT` (12) with a specific variant. */
|
|
181
201
|
export declare function spawnTNTWithVariant(variant: int, gridIndexOrPosition: int | Vector): GridEntityTNT | undefined;
|
|
202
|
+
/** Helper function to spawn a `GridEntityType.TELEPORTER` (23). */
|
|
203
|
+
export declare function spawnTeleporter(gridIndexOrPosition: int | Vector): GridEntity | undefined;
|
|
204
|
+
/** Helper function to spawn a `GridEntityType.TELEPORTER` (23) with a specific variant. */
|
|
205
|
+
export declare function spawnTeleporterWithVariant(variant: int, gridIndexOrPosition: int | Vector): GridEntity | undefined;
|
|
182
206
|
/** Helper function to spawn a `GridEntityType.TRAPDOOR` (17). */
|
|
183
207
|
export declare function spawnTrapdoor(gridIndexOrPosition: int | Vector): GridEntity | undefined;
|
|
184
208
|
/** Helper function to spawn a `GridEntityType.TRAPDOOR` (17) with a specific variant. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gridEntitiesSpecific.d.ts","sourceRoot":"","sources":["../../src/functions/gridEntitiesSpecific.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,WAAW,EAEX,UAAU,EACV,qBAAqB,EACrB,oBAAoB,EACpB,WAAW,EACX,eAAe,EAChB,MAAM,8BAA8B,CAAC;AAStC;;;;;;GAMG;AACH,wBAAgB,cAAc,CAC5B,iBAAiB,GAAE,iBAAsB,GACxC,UAAU,EAAE,CAMd;AAKD;;;;;GAKG;AACH,wBAAgB,OAAO,CAAC,UAAU,GAAE,UAAe,GAAG,aAAa,EAAE,CAepE;AAED;;;;;GAKG;AACH,wBAAgB,QAAQ,CACtB,WAAW,GAAE,qBAA0B,GACtC,cAAc,EAAE,CAelB;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAC/B,oBAAoB,GAAE,oBAAyB,GAC9C,uBAAuB,EAAE,CAkB3B;AAED;;;;;;;GAOG;A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ACtF,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,GAAG,EACZ,mBAAmB,EAAE,GAAG,GAAG,MAAM,GAChC,gBAAgB,GAAG,SAAS,CAgB9B;AAED,4DAA4D;AAC5D,wBAAgB,QAAQ,CACtB,mBAAmB,EAAE,GAAG,GAAG,MAAM,GAChC,aAAa,GAAG,SAAS,CAE3B;AAED,oFAAoF;AACpF,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,GAAG,EACZ,mBAAmB,EAAE,GAAG,GAAG,MAAM,GAChC,aAAa,GAAG,SAAS,CAgB3B;AAED,mEAAmE;AACnE,wBAAgB,eAAe,CAC7B,mBAAmB,EAAE,GAAG,GAAG,MAAM,GAChC,UAAU,GAAG,SAAS,CAExB;AAED,2FAA2F;AAC3F,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,GAAG,EACZ,mBAAmB,EAAE,GAAG,GAAG,MAAM,GAChC,UAAU,GAAG,SAAS,CAMxB;AAED,iEAAiE;AACjE,wBAAgB,aAAa,CAC3B,mBAAmB,EAAE,GAAG,GAAG,MAAM,GAChC,UAAU,GAAG,SAAS,CAKxB;AAED,yFAAyF;AACzF,wBAAgB,wBAAwB,CACtC,eAAe,EAAE,eAAe,EAChC,mBAAmB,EAAE,GAAG,GAAG,MAAM,GAChC,UAAU,GAAG,SAAS,CAMxB"}
|
|
@@ -102,6 +102,10 @@ function ____exports.spawnTNTWithVariant(self, variant, gridIndexOrPosition)
|
|
|
102
102
|
end
|
|
103
103
|
return tnt
|
|
104
104
|
end
|
|
105
|
+
--- Helper function to spawn a `GridEntityType.TELEPORTER` (23) with a specific variant.
|
|
106
|
+
function ____exports.spawnTeleporterWithVariant(self, variant, gridIndexOrPosition)
|
|
107
|
+
return spawnGridEntityWithVariant(nil, GridEntityType.TELEPORTER, variant, gridIndexOrPosition)
|
|
108
|
+
end
|
|
105
109
|
--- Helper function to get all of the grid entities of type `GridEntityType.CRAWL_SPACE` (18) in the
|
|
106
110
|
-- room.
|
|
107
111
|
--
|
|
@@ -238,6 +242,20 @@ function ____exports.getTNT(self, variant)
|
|
|
238
242
|
end
|
|
239
243
|
return tntArray
|
|
240
244
|
end
|
|
245
|
+
--- Helper function to get all of the grid entities of type `GridEntityType.TELEPORTER` (23) in the
|
|
246
|
+
-- room.
|
|
247
|
+
--
|
|
248
|
+
-- @param variant Optional. If specified, will only get the teleporters that match the variant.
|
|
249
|
+
-- Default is -1, which matches every variant.
|
|
250
|
+
function ____exports.getTeleporters(self, variant)
|
|
251
|
+
if variant == nil then
|
|
252
|
+
variant = -1
|
|
253
|
+
end
|
|
254
|
+
if variant == -1 then
|
|
255
|
+
return getGridEntities(nil, GridEntityType.TELEPORTER)
|
|
256
|
+
end
|
|
257
|
+
return getMatchingGridEntities(nil, GridEntityType.TELEPORTER, variant)
|
|
258
|
+
end
|
|
241
259
|
--- Helper function to get all of the grid entities of type `GridEntityType.TRAPDOOR` (17) in the
|
|
242
260
|
-- room. Specify a specific trapdoor variant to select only trapdoors of that variant.
|
|
243
261
|
function ____exports.getTrapdoors(self, trapdoorVariant)
|
|
@@ -384,6 +402,25 @@ function ____exports.removeAllTNT(self, variant, updateRoom, cap)
|
|
|
384
402
|
local tnt = ____exports.getTNT(nil, variant)
|
|
385
403
|
return removeGridEntities(nil, tnt, updateRoom, cap)
|
|
386
404
|
end
|
|
405
|
+
--- Helper function to remove all of the `GridEntityType.TELEPORTER` (23) in the room.
|
|
406
|
+
--
|
|
407
|
+
-- @param variant Optional. If specified, will only remove the teleporters that match this variant.
|
|
408
|
+
-- Default is -1, which matches every variant.
|
|
409
|
+
-- @param updateRoom Optional. Whether or not to update the room after the teleporters are removed.
|
|
410
|
+
-- Default is false. For more information, see the description of the
|
|
411
|
+
-- `removeGridEntities` helper function.
|
|
412
|
+
-- @param cap Optional. If specified, will only remove the given amount of teleporters.
|
|
413
|
+
-- @returns The teleporters that were removed.
|
|
414
|
+
function ____exports.removeAllTeleporters(self, variant, updateRoom, cap)
|
|
415
|
+
if variant == nil then
|
|
416
|
+
variant = -1
|
|
417
|
+
end
|
|
418
|
+
if updateRoom == nil then
|
|
419
|
+
updateRoom = false
|
|
420
|
+
end
|
|
421
|
+
local teleporters = ____exports.getTeleporters(nil, variant)
|
|
422
|
+
return removeGridEntities(nil, teleporters, updateRoom, cap)
|
|
423
|
+
end
|
|
387
424
|
--- Helper function to remove all of the `GridEntityType.TRAPDOOR` (17) in the room.
|
|
388
425
|
--
|
|
389
426
|
-- @param trapdoorVariant Optional. If specified, will only remove the trapdoors that match this
|
|
@@ -435,6 +472,10 @@ end
|
|
|
435
472
|
function ____exports.spawnTNT(self, gridIndexOrPosition)
|
|
436
473
|
return ____exports.spawnTNTWithVariant(nil, 0, gridIndexOrPosition)
|
|
437
474
|
end
|
|
475
|
+
--- Helper function to spawn a `GridEntityType.TELEPORTER` (23).
|
|
476
|
+
function ____exports.spawnTeleporter(self, gridIndexOrPosition)
|
|
477
|
+
return ____exports.spawnTeleporterWithVariant(nil, 0, gridIndexOrPosition)
|
|
478
|
+
end
|
|
438
479
|
--- Helper function to spawn a `GridEntityType.TRAPDOOR` (17).
|
|
439
480
|
function ____exports.spawnTrapdoor(self, gridIndexOrPosition)
|
|
440
481
|
return ____exports.spawnCrawlSpaceWithVariant(nil, CrawlSpaceVariant.NORMAL, gridIndexOrPosition)
|
|
@@ -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"}
|