mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 18:31:17 +03:00
* big U * Docs Co-authored-by: Whatstone <166147148+whatston3@users.noreply.github.com> --------- Co-authored-by: Whatstone <166147148+whatston3@users.noreply.github.com>
19 lines
963 B
C#
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);
|