Files
wwdpublic/Content.Server/DeltaV/Nutrition/Events.cs
deltanedas 1d5c59ff0d deep frier slice fix (#581)
* move SliceFoodEvent into a deltav file, move raising into Slice()

* import deltav event

---------

Co-authored-by: deltanedas <@deltanedas:kde.org>
2023-12-22 12:29:41 +01:00

35 lines
800 B
C#

namespace Content.Server.Nutrition;
/// <summary>
/// Raised on a food being sliced.
/// Used by deep frier to apply friedness to slices (e.g. deep fried pizza)
/// </summary>
public sealed class SliceFoodEvent : EntityEventArgs
{
/// <summary>
/// Who did the slicing?
/// <summary>
public EntityUid User;
/// <summary>
/// What has been sliced?
/// <summary>
/// <remarks>
/// This could soon be deleted if there was not enough food left to
/// continue slicing.
/// </remarks>
public EntityUid Food;
/// <summary>
/// What is the slice?
/// <summary>
public EntityUid Slice;
public SliceFoodEvent(EntityUid user, EntityUid food, EntityUid slice)
{
User = user;
Food = food;
Slice = slice;
}
}