Refactor actions to be entities with components (#19900)

This commit is contained in:
DrSmugleaf
2023-09-08 18:16:05 -07:00
committed by GitHub
parent e18f731b91
commit c71f97e3a2
210 changed files with 10693 additions and 11714 deletions

View File

@@ -3,7 +3,6 @@ using Content.Shared.Clothing.Components;
using Content.Shared.Inventory.Events;
using Content.Shared.Stealth;
using Content.Shared.Stealth.Components;
using Robust.Shared.GameStates;
namespace Content.Shared.Clothing.EntitySystems;
@@ -59,7 +58,7 @@ public sealed class StealthClothingSystem : EntitySystem
if (ev.Cancelled)
return;
args.Actions.Add(comp.ToggleAction);
args.AddAction(ref comp.ToggleActionEntity, comp.ToggleAction);
}
/// <summary>