using Robust.Shared.Serialization.Manager; namespace Content.Shared.Traits.Assorted; /// /// This handles removing accents when using the accentless trait. /// public sealed class AccentlessSystem : EntitySystem { /// public override void Initialize() { base.Initialize(); SubscribeLocalEvent(RemoveAccents); } private void RemoveAccents(EntityUid uid, AccentlessComponent component, ComponentStartup args) { foreach (var accent in component.RemovedAccents.Values) { var accentComponent = accent.Component; RemComp(uid, accentComponent.GetType()); } } }