CatStation/Content.Shared/FeedbackSystem/SharedFeedbackManager.Events.cs
Pieter-Jan Briers 5168b5f3d4
IoC source gen compatibility (#43863)
* IoC source gen compatibility

Can be merged before or after https://github.com/space-wizards/RobustToolbox/pull/6549 doesn't really matter.

* Missed a spot
2026-05-09 03:29:58 +00:00

21 lines
593 B
C#

using System.Linq;
using Content.Shared.CCVar;
using Content.Shared.GameTicking;
using Robust.Shared.Configuration;
namespace Content.Shared.FeedbackSystem;
public abstract partial class SharedFeedbackManager : IEntityEventSubscriber
{
[Dependency] private IConfigurationManager _configManager = null!;
private void InitSubscriptions()
{
_configManager.OnValueChanged(CCVars.FeedbackValidOrigins, OnFeedbackOriginsUpdated, true);
}
private void OnFeedbackOriginsUpdated(string newOrigins)
{
_validOrigins = newOrigins.Split(' ').ToList();
}
}