Files
Delta-v/Content.Shared/VoiceMask/VoiceMaskSetNameEvent.cs
T
Leahandbeck-thompson 05953b8c40 Identity Mask now updates equipped Agent ID name (#42772)
* add identity mask updating agent id functionality

* fix indentation

* add check for voice mask item

* use ChangeIDName field instead

* Minor cleanup

* remove trycomp

---------

Co-authored-by: beck-thompson <beck314159@hotmail.com>
2026-06-29 12:43:52 +02:00

21 lines
664 B
C#

using Content.Shared.Actions;
using Content.Shared.Inventory;
namespace Content.Shared.VoiceMask;
public sealed partial class VoiceMaskSetNameEvent : InstantActionEvent
{
}
/// <summary>
/// Raised on an entity when their voice masks name is updated
/// </summary>
/// <param name="VoiceMask">VoiceMask component</param>
/// <param name="OldName">The old name</param>
/// <param name="NewName">The new name</param>
[ByRefEvent]
public readonly record struct VoiceMaskNameUpdatedEvent(Entity<VoiceMaskComponent> VoiceMask, string? OldName, string NewName) : IInventoryRelayEvent
{
SlotFlags IInventoryRelayEvent.TargetSlots => SlotFlags.WITHOUT_POCKET;
}