Skip to content

Commit

Permalink
Add EntityManager dependency to base LocalizedEntityCommands
Browse files Browse the repository at this point in the history
  • Loading branch information
PJB3005 committed Jun 28, 2024
1 parent afe3376 commit 2c6fb95
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Robust.Shared/Console/LocalizedCommands.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System.Threading;
using System.Threading.Tasks;
using Robust.Shared.GameObjects;
using Robust.Shared.IoC;
using Robust.Shared.Localization;

Expand Down Expand Up @@ -47,4 +48,8 @@ public virtual ValueTask<CompletionResult> GetCompletionAsync(IConsoleShell shel
/// These commands are allowed to take dependencies on entity systems, reducing boilerplate for many usages.
/// </para>
/// </remarks>
public abstract class LocalizedEntityCommands : LocalizedCommands, IEntityConsoleCommand;
public abstract class LocalizedEntityCommands : LocalizedCommands, IEntityConsoleCommand
{
[Dependency]
protected readonly EntityManager EntityManager = default!;
}

0 comments on commit 2c6fb95

Please sign in to comment.