Class SpillBehavior
Inheritance
System.Object
SpillBehavior
Implements
Namespace: Content.Server.Destructible.Thresholds.Behaviors
Assembly: Content.Server.dll
Syntax
public sealed class SpillBehavior : object, IThresholdBehavior
Fields
| Improve this Doc View SourceSolution
Declaration
public string? Solution
Field Value
Type | Description |
---|---|
System.Nullable<System.String> |
Methods
| Improve this Doc View SourceExecute(EntityUid, DestructibleSystem, Nullable<EntityUid>)
If there is a SpillableComponent on EntityUidowner use it to create a puddle/smear. Or whatever solution is specified in the behavior itself. If none are available do nothing.
Declaration
public void Execute(EntityUid owner, DestructibleSystem system, EntityUid? cause = null)
Parameters
Type | Name | Description |
---|---|---|
EntityUid | owner | Entity on which behavior is executed |
DestructibleSystem | system | system calling the behavior |
System.Nullable<EntityUid> | cause |