Show / Hide Table of Contents

Class SpillBehavior

Inheritance
System.Object
SpillBehavior
Implements
IThresholdBehavior
Namespace: Content.Server.Destructible.Thresholds.Behaviors
Assembly: Content.Server.dll
Syntax
public sealed class SpillBehavior : object, IThresholdBehavior

Fields

| Improve this Doc View Source

Solution

Declaration
public string? Solution
Field Value
Type Description
System.Nullable<System.String>

Methods

| Improve this Doc View Source

Execute(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

Implements

IThresholdBehavior
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾