Skip to content

Class "EntitySlot"⚓︎

It's Real.

Class Diagram⚓︎

    classDiagram
    class Entity:::diagramCurrentPage
    class EntityBomb
    class EntityEffect
    class EntityFamiliar
    class EntityKnife
    class EntityLaser
    class EntityNPC
    class EntityPickup
    class EntityPlayer
    class EntityProjectile
    class EntitySlot
    class EntityTear
    Entity <|-- EntityBomb
    Entity <|-- EntityEffect
    Entity <|-- EntityFamiliar
    Entity <|-- EntityKnife
    Entity <|-- EntityLaser
    Entity <|-- EntityNPC
    Entity <|-- EntityPickup
    Entity <|-- EntityPlayer
    Entity <|-- EntityProjectile
    Entity <|-- EntitySlot
    Entity <|-- EntityTear
    link Entity "https://wofsauge.github.io/IsaacDocs/rep/Entity.html" "Go to page for 'Entity' class"
    link EntityBomb "https://wofsauge.github.io/IsaacDocs/rep/EntityBomb.html" "Go to page for 'EntityBomb' class"
    link EntityEffect "https://wofsauge.github.io/IsaacDocs/rep/EntityEffect.html" "Go to page for 'EntityEffect' class"
    link EntityFamiliar "https://wofsauge.github.io/IsaacDocs/rep/EntityFamiliar.html" "Go to page for 'EntityFamiliar' class"
    link EntityKnife "https://wofsauge.github.io/IsaacDocs/rep/EntityKnife.html" "Go to page for 'EntityKnife' class"
    link EntityLaser "EntityLaser.html" "Go to page for 'EntityLaser' class"
    link EntityNPC "EntityNPC.html" "Go to page for 'EntityNPC' class"
    link EntityPickup "EntityPickup.html" "Go to page for 'EntityPickup' class"
    link EntityPlayer "EntityPlayer.html" "Go to page for 'EntityPlayer' class"
    link EntityProjectile "https://wofsauge.github.io/IsaacDocs/rep/EntityProjectile.html" "Go to page for 'EntityProjectile' class"
    link EntitySlot "EntitySlot.html" "Go to page for 'EntitySlot' class"
    link EntityTear "https://wofsauge.github.io/IsaacDocs/rep/EntityTear.html" "Go to page for 'EntityTear' class"

Functions⚓︎

CreateDropsFromExplosion ()⚓︎

void CreateDropsFromExplosion ( )⚓︎

这会强制实体可互动实体(EntitySlot)掉落其在被炸时通常会掉落的物品。


GetDonationValue ()⚓︎

int GetDonationValue ( )⚓︎

返回给予乞丐的硬币数量。返回的数字会根据乞丐的不同而有所变化。

Return info
  • 普通乞丐:已捐赠的硬币数量。
  • 恶魔乞丐:已捐赠的红心数量。
  • 电池乞丐、腐烂乞丐:每次支付时随机增加,最多增加到3,在给予奖励或支付报酬后重置为0。
  • 所有其他可互动实体:保持为0。

GetPrizeCollectible ()⚓︎

CollectibleType GetPrizeCollectible ( )⚓︎

似乎仅由夹娃娃机和赌命乞丐使用。获取获胜时作为奖品颁发的收藏品。


GetPrizeType ()⚓︎

int GetPrizeType ( )⚓︎

返回一个根据赌博机不同而变化的整数。

Return info
  • 赌博机:返回一个介于3 - 24之间的数字。3 - 12会使可互动实体吐出奖励。
    • 3:苍蝇或漂亮苍蝇。
    • 4:炸弹。
    • 5 - 6:红心。
    • 7:钥匙。
    • 8:药丸。
    • 9:未知。此值似乎从未被使用过。
    • 10 - 12:1 - 2枚硬币。
    • 13 - 24:无奖励。
  • 赌博乞丐和赌命乞丐:返回潜在奖品的拾取物变体(PickupVariant)
  • 炸弹乞丐:根据其输出的奖品类型返回一个介于1 - 3之间的数字。
    • 1:硬币。
    • 2:红心。
    • 3:收藏品。

GetShellGameAnimationIndex ()⚓︎

int GetShellGameAnimationIndex ( )⚓︎

返回赌博乞丐和赌命乞丐用于确定播放哪个奖品动画的索引。


GetState ()⚓︎

int GetState ( )⚓︎

返回可互动实体的当前状态。

Return info

所有可互动实体都有一个基于其当前行为的一致状态,具体如下: - 1:闲置。 - 2:奖励(赌博乞丐和赌命乞丐:闲置奖励状态) - 3:被炸 - 4:支付报酬 - 5:奖励(仅适用于赌博乞丐和赌命乞丐)


GetTimeout ()⚓︎

int GetTimeout ( )⚓︎

返回可互动实体确定其奖品之前的超时帧数。并非所有可互动实体都会使用此功能。

Return info
  • 除炸弹乞丐外的所有乞丐:每次支付时随机增加,返回1 << 161 << 17或它们的和,在给予奖励后重置为0。
  • 夹娃娃机:第一次成功支付报酬时,最小超时时间为1 << 16,仍会增加30并开始倒计时。第二次支付报酬时为1 << 17。第三次支付报酬时为1 << 16 + 1 << 17
  • 所有其他可互动实体:保持为0。

GetTouch ()⚓︎

int GetTouch ( )⚓︎

返回可互动实体的触摸计数器。当玩家触摸可互动实体时,触摸计数器每帧增加1,当没有玩家触摸时重置。


GetTriggerTimerNum ()⚓︎

int GetTriggerTimerNum ( )⚓︎

返回炸弹乞丐和补货机使用的一个数字。

Return info

炸炸弹乞丐时,此值会被设置为30。 补货机每次成功生效时将此值增加1。被炸时,有机会将其设置为11并重新生成另一个物品。


RandomCoinJamAnim ()⚓︎

string RandomCoinJamAnim ( )⚓︎

从以下选项中返回一个随机字符串:CoinJamCoinJam2CoinJam3CoinJam4。推测仅用于捐赠可互动实体。


SetDonationValue ()⚓︎

void SetDonationValue ( int DonationValue )⚓︎

设置可互动实体的捐赠值。更多信息请参阅GetDonationValue


SetPrizeCollectible ()⚓︎

void SetPrizeCollectible ( CollectibleType Collectible )⚓︎

似乎仅由夹娃娃机和赌命乞丐使用。此函数设置游戏将支付的收藏品,并相应地更新渲染的收藏品。


SetPrizeType ()⚓︎

void SetPrizeType ( int PrizeType )⚓︎

设置可互动实体的奖品类型。更多信息请参阅GetPrizeType


SetShellGameAnimationIndex ()⚓︎

void SetShellGameAnimationIndex ( int index )⚓︎

设置赌博乞丐和赌命乞丐用于确定播放哪个奖品动画的索引。


SetState ()⚓︎

void SetState ( int State )⚓︎

设置可互动实体的状态。更多信息请参阅GetState


SetTimeout ()⚓︎

void SetTimeout ( int Timeout )⚓︎

设置可互动实体的超时时间。更多信息请参阅GetTimeout


SetTouch ()⚓︎

void SetTouch ( int Touch )⚓︎

设置可互动实体的触摸计数器。当玩家触摸可互动实体时,触摸计数器每帧增加1,当没有玩家触摸时重置为0。


SetTriggerTimerNum ()⚓︎

void SetTriggerTimerNum ( int num )⚓︎

返回炸弹乞丐和补货机使用的一个数字。

More Info

补货机每次成功生效时将此值增加1。被炸时,有机会将其设置为11并重新生成另一个物品。 轰炸炸弹乞丐时,此值会被设置为30