-
Notifications
You must be signed in to change notification settings - Fork 597
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Deepfryer missing import * 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> * Fix unlocalized name deep-fried-burnt-item (#535) Fix unlocalized name WHEW. * Update SliceableFoodSystem.cs * Deep --------- Co-authored-by: deltanedas <[email protected]> Co-authored-by: Loonessia <[email protected]>
- Loading branch information
1 parent
426ac36
commit b6c5d67
Showing
3 changed files
with
74 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
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; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters