CatStation/Content.Shared/Stacks/StackEvents.cs
riccardi48 f1348da208
Missed capitalisation (#44875)
* big U

* Docs

Co-authored-by: Whatstone <166147148+whatston3@users.noreply.github.com>

---------

Co-authored-by: Whatstone <166147148+whatston3@users.noreply.github.com>
2026-09-29 17:37:27 +00:00

19 lines
963 B
C#

namespace Content.Shared.Stacks;
/// <summary>
/// Raised on the original stack entity when it is split to create another.
/// </summary>
/// <param name="NewId">The entity id of the new stack.</param>
/// <param name="User">The entity id of the user splitting the stack.</param>
[ByRefEvent]
public readonly record struct StackSplitEvent(EntityUid NewId, EntityUid? User);
/// <summary>
/// Raised on the recipient stack entity when it is merged with another stack.
/// This is raised before the stack counts have been updated.
/// </summary>
/// <param name="Donor">The entity id of the donor stack. May get deleted after event is resolved from merging.</param>
/// <param name="Recipient">The entity id of the recipient stack.</param>
/// <param name="Amount">The amount in the stack transferred from the donor to the recipient</param>
[ByRefEvent]
public readonly record struct StackMergeEvent(EntityUid Donor, EntityUid Recipient, int Amount);