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:
@@ -19,6 +19,13 @@ namespace Content.Shared.Camera;
|
||||
[ByRefEvent]
|
||||
public record struct GetEyeOffsetEvent(Vector2 Offset);
|
||||
|
||||
/// <summary>
|
||||
/// Raised before the <see cref="GetEyeOffsetEvent"/> and <see cref="GetEyeOffsetRelayedEvent"/>, to check if any of the subscribed
|
||||
/// systems want to cancel offset changes.
|
||||
/// </summary>
|
||||
[ByRefEvent]
|
||||
public record struct GetEyeOffsetAttemptEvent(bool Cancelled);
|
||||
|
||||
/// <summary>
|
||||
/// Raised on any equipped and in-hand items that may modify the eye offset.
|
||||
/// Pockets and suitstorage are excluded.
|
||||
|
||||
Reference in New Issue
Block a user