Remove static ILocalizationManager resolves. (#17392)

This commit is contained in:
Leon Friedrich
2023-06-17 13:57:32 +12:00
committed by GitHub
parent 78043682b9
commit ef0248cd78
5 changed files with 9 additions and 16 deletions

View File

@@ -14,21 +14,14 @@ namespace Content.Server.Examine
{
[Dependency] private readonly VerbSystem _verbSystem = default!;
private static readonly FormattedMessage _entityNotFoundMessage;
private static readonly FormattedMessage _entityOutOfRangeMessage;
static ExamineSystem()
{
_entityNotFoundMessage = new FormattedMessage();
_entityNotFoundMessage.AddText(Loc.GetString("examine-system-entity-does-not-exist"));
_entityOutOfRangeMessage = new FormattedMessage();
_entityOutOfRangeMessage.AddText(Loc.GetString("examine-system-cant-see-entity"));
}
private readonly FormattedMessage _entityNotFoundMessage = new();
private readonly FormattedMessage _entityOutOfRangeMessage = new();
public override void Initialize()
{
base.Initialize();
_entityNotFoundMessage.AddText(Loc.GetString("examine-system-entity-does-not-exist"));
_entityOutOfRangeMessage.AddText(Loc.GetString("examine-system-cant-see-entity"));
SubscribeNetworkEvent<ExamineSystemMessages.RequestExamineInfoMessage>(ExamineInfoRequest);
}