mirror of
https://github.com/wega-team/ss14-wega.git
synced 2026-06-09 10:06:49 +02:00
22a547c7c8
* Replace usages of EntityQuery with dependency injected ones in Content.Server * Remove unused EntityQuery dependencies * Restore CheckPressureAndFire override method * Revert EntityQuery refactor changes to DisposalTubeSystem.cs & DisposableSystem.cs * Infer Transform/Metadata directly instead of passing (#43479) * Resolve RA0049, RA0051 errors (#43479) * Resolve RA0049, RA0051 errors (#43479) * Apply suggestions from code review Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com> --------- Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
71 lines
2.8 KiB
C#
71 lines
2.8 KiB
C#
using Content.Server.Cargo.Components;
|
|
using Content.Server.DeviceLinking.Systems;
|
|
using Content.Server.Popups;
|
|
using Content.Server.Radio.EntitySystems;
|
|
using Content.Server.Stack;
|
|
using Content.Server.Station.Systems;
|
|
using Content.Shared.Access.Systems;
|
|
using Content.Shared.Administration.Logs;
|
|
using Content.Shared.Cargo;
|
|
using Content.Shared.Cargo.Components;
|
|
using Content.Shared.Containers.ItemSlots;
|
|
using Content.Shared.IdentityManagement;
|
|
using Content.Shared.Mobs.Components;
|
|
using Content.Shared.Paper;
|
|
using Robust.Server.GameObjects;
|
|
using Robust.Shared.Audio.Systems;
|
|
using Robust.Shared.Configuration;
|
|
using Robust.Shared.Prototypes;
|
|
using Robust.Shared.Random;
|
|
|
|
namespace Content.Server.Cargo.Systems;
|
|
|
|
public sealed partial class CargoSystem : SharedCargoSystem
|
|
{
|
|
[Dependency] private IConfigurationManager _cfg = default!;
|
|
[Dependency] private IPrototypeManager _protoMan = default!;
|
|
[Dependency] private IRobustRandom _random = default!;
|
|
[Dependency] private ISharedAdminLogManager _adminLogger = default!;
|
|
[Dependency] private AccessReaderSystem _accessReaderSystem = default!;
|
|
[Dependency] private DeviceLinkSystem _linker = default!;
|
|
[Dependency] private EntityLookupSystem _lookup = default!;
|
|
[Dependency] private ItemSlotsSystem _slots = default!;
|
|
[Dependency] private PaperSystem _paperSystem = default!;
|
|
[Dependency] private PopupSystem _popup = default!;
|
|
[Dependency] private PricingSystem _pricing = default!;
|
|
[Dependency] private SharedAppearanceSystem _appearance = default!;
|
|
[Dependency] private SharedAudioSystem _audio = default!;
|
|
[Dependency] private StackSystem _stack = default!;
|
|
[Dependency] private StationSystem _station = default!;
|
|
[Dependency] private UserInterfaceSystem _uiSystem = default!;
|
|
[Dependency] private MetaDataSystem _metaSystem = default!;
|
|
[Dependency] private RadioSystem _radio = default!;
|
|
[Dependency] private IdentitySystem _identity = default!;
|
|
|
|
[Dependency] private EntityQuery<CargoSellBlacklistComponent> _cargoSellBlacklistQuery = default!;
|
|
[Dependency] private EntityQuery<MobStateComponent> _mobStateQuery = default!;
|
|
[Dependency] private EntityQuery<TradeStationComponent> _tradeStationQuery = default!;
|
|
|
|
private HashSet<EntityUid> _setEnts = new();
|
|
private List<EntityUid> _listEnts = new();
|
|
private List<(EntityUid, CargoPalletComponent, TransformComponent)> _pads = new();
|
|
|
|
public override void Initialize()
|
|
{
|
|
base.Initialize();
|
|
InitializeConsole();
|
|
InitializeShuttle();
|
|
InitializeTelepad();
|
|
InitializeBounty();
|
|
InitializeFunds();
|
|
}
|
|
|
|
public override void Update(float frameTime)
|
|
{
|
|
base.Update(frameTime);
|
|
UpdateConsole();
|
|
UpdateTelepad(frameTime);
|
|
UpdateBounty();
|
|
}
|
|
}
|