Add conditional camera offset based on cursor - Hristov Rework, Part 1 (#31626)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System.Numerics;
|
||||
using Content.Shared.Inventory;
|
||||
using Content.Shared.Movement.Systems;
|
||||
|
||||
namespace Content.Shared.Camera;
|
||||
@@ -17,3 +18,15 @@ namespace Content.Shared.Camera;
|
||||
/// </remarks>
|
||||
[ByRefEvent]
|
||||
public record struct GetEyeOffsetEvent(Vector2 Offset);
|
||||
|
||||
/// <summary>
|
||||
/// Raised on any equipped and in-hand items that may modify the eye offset.
|
||||
/// Pockets and suitstorage are excluded.
|
||||
/// </summary>
|
||||
[ByRefEvent]
|
||||
public sealed class GetEyeOffsetRelayedEvent : EntityEventArgs, IInventoryRelayEvent
|
||||
{
|
||||
public SlotFlags TargetSlots { get; } = ~(SlotFlags.POCKET & SlotFlags.SUITSTORAGE);
|
||||
|
||||
public Vector2 Offset;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user