Verb tweaks (#31309)

* Verb tweaks

Remove the LOS check because this is already done above in CanExamine.

* Fix outlines

* import
This commit is contained in:
metalgearsloth
2024-08-25 22:05:39 +10:00
committed by GitHub
parent cc710fa46b
commit 7cb6b5e972
4 changed files with 49 additions and 40 deletions

View File

@@ -3,6 +3,7 @@ using Content.Shared.Hands.Components;
using Content.Shared.Interaction;
using Content.Shared.Inventory.VirtualItem;
using Robust.Shared.Containers;
using Robust.Shared.Map;
namespace Content.Shared.Verbs
{
@@ -173,4 +174,27 @@ namespace Content.Shared.Verbs
_interactionSystem.DoContactInteraction(user, target);
}
}
// Does nothing on server
/// <summary>
/// Raised directed when trying to get the entity menu visibility for entities.
/// </summary>
[ByRefEvent]
public record struct MenuVisibilityEvent
{
public MapCoordinates TargetPos;
public MenuVisibility Visibility;
}
// Does nothing on server
[Flags]
public enum MenuVisibility
{
// What entities can a user see on the entity menu?
Default = 0, // They can only see entities in FoV.
NoFov = 1 << 0, // They ignore FoV restrictions
InContainer = 1 << 1, // They can see through containers.
Invisible = 1 << 2, // They can see entities without sprites and the "HideContextMenu" tag is ignored.
All = NoFov | InContainer | Invisible
}
}