Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Co-authored-by: Kara <lunarautomaton6@gmail.com>
30 lines
959 B
C#
30 lines
959 B
C#
using Content.Shared.Wires;
|
|
|
|
namespace Content.Server.Wires;
|
|
|
|
// Exists so that dummy wires can be added.
|
|
//
|
|
// You *shouldn't* be adding these as raw
|
|
// wire actions, but it's here anyways as
|
|
// a serializable class for consistency.
|
|
// C'est la vie.
|
|
[DataDefinition]
|
|
public sealed class DummyWireAction : BaseWireAction
|
|
{
|
|
public override object? StatusKey { get; } = null;
|
|
|
|
public override StatusLightData? GetStatusLightData(Wire wire) => null;
|
|
public override bool AddWire(Wire wire, int count) => true;
|
|
public override bool Cut(EntityUid user, Wire wire) => true;
|
|
public override bool Mend(EntityUid user, Wire wire) => true;
|
|
public override bool Pulse(EntityUid user, Wire wire) => true;
|
|
|
|
// doesn't matter if you get any information off of this,
|
|
// if you really want to mess with dummy wires, you should
|
|
// probably code your own implementation?
|
|
private enum DummyWireActionIdentifier
|
|
{
|
|
Key,
|
|
}
|
|
}
|