change components

This commit is contained in:
CaYpeN1
2024-03-22 17:01:21 +05:00
parent 4b79f1e2e0
commit 330b1502be
8 changed files with 3 additions and 8 deletions

View File

@@ -1,13 +1,9 @@
using System.Linq;
using Content.Shared._White.Chemistry;
using Content.Shared._White.WeaponModules;
using Content.Shared._White.WeaponModules;
using Content.Shared.Weapons.Ranged.Components;
using Content.Shared.Weapons.Ranged.Events;
using Content.Shared.Weapons.Ranged.Systems;
using Robust.Server.GameObjects;
using Robust.Shared.Audio;
using Robust.Shared.Containers;
using Robust.Shared.Prototypes;
namespace Content.Server._White.WeaponModules;

View File

@@ -4,7 +4,6 @@ namespace Content.Shared._White.WeaponModules;
public abstract class SharedWeaponModulesSystem : EntitySystem
{
public override void Initialize()
{
SubscribeLocalEvent<WeaponModulesComponent, GunMuzzleFlashAttemptEvent>(OnMuzzleFlashEvent);

View File

@@ -6,13 +6,13 @@ namespace Content.Shared._White.WeaponModules;
/// <summary>
/// Base Module Component
/// </summary>
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
[RegisterComponent, NetworkedComponent]
public partial class WeaponModulesComponent : Component
{
[ViewVariables(VVAccess.ReadWrite), DataField]
public List<EntityUid> Modules = new();
[ViewVariables(VVAccess.ReadWrite), DataField, AutoNetworkedField]
[ViewVariables(VVAccess.ReadWrite), AutoNetworkedField]
public bool UseEffect;
}