Replace all T : Component constraints with T : IComponent (#21073)
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Linq;
|
||||
using Content.Server.Administration.Logs;
|
||||
using Content.Server.Atmos.EntitySystems;
|
||||
using Content.Server.Chat.Systems;
|
||||
@@ -22,7 +21,7 @@ namespace Content.Server.StationEvents.Events;
|
||||
/// <summary>
|
||||
/// An abstract entity system inherited by all station events for their behavior.
|
||||
/// </summary>
|
||||
public abstract partial class StationEventSystem<T> : GameRuleSystem<T> where T : Component
|
||||
public abstract partial class StationEventSystem<T> : GameRuleSystem<T> where T : IComponent
|
||||
{
|
||||
[Dependency] protected readonly IAdminLogManager AdminLogManager = default!;
|
||||
[Dependency] private readonly IGameTiming _timing = default!;
|
||||
|
||||
Reference in New Issue
Block a user