Class DumpRestockInventory
Spawns a portion of the total items from one of the canRestock inventory entries on a VendingMachineRestock component.
Inheritance
System.Object
DumpRestockInventory
Implements
Namespace: Content.Server.Destructible.Thresholds.Behaviors
Assembly: Content.Server.dll
Syntax
public sealed class DumpRestockInventory : object, IThresholdBehavior
Fields
| Improve this Doc View SourcePercent
The percent of each inventory entry that will be salvaged upon destruction of the package.
Declaration
public float Percent
Field Value
Type | Description |
---|---|
System.Single |
Properties
| Improve this Doc View SourceOffset
Declaration
public float Offset { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
Methods
| Improve this Doc View SourceExecute(EntityUid, DestructibleSystem, Nullable<EntityUid>)
Declaration
public void Execute(EntityUid owner, DestructibleSystem system, EntityUid? cause = null)
Parameters
Type | Name | Description |
---|---|---|
EntityUid | owner | |
DestructibleSystem | system | |
System.Nullable<EntityUid> | cause |