-
Notifications
You must be signed in to change notification settings - Fork 654
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add directional arrows to gas recycler.
- Loading branch information
1 parent
771a956
commit 51f34ef
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
Content.Client/_NF/Atmos/Entities/GasRecycler/GasRecyclerArrow.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)); | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
Content.Client/_NF/Atmos/Entities/GasRecycler/GasRecyclerComponent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
{ | ||
|
||
} |