Make the powered examine text fully client predicted (#30441)

* Make the powered examine text fully client predicted

* switch to using the Entity<T> API for the examine event
This commit is contained in:
Mervill
2024-07-29 00:28:17 -07:00
committed by GitHub
parent c586561a9e
commit ec19f9f4a9
3 changed files with 24 additions and 14 deletions

View File

@@ -1,6 +1,15 @@
namespace Content.Shared.Power.EntitySystems;
using Content.Shared.Examine;
using Content.Shared.Power.Components;
namespace Content.Shared.Power.EntitySystems;
public abstract class SharedPowerReceiverSystem : EntitySystem
{
protected string GetExamineText(bool powered)
{
return Loc.GetString("power-receiver-component-on-examine-main",
("stateText", Loc.GetString(powered
? "power-receiver-component-on-examine-powered"
: "power-receiver-component-on-examine-unpowered")));
}
}