CatStation/Content.Server/Cargo/Systems/CargoSystem.cs
Princess Cheeseballs 2c6ffecf62
Move GameTicker to Shared (#45834)
* Scope creep my ass

* why was this shit not pushed????

* gone...

* fix that

* review plus buildd

* asfsafsafsafsafas

* grug

* burber

* I'll fix this later

* shrimply die

* also this

* it's snerf or snuthin

* assaads

* round snend

* aaaa

* fix this shit for real

* actually, don't start GameRules until MapInit now that I think aboot it.

* forgot u

* don't actually need this part nullable

* Deffer comp removal

* one liner

* do that too

* chungus

* Honestly makes more sense here, plus WHY are we doing all that shit on "GameRuleAdded" rather than GameRuleStarted(?)

* deferred removal :V

* aaaaaaaaaaaaaaa

* whhop

* Whoop

* better

* landmine that I placed for myself then forgot about lmao

* cleanup

* FUCKING `!`

* gotovo

* amogus

* please don't check by metadata I beg

* waawsasfdfsasfa

* sfafsasfafsas

* fdsaasffsasfa

* code

* fix

* fasasffasfasfsad

* chungaas

* I may be stupid

* gra

* graaaaaaaaaaaaaaaaa

* comment

* gra

* clearing is not predicted and would require major refactors, so don't cache on client.

* lame shit :P

* last holes

* nukeopsfsafsasafsfafsa

* why  was that shit public bruh

* bubrbgwahrghfaka

* dynamic

* revert change that did nothing lmao
2026-09-16 19:34:19 +00:00

68 lines
2.7 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.Random;
namespace Content.Server.Cargo.Systems;
public sealed partial class CargoSystem : SharedCargoSystem
{
[Dependency] private IConfigurationManager _cfg = 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 ServerStationSystem _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();
}
}