ECS and bandaid research (#9251)
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user