ECS and cleanup body system, merge body templates and presets into body prototypes (#11991)

Co-authored-by: Jezithyr <Jezithyr@gmail.com>
This commit is contained in:
DrSmugleaf
2022-10-23 00:46:28 +02:00
committed by GitHub
parent 9a38736c3c
commit f323fb7644
140 changed files with 2478 additions and 2571 deletions

View File

@@ -1,9 +1,7 @@
using Content.Shared.Body.Components;
using Content.Shared.Body.Organ;
using Robust.Client.Console;
using Robust.Client.GameObjects;
using Robust.Shared.Console;
using Robust.Shared.GameObjects;
using Robust.Shared.IoC;
namespace Content.Client.Commands
{
@@ -19,9 +17,9 @@ namespace Content.Client.Commands
public void Execute(IConsoleShell shell, string argStr, string[] args)
{
var entityManager = IoCManager.Resolve<IEntityManager>();
var mechanisms = entityManager.EntityQuery<MechanismComponent>(true);
var organs = entityManager.EntityQuery<OrganComponent>(true);
foreach (var mechanism in mechanisms)
foreach (var mechanism in organs)
{
if (entityManager.TryGetComponent(mechanism.Owner, out SpriteComponent? sprite))
{