Refactor actions to be entities with components (#19900)
This commit is contained in:
@@ -3,10 +3,7 @@ using Content.Shared.Clothing.EntitySystems;
|
||||
using Content.Shared.Item;
|
||||
using Content.Shared.Light.Components;
|
||||
using Content.Shared.Toggleable;
|
||||
using Robust.Shared.Audio;
|
||||
using Robust.Shared.GameStates;
|
||||
using Robust.Shared.Player;
|
||||
using Robust.Shared.Utility;
|
||||
|
||||
namespace Content.Shared.Light;
|
||||
|
||||
@@ -74,8 +71,8 @@ public abstract class SharedHandheldLightSystem : EntitySystem
|
||||
_clothingSys.SetEquippedPrefix(uid, prefix);
|
||||
}
|
||||
|
||||
if (component.ToggleAction != null)
|
||||
_actionSystem.SetToggled(component.ToggleAction, component.Activated);
|
||||
if (component.ToggleActionEntity != null)
|
||||
_actionSystem.SetToggled(component.ToggleActionEntity, component.Activated);
|
||||
|
||||
_appearance.SetData(uid, ToggleableLightVisuals.Enabled, component.Activated, appearance);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user