fix: EyeOffset when eyes are closed (#38534)

* fix: EyeOffset when eyes are closed

* fix: Relay only blocked on eyes closed action

* cleanup: whitespace

* fix: missing cancel on PVS, dependencies

* remove: namespace import

* change: apply from review

* Apply suggestions from code review

---------

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
This commit is contained in:
Łukasz Mędrek
2025-06-25 20:22:05 +00:00
committed by GitHub
parent 433893679e
commit 1ba0191808
4 changed files with 47 additions and 0 deletions

View File

@@ -20,6 +20,13 @@ namespace Content.Shared.Camera;
[ByRefEvent]
public record struct GetEyePvsScaleEvent(float Scale);
/// <summary>
/// Raised before the <see cref="GetEyePvsScaleEvent"/> and <see cref="GetEyePvsScaleRelayedEvent"/>, to check if any on the subscribed
/// systems want to cancel PVS changes.
/// </summary>
[ByRefEvent]
public record struct GetEyePvsScaleAttemptEvent(bool Cancelled);
/// <summary>
/// Raised on any equipped and in-hand items that may modify the eye offset.
/// Pockets and suitstorage are excluded.