ECS construction machines (#6354)

This commit is contained in:
metalgearsloth
2022-02-03 10:04:46 +11:00
committed by GitHub
parent 5091c6aa9d
commit 42102b17c1
4 changed files with 124 additions and 118 deletions

View File

@@ -7,6 +7,7 @@ using Content.Shared.Examine;
using Content.Shared.Popups;
using Content.Shared.Verbs;
using JetBrains.Annotations;
using Robust.Shared.Containers;
using Robust.Shared.GameObjects;
using Robust.Shared.IoC;
using Robust.Shared.Localization;
@@ -28,6 +29,7 @@ namespace Content.Server.Construction
[Dependency] private readonly DoAfterSystem _doAfterSystem = default!;
[Dependency] private readonly StackSystem _stackSystem = default!;
[Dependency] private readonly ToolSystem _toolSystem = default!;
[Dependency] private readonly SharedContainerSystem _container = default!;
private const string SawmillName = "Construction";
private ISawmill _sawmill = default!;
@@ -42,6 +44,7 @@ namespace Content.Server.Construction
InitializeGuided();
InitializeInteractions();
InitializeInitial();
InitializeMachines();
SubscribeLocalEvent<ConstructionComponent, ComponentInit>(OnConstructionInit);
SubscribeLocalEvent<ConstructionComponent, ComponentStartup>(OnConstructionStartup);