* Converted all SnapGridPositionChangedEvent subscriptions to AnchorStateChangedEvent. * Fixes power tests with new anchored requirements. * Moved AnchorableComponent into construction. AnchorableComponent now uses Transform.Anchored. * Fixed bug with nodes, power works again. * Adds lifetime stages to Component. * Update Engine to v0.4.70.
22 lines
479 B
C#
22 lines
479 B
C#
using Robust.Shared.GameObjects;
|
|
using Robust.Shared.ViewVariables;
|
|
|
|
namespace Content.Server.MachineLinking.Components
|
|
{
|
|
[RegisterComponent]
|
|
public class SignalLinkerComponent : Component
|
|
{
|
|
public override string Name => "SignalLinker";
|
|
|
|
[ViewVariables]
|
|
public SignalTransmitterComponent? Link { get; set; }
|
|
|
|
protected override void Initialize()
|
|
{
|
|
base.Initialize();
|
|
|
|
Link = null;
|
|
}
|
|
}
|
|
}
|