machine linking refactor to ecs (#4323)
* started work * some more work, ui working (somewhat) * stuff * reorganization * some more reorg * conveyors * conveyors working * finalized (dis)connection added linkattempt added feedback text work on conveyors * removed command add rangecheck * fixed inrange check * handling * ui no longer kanser, ship it * adresses reviews * reformats file * reformats file Co-authored-by: Paul <ritter.paul1+git@googlemail.com>
This commit is contained in:
@@ -14,7 +14,7 @@ using Robust.Shared.ViewVariables;
|
||||
namespace Content.Server.Conveyor
|
||||
{
|
||||
[RegisterComponent]
|
||||
public class ConveyorComponent : Component, ISignalReceiver<TwoWayLeverSignal>, ISignalReceiver<bool>
|
||||
public class ConveyorComponent : Component
|
||||
{
|
||||
public override string Name => "Conveyor";
|
||||
|
||||
@@ -150,7 +150,7 @@ namespace Content.Server.Conveyor
|
||||
return true;
|
||||
}
|
||||
|
||||
public void TriggerSignal(TwoWayLeverSignal signal)
|
||||
public void SetState(TwoWayLeverSignal signal)
|
||||
{
|
||||
State = signal switch
|
||||
{
|
||||
@@ -160,10 +160,5 @@ namespace Content.Server.Conveyor
|
||||
_ => ConveyorState.Off
|
||||
};
|
||||
}
|
||||
|
||||
public void TriggerSignal(bool signal)
|
||||
{
|
||||
State = signal ? ConveyorState.Forward : ConveyorState.Off;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user