2021-10-07 13:01:27 +02:00
|
|
|
using Content.Server.Atmos.EntitySystems;
|
2021-10-29 13:40:15 +01:00
|
|
|
using Content.Server.Chemistry.EntitySystems;
|
2021-10-07 13:01:27 +02:00
|
|
|
using Content.Server.Popups;
|
2023-06-28 01:46:48 +00:00
|
|
|
using Content.Server.Tools.Components;
|
2023-07-06 16:43:49 +12:00
|
|
|
using Content.Shared.Maps;
|
2022-08-16 22:19:54 +12:00
|
|
|
using Content.Shared.Tools;
|
2022-07-04 16:51:34 +02:00
|
|
|
using Robust.Server.GameObjects;
|
2022-01-30 14:48:18 +11:00
|
|
|
using Robust.Shared.Map;
|
2021-10-07 13:01:27 +02:00
|
|
|
|
|
|
|
|
namespace Content.Server.Tools
|
|
|
|
|
{
|
2022-04-02 16:52:44 +13:00
|
|
|
// TODO move tool system to shared, and make it a friend of Tool Component.
|
2022-08-16 22:19:54 +12:00
|
|
|
public sealed partial class ToolSystem : SharedToolSystem
|
2021-10-07 13:01:27 +02:00
|
|
|
{
|
2022-01-30 14:48:18 +11:00
|
|
|
[Dependency] private readonly ITileDefinitionManager _tileDefinitionManager = default!;
|
|
|
|
|
[Dependency] private readonly IMapManager _mapManager = default!;
|
2021-10-07 13:01:27 +02:00
|
|
|
[Dependency] private readonly SolutionContainerSystem _solutionContainerSystem = default!;
|
|
|
|
|
[Dependency] private readonly AtmosphereSystem _atmosphereSystem = default!;
|
|
|
|
|
[Dependency] private readonly PopupSystem _popupSystem = default!;
|
2022-07-04 16:51:34 +02:00
|
|
|
[Dependency] private readonly TransformSystem _transformSystem = default!;
|
2023-07-06 16:43:49 +12:00
|
|
|
[Dependency] private readonly TurfSystem _turf = default!;
|
2021-10-07 13:01:27 +02:00
|
|
|
|
|
|
|
|
public override void Initialize()
|
|
|
|
|
{
|
|
|
|
|
base.Initialize();
|
|
|
|
|
|
2022-01-30 14:48:18 +11:00
|
|
|
InitializeTilePrying();
|
2022-08-31 01:24:51 -07:00
|
|
|
InitializeLatticeCutting();
|
2021-10-07 13:01:27 +02:00
|
|
|
InitializeWelders();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override void Update(float frameTime)
|
|
|
|
|
{
|
|
|
|
|
base.Update(frameTime);
|
|
|
|
|
|
|
|
|
|
UpdateWelders(frameTime);
|
|
|
|
|
}
|
2023-06-28 01:46:48 +00:00
|
|
|
|
|
|
|
|
protected override bool IsWelder(EntityUid uid)
|
|
|
|
|
{
|
|
|
|
|
return HasComp<WelderComponent>(uid);
|
|
|
|
|
}
|
2021-10-07 13:01:27 +02:00
|
|
|
}
|
|
|
|
|
}
|