action refactor proper ecs edition (#27422)

This commit is contained in:
deltanedas
2025-05-28 19:52:11 +00:00
committed by GitHub
parent a9f7cfbcb6
commit b3825dce97
111 changed files with 1995 additions and 2901 deletions

View File

@@ -1,4 +1,5 @@
using Content.Shared.Actions;
using Content.Shared.Actions;
using Content.Shared.Actions.Components;
using Content.Shared.DoAfter;
using Content.Shared.Random;
using Content.Shared.Random.Helpers;
@@ -60,12 +61,13 @@ public abstract class SharedRatKingSystem : EntitySystem
if (!TryComp(uid, out ActionsComponent? comp))
return;
_action.RemoveAction(uid, component.ActionRaiseArmyEntity, comp);
_action.RemoveAction(uid, component.ActionDomainEntity, comp);
_action.RemoveAction(uid, component.ActionOrderStayEntity, comp);
_action.RemoveAction(uid, component.ActionOrderFollowEntity, comp);
_action.RemoveAction(uid, component.ActionOrderCheeseEmEntity, comp);
_action.RemoveAction(uid, component.ActionOrderLooseEntity, comp);
var actions = new Entity<ActionsComponent?>(uid, comp);
_action.RemoveAction(actions, component.ActionRaiseArmyEntity);
_action.RemoveAction(actions, component.ActionDomainEntity);
_action.RemoveAction(actions, component.ActionOrderStayEntity);
_action.RemoveAction(actions, component.ActionOrderFollowEntity);
_action.RemoveAction(actions, component.ActionOrderCheeseEmEntity);
_action.RemoveAction(actions, component.ActionOrderLooseEntity);
}
private void OnOrderAction(EntityUid uid, RatKingComponent component, RatKingOrderActionEvent args)