15 lines
471 B
C#
15 lines
471 B
C#
namespace Barotrauma.Items.Components
|
|
{
|
|
partial class ItemLabel : ItemComponent, IDrawableComponent
|
|
{
|
|
public override void ReceiveSignal(int stepsTaken, string signal, Connection connection, Item source, Character sender, float power = 0, float signalStrength = 1)
|
|
{
|
|
switch (connection.Name)
|
|
{
|
|
case "set_text":
|
|
Text = signal;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
} |