mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 18:31:17 +03:00
* init * oops * changed order of TryMergeStacks * cleanup * tiny optimization * documentation * clean up * popup * flip args back * bit more docs * re-added popup * move to prototype * fix * animation should always play here * update after merge conflict * review requests * small tweak * fix * Update SharedStackSystem.cs * spelling * Revert "move to prototype" * review requests * docs --------- Co-authored-by: Pok245 <113675512+Pok27@users.noreply.github.com>
18 lines
888 B
C#
18 lines
888 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>
|
|
[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);
|