ECS and bandaid research (#9251)

This commit is contained in:
metalgearsloth
2022-06-28 22:54:08 +10:00
committed by GitHub
parent 9b08457e52
commit 5dbb3220dd
21 changed files with 496 additions and 531 deletions

View File

@@ -21,14 +21,14 @@ namespace Content.Client.Research
if (curState is not TechnologyDatabaseState state) return;
_technologies.Clear();
Technologies.Clear();
var protoManager = IoCManager.Resolve<IPrototypeManager>();
foreach (var techID in state.Technologies)
{
if (!protoManager.TryIndex(techID, out TechnologyPrototype? technology)) continue;
_technologies.Add(technology);
Technologies.Add(technology);
}
OnDatabaseUpdated?.Invoke();

View File

@@ -1,6 +1,5 @@
using Content.Shared.Research.Components;
using Robust.Client.GameObjects;
using Robust.Shared.GameObjects;
using static Content.Shared.Research.Components.SharedResearchClientComponent;
namespace Content.Client.Research.UI
{

View File

@@ -1,9 +1,7 @@
using Content.Shared.Research.Components;
using Content.Shared.Research.Prototypes;
using JetBrains.Annotations;
using Robust.Client.GameObjects;
using Robust.Shared.GameObjects;
using Robust.Shared.IoC;
using static Content.Shared.Research.Components.SharedResearchConsoleComponent;
namespace Content.Client.Research.UI
{