change namespace

This commit is contained in:
CaYpeN1
2024-03-22 17:16:31 +05:00
parent b4e8f8d620
commit 5f610860f5
6 changed files with 26 additions and 26 deletions

View File

@@ -18,24 +18,24 @@ public sealed class WeaponModulesSystem : EntitySystem
{ {
base.Initialize(); base.Initialize();
SubscribeLocalEvent<LightModuleComponent, EntGotInsertedIntoContainerMessage>(LightModuleOnInsert); SubscribeLocalEvent<Shared._White.WeaponModules.LightModuleComponent, EntGotInsertedIntoContainerMessage>(LightModuleOnInsert);
SubscribeLocalEvent<LightModuleComponent, EntGotRemovedFromContainerMessage>(LightModuleOnEject); SubscribeLocalEvent<Shared._White.WeaponModules.LightModuleComponent, EntGotRemovedFromContainerMessage>(LightModuleOnEject);
SubscribeLocalEvent<LaserModuleComponent, EntGotInsertedIntoContainerMessage>(LaserModuleOnInsert); SubscribeLocalEvent<Shared._White.WeaponModules.LaserModuleComponent, EntGotInsertedIntoContainerMessage>(LaserModuleOnInsert);
SubscribeLocalEvent<LaserModuleComponent, EntGotRemovedFromContainerMessage>(LaserModuleOnEject); SubscribeLocalEvent<Shared._White.WeaponModules.LaserModuleComponent, EntGotRemovedFromContainerMessage>(LaserModuleOnEject);
SubscribeLocalEvent<FlameHiderModuleComponent, EntGotInsertedIntoContainerMessage>(FlameHiderModuleOnInsert); SubscribeLocalEvent<Shared._White.WeaponModules.FlameHiderModuleComponent, EntGotInsertedIntoContainerMessage>(FlameHiderModuleOnInsert);
SubscribeLocalEvent<FlameHiderModuleComponent, EntGotRemovedFromContainerMessage>(FlameHiderModuleOnEject); SubscribeLocalEvent<Shared._White.WeaponModules.FlameHiderModuleComponent, EntGotRemovedFromContainerMessage>(FlameHiderModuleOnEject);
SubscribeLocalEvent<SilencerModuleComponent, EntGotInsertedIntoContainerMessage>(SilencerModuleOnInsert); SubscribeLocalEvent<SilencerModuleComponent, EntGotInsertedIntoContainerMessage>(SilencerModuleOnInsert);
SubscribeLocalEvent<SilencerModuleComponent, EntGotRemovedFromContainerMessage>(SilencerModuleOnEject); SubscribeLocalEvent<SilencerModuleComponent, EntGotRemovedFromContainerMessage>(SilencerModuleOnEject);
SubscribeLocalEvent<AcceleratorModuleComponent, EntGotInsertedIntoContainerMessage>(AcceleratorModuleOnInsert); SubscribeLocalEvent<Shared._White.WeaponModules.AcceleratorModuleComponent, EntGotInsertedIntoContainerMessage>(AcceleratorModuleOnInsert);
SubscribeLocalEvent<AcceleratorModuleComponent, EntGotRemovedFromContainerMessage>(AcceleratorModuleOnEject); SubscribeLocalEvent<Shared._White.WeaponModules.AcceleratorModuleComponent, EntGotRemovedFromContainerMessage>(AcceleratorModuleOnEject);
} }
#region InsertModules #region InsertModules
private void LightModuleOnInsert(EntityUid module, LightModuleComponent component, EntGotInsertedIntoContainerMessage args) private void LightModuleOnInsert(EntityUid module, Shared._White.WeaponModules.LightModuleComponent component, EntGotInsertedIntoContainerMessage args)
{ {
if (ModulesSlot != args.Container.ID) if (ModulesSlot != args.Container.ID)
return; return;
@@ -58,7 +58,7 @@ public sealed class WeaponModulesSystem : EntitySystem
_lightSystem.SetEnabled(weapon, true, light); _lightSystem.SetEnabled(weapon, true, light);
} }
private void LaserModuleOnInsert(EntityUid module, LaserModuleComponent component, EntGotInsertedIntoContainerMessage args) private void LaserModuleOnInsert(EntityUid module, Shared._White.WeaponModules.LaserModuleComponent component, EntGotInsertedIntoContainerMessage args)
{ {
if (ModulesSlot != args.Container.ID) if (ModulesSlot != args.Container.ID)
return; return;
@@ -74,7 +74,7 @@ public sealed class WeaponModulesSystem : EntitySystem
_gunSystem.setProjectileSpeed(weapon, 35.5F); _gunSystem.setProjectileSpeed(weapon, 35.5F);
} }
private void FlameHiderModuleOnInsert(EntityUid module, FlameHiderModuleComponent component, EntGotInsertedIntoContainerMessage args) private void FlameHiderModuleOnInsert(EntityUid module, Shared._White.WeaponModules.FlameHiderModuleComponent component, EntGotInsertedIntoContainerMessage args)
{ {
if (ModulesSlot != args.Container.ID) if (ModulesSlot != args.Container.ID)
return; return;
@@ -113,7 +113,7 @@ public sealed class WeaponModulesSystem : EntitySystem
Dirty(module, component); Dirty(module, component);
} }
private void AcceleratorModuleOnInsert(EntityUid module, AcceleratorModuleComponent component, EntGotInsertedIntoContainerMessage args) private void AcceleratorModuleOnInsert(EntityUid module, Shared._White.WeaponModules.AcceleratorModuleComponent component, EntGotInsertedIntoContainerMessage args)
{ {
if (ModulesSlot != args.Container.ID) if (ModulesSlot != args.Container.ID)
return; return;
@@ -131,7 +131,7 @@ public sealed class WeaponModulesSystem : EntitySystem
#endregion #endregion
#region EjectModules #region EjectModules
private void LightModuleOnEject(EntityUid module, LightModuleComponent component, EntGotRemovedFromContainerMessage args) private void LightModuleOnEject(EntityUid module, Shared._White.WeaponModules.LightModuleComponent component, EntGotRemovedFromContainerMessage args)
{ {
if (ModulesSlot != args.Container.ID) if (ModulesSlot != args.Container.ID)
return; return;
@@ -147,7 +147,7 @@ public sealed class WeaponModulesSystem : EntitySystem
_lightSystem.SetEnabled(weapon, false, light); _lightSystem.SetEnabled(weapon, false, light);
} }
private void LaserModuleOnEject(EntityUid module, LaserModuleComponent component, EntGotRemovedFromContainerMessage args) private void LaserModuleOnEject(EntityUid module, Shared._White.WeaponModules.LaserModuleComponent component, EntGotRemovedFromContainerMessage args)
{ {
if (ModulesSlot != args.Container.ID) if (ModulesSlot != args.Container.ID)
return; return;
@@ -162,7 +162,7 @@ public sealed class WeaponModulesSystem : EntitySystem
_gunSystem.setProjectileSpeed(weapon, 25F); _gunSystem.setProjectileSpeed(weapon, 25F);
} }
private void FlameHiderModuleOnEject(EntityUid module, FlameHiderModuleComponent component, EntGotRemovedFromContainerMessage args) private void FlameHiderModuleOnEject(EntityUid module, Shared._White.WeaponModules.FlameHiderModuleComponent component, EntGotRemovedFromContainerMessage args)
{ {
if (ModulesSlot != args.Container.ID) if (ModulesSlot != args.Container.ID)
return; return;
@@ -195,7 +195,7 @@ public sealed class WeaponModulesSystem : EntitySystem
Dirty(module, component); Dirty(module, component);
} }
private void AcceleratorModuleOnEject(EntityUid module, AcceleratorModuleComponent component, EntGotRemovedFromContainerMessage args) private void AcceleratorModuleOnEject(EntityUid module, Shared._White.WeaponModules.AcceleratorModuleComponent component, EntGotRemovedFromContainerMessage args)
{ {
if (ModulesSlot != args.Container.ID) if (ModulesSlot != args.Container.ID)
return; return;

View File

@@ -1,10 +1,10 @@
namespace Content.Server._White.WeaponModules; namespace Content.Shared._White.WeaponModules;
/// <summary> /// <summary>
/// This is used for... /// This is used for...
/// </summary> /// </summary>
[RegisterComponent] [RegisterComponent]
public sealed partial class AcceleratorModuleComponent : Shared._White.WeaponModules.WeaponModulesComponent public sealed partial class AcceleratorModuleComponent : WeaponModulesComponent
{ {
[ViewVariables(VVAccess.ReadWrite), DataField] [ViewVariables(VVAccess.ReadWrite), DataField]
public float OldFireRate; public float OldFireRate;

View File

@@ -1,9 +1,9 @@
namespace Content.Server._White.WeaponModules; namespace Content.Shared._White.WeaponModules;
/// <summary> /// <summary>
/// This is used for... /// This is used for...
/// </summary> /// </summary>
[RegisterComponent] [RegisterComponent]
public sealed partial class FlameHiderModuleComponent : Shared._White.WeaponModules.WeaponModulesComponent public sealed partial class FlameHiderModuleComponent : WeaponModulesComponent
{ {
} }

View File

@@ -1,10 +1,10 @@
namespace Content.Server._White.WeaponModules; namespace Content.Shared._White.WeaponModules;
/// <summary> /// <summary>
/// This is used for... /// This is used for...
/// </summary> /// </summary>
[RegisterComponent] [RegisterComponent]
public sealed partial class LaserModuleComponent : Shared._White.WeaponModules.WeaponModulesComponent public sealed partial class LaserModuleComponent : WeaponModulesComponent
{ {
} }

View File

@@ -1,10 +1,10 @@
namespace Content.Server._White.WeaponModules; namespace Content.Shared._White.WeaponModules;
/// <summary> /// <summary>
/// LightModuleComponent /// LightModuleComponent
/// </summary> /// </summary>
[RegisterComponent] [RegisterComponent]
public sealed partial class LightModuleComponent : Shared._White.WeaponModules.WeaponModulesComponent public sealed partial class LightModuleComponent : WeaponModulesComponent
{ {
[ViewVariables(VVAccess.ReadWrite)] [ViewVariables(VVAccess.ReadWrite)]
public bool Enabled; public bool Enabled;

View File

@@ -1,12 +1,12 @@
using Robust.Shared.Audio; using Robust.Shared.Audio;
namespace Content.Server._White.WeaponModules; namespace Content.Shared._White.WeaponModules;
/// <summary> /// <summary>
/// This is used for... /// This is used for...
/// </summary> /// </summary>
[RegisterComponent] [RegisterComponent]
public sealed partial class SilencerModuleComponent : Shared._White.WeaponModules.WeaponModulesComponent public sealed partial class SilencerModuleComponent : WeaponModulesComponent
{ {
[ViewVariables(VVAccess.ReadWrite), DataField] [ViewVariables(VVAccess.ReadWrite), DataField]
public SoundSpecifier? OldSoundGunshot; public SoundSpecifier? OldSoundGunshot;