mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-23 00:27:50 +03:00
* fix * fix * fix * fix * fix * Fix Bug with Opening Storage Containers (#1292) <!-- This is a semi-strict format, you can add/remove sections as needed but the order/format should be kept the same Remove these comments before submitting --> # Description <!-- Explain this PR in as much detail as applicable Some example prompts to consider: How might this affect the game? The codebase? What might be some alternatives to this? How/Who does this benefit/hurt [the game/codebase]? --> Fixes the bug with opening storage containers while there's already one opened. --- # Changelog <!-- You can add an author after the `🆑` to change the name that appears in the changelog (ex: `🆑 Death`) Leaving it blank will default to your GitHub display name This includes all available types for the changelog --> 🆑 - fix: Fixed the bug with opening storage containers while there's already one open. (cherry picked from commit b0407604ced2859ccbdc417345dadc29656f71f0) * Automatic Changelog Update (#1292) (cherry picked from commit 9a40c3783eb0d0e622badc2febcaf0794f6f8ddd) * possible test fix * possible test fix * fix --------- Co-authored-by: sleepyyapril <123355664+sleepyyapril@users.noreply.github.com> Co-authored-by: SimpleStation Changelogs <simplestation14@users.noreply.github.com>
37 lines
1.1 KiB
C#
37 lines
1.1 KiB
C#
namespace Content.Shared.Nutrition;
|
|
|
|
/// <summary>
|
|
/// Raised directed at the consumer when attempting to ingest something.
|
|
/// </summary>
|
|
public sealed class IngestionAttemptEvent : CancellableEntityEventArgs
|
|
{
|
|
/// <summary>
|
|
/// The equipment that is blocking consumption. Should only be non-null if the event was canceled.
|
|
/// </summary>
|
|
public EntityUid? Blocker = null;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Raised directed at the food after finishing eating a food before it's deleted.
|
|
/// Cancel this if you want to do something special before a food is deleted.
|
|
/// </summary>
|
|
public sealed class BeforeFullyEatenEvent : CancellableEntityEventArgs
|
|
{
|
|
/// <summary>
|
|
/// The person that ate the food.
|
|
/// </summary>
|
|
public EntityUid User;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Raised directed at the food being sliced before it's deleted.
|
|
/// Cancel this if you want to do something special before a food is deleted.
|
|
/// </summary>
|
|
public sealed class BeforeFullySlicedEvent : CancellableEntityEventArgs
|
|
{
|
|
/// <summary>
|
|
/// The person slicing the food.
|
|
/// </summary>
|
|
public EntityUid User;
|
|
}
|