Class ItemDropAttribute<I>
Register item drop for the entity, use ItemSystem.DropItemFor(Entity) to perform the item drop.
Type Parameters
Name | Description |
---|---|
I | Which item does it drops |
Constructors
ItemDropAttribute(int, int)
Register item drop for the entity, use ItemSystem.DropItemFor(Entity) to perform the item drop.
Declaration
public ItemDropAttribute(int dropChance, int dropCount = 1)
Parameters
Type | Name | Description |
---|---|---|
int | dropChance | Probability of dropping this item. 0 means 0%, 1000 means 100% |
int | dropCount | How many items does it drop at once |