Skip to content

Commit

Permalink
Add directional arrows to gas recycler.
Browse files Browse the repository at this point in the history
  • Loading branch information
the-hivequeen committed Mar 5, 2025
1 parent 771a956 commit 51f34ef
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
22 changes: 22 additions & 0 deletions Content.Client/_NF/Atmos/Entities/GasRecycler/GasRecyclerArrow.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
using Content.Client.Examine;
using Robust.Shared.Map;
using Robust.Shared.Prototypes;

namespace Content.Client._NF.Atmos.Entities.GasRecycler;

// Gas recyclers show pipe direction on examine, arrow sprite reused from TEG functionality
public sealed class GasRecyclerArrow : EntitySystem
{
[ValidatePrototypeId<EntityPrototype>]
private const string ArrowPrototype = "TegCirculatorArrow";

public override void Initialize()
{
SubscribeLocalEvent<GasRecyclerComponent, ClientExaminedEvent>(RecyclerExamined);
}

private void RecyclerExamined(EntityUid uid, GasRecyclerComponent component, ClientExaminedEvent args)
{
Spawn(ArrowPrototype, new EntityCoordinates(uid, 0, 0));
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
namespace Content.Client._NF.Atmos.Entities.GasRecycler;

[RegisterComponent]
public sealed partial class GasRecyclerComponent : Component
{

}

0 comments on commit 51f34ef

Please sign in to comment.