Class OpenBehavior
Causes the drink/food to open when the destruction threshold is reached. If it is already open nothing happens.
Inheritance
System.Object
OpenBehavior
Implements
Namespace: Content.Server.Destructible.Thresholds.Behaviors
Assembly: Content.Server.dll
Syntax
public sealed class OpenBehavior : object, IThresholdBehavior
Methods
| Improve this Doc View SourceExecute(EntityUid, DestructibleSystem, Nullable<EntityUid>)
Declaration
public void Execute(EntityUid uid, DestructibleSystem system, EntityUid? cause = null)
Parameters
Type | Name | Description |
---|---|---|
EntityUid | uid | |
DestructibleSystem | system | |
System.Nullable<EntityUid> | cause |