using Content.Client.Examine;
using Robust.Shared.Map;
using Robust.Shared.Prototypes;
namespace Content.Client.Power.Generation.Teg;
///
/// Handles client-side logic for the thermo-electric generator (TEG).
///
///
///
/// TEG circulators show which direction the in- and outlet port is by popping up two floating arrows when examined.
///
///
///
public sealed class TegSystem : EntitySystem
{
[ValidatePrototypeId]
private const string ArrowPrototype = "TegCirculatorArrow";
public override void Initialize()
{
SubscribeLocalEvent(CirculatorExamined);
}
private void CirculatorExamined(EntityUid uid, TegCirculatorComponent component, ClientExaminedEvent args)
{
Spawn(ArrowPrototype, new EntityCoordinates(uid, 0, 0));
}
}