Files
crystall-punk-14/Content.Server/Weapon/Ranged/GunSystem.cs

35 lines
1.3 KiB
C#
Raw Normal View History

2021-12-23 15:46:43 +11:00
using Content.Server.Weapon.Ranged.Ammunition.Components;
using Content.Shared.Examine;
using Content.Shared.Interaction;
2021-12-20 16:55:01 +11:00
using Content.Shared.Popups;
2021-12-23 15:46:43 +11:00
using Content.Shared.Verbs;
using Robust.Server.GameObjects;
2021-12-20 16:55:01 +11:00
using Robust.Shared.GameObjects;
using Robust.Shared.IoC;
2021-12-23 15:46:43 +11:00
using Robust.Shared.Timing;
2021-12-20 16:55:01 +11:00
namespace Content.Server.Weapon.Ranged;
public sealed partial class GunSystem : EntitySystem
{
2021-12-23 15:46:43 +11:00
[Dependency] private readonly IGameTiming _gameTiming = default!;
[Dependency] private readonly EffectSystem _effects = default!;
2021-12-20 16:55:01 +11:00
[Dependency] private readonly SharedPopupSystem _popup = default!;
2021-12-23 15:46:43 +11:00
public override void Initialize()
{
base.Initialize();
SubscribeLocalEvent<AmmoComponent, ExaminedEvent>(OnAmmoExamine);
SubscribeLocalEvent<AmmoBoxComponent, ComponentInit>(OnAmmoBoxInit);
SubscribeLocalEvent<AmmoBoxComponent, MapInitEvent>(OnAmmoBoxMapInit);
SubscribeLocalEvent<AmmoBoxComponent, ExaminedEvent>(OnAmmoBoxExamine);
SubscribeLocalEvent<AmmoBoxComponent, InteractUsingEvent>(OnAmmoBoxInteractUsing);
SubscribeLocalEvent<AmmoBoxComponent, UseInHandEvent>(OnAmmoBoxUse);
SubscribeLocalEvent<AmmoBoxComponent, InteractHandEvent>(OnAmmoBoxInteractHand);
SubscribeLocalEvent<AmmoBoxComponent, GetAlternativeVerbsEvent>(OnAmmoBoxAltVerbs);
}
2021-12-20 16:55:01 +11:00
}