Expand description
Common item code.
An item is anything in the game that can be picked up by the player.
Structs§
- Marker component that may be added to an item to cause it to be droped by a player.
- A helper struct containing a player-inventory pair that indicates the given player is holding the other entity in their inventory.
- An intventory component, indicating another entity that the player is carrying.
- Marker component for items.
- Marker component added to items when they are dropped.
- Component defining the grab settings when an item is grabbed.
- Marker component added to items when they are grabbed.
- Component defining the strength of the throw types when an item is dropped.
- Marker component added to items when they are used.
- System param that can be used to conveniently get the inventory of each player.
Functions§
- Drop items that have the
DropItem
component added to them.