EntityInventory
Class in SurvivEngine.Entities namespace
Inherits from SurvivEngine.Entities.EntityComponentBase
Implements SurvivEngine.Serialization.ISerializeDataParameters
Class in SurvivEngine.Entities namespace
Inherits from SurvivEngine.Entities.EntityComponentBase
Implements SurvivEngine.Serialization.ISerializeDataParameters
Component that creates and manages an inventory for the entity it is attached to.
Read-Only
The inventory that this component manages.
Gets or sets the currently selected slot index within the inventory.
Spawns the entire contents of the inventory into the world at the given position and applies the given force.
pos The position to drop items at.
force The force to apply to spawned item entities.
Spawns the specified item into the world at the given position and applies the given force.
The item does not need to be within the entity's inventory.
item The item to drop.
pos The position to drop the item at.
force The force to apply to the spawned item entity.
Gets a collection of damages based on what the entity is holding.
Retrieves damage values from item properties.
If player isn't holding anything, returns a default 1 blunt damage.