Gets rid of all ComponentManager usages. (#4707)
This commit is contained in:
committed by
GitHub
parent
7953e5b962
commit
0be5ff829b
@@ -50,7 +50,7 @@ namespace Content.Client.Commands
|
||||
EntitySystem.Get<SubFloorHideSystem>()
|
||||
.ShowAll = true;
|
||||
|
||||
var components = IoCManager.Resolve<IEntityManager>().ComponentManager
|
||||
var components = IoCManager.Resolve<IEntityManager>()
|
||||
.EntityQuery<SubFloorHideComponent>(true);
|
||||
|
||||
foreach (var component in components)
|
||||
|
||||
@@ -16,8 +16,8 @@ namespace Content.Client.Commands
|
||||
|
||||
public void Execute(IConsoleShell shell, string argStr, string[] args)
|
||||
{
|
||||
var componentManager = IoCManager.Resolve<IComponentManager>();
|
||||
var mechanisms = componentManager.EntityQuery<SharedMechanismComponent>(true);
|
||||
var entityManager = IoCManager.Resolve<IEntityManager>();
|
||||
var mechanisms = entityManager.EntityQuery<SharedMechanismComponent>(true);
|
||||
|
||||
foreach (var mechanism in mechanisms)
|
||||
{
|
||||
|
||||
@@ -18,8 +18,8 @@ namespace Content.Client.Commands
|
||||
|
||||
public void Execute(IConsoleShell shell, string argStr, string[] args)
|
||||
{
|
||||
var componentManager = IoCManager.Resolve<IComponentManager>();
|
||||
var mechanisms = componentManager.EntityQuery<SharedMechanismComponent>(true);
|
||||
var entityManager = IoCManager.Resolve<IEntityManager>();
|
||||
var mechanisms = entityManager.EntityQuery<SharedMechanismComponent>(true);
|
||||
|
||||
foreach (var mechanism in mechanisms)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user