using Content.Server.Nutrition.Components; using Content.Shared.Chemistry.Components; using Robust.Shared.GameObjects; using System.Collections.Generic; namespace Content.Server.Nutrition; /// /// Raised directed at the consumer when attempting to ingest something. /// public sealed class IngestionAttemptEvent : CancellableEntityEventArgs { /// /// The equipment that is blocking consumption. Should only be non-null if the event was canceled. /// public EntityUid? Blocker = null; } /// /// Raised directed at the food after a successful feed do-after. /// public sealed class FeedEvent : EntityEventArgs { public readonly EntityUid User; public readonly FoodComponent Food; public readonly Solution FoodSolution; public readonly List Utensils; public FeedEvent(EntityUid user, FoodComponent food, Solution foodSolution, List utensils) { User = user; Food = food; FoodSolution = foodSolution; Utensils = utensils; } } /// /// Raised directed at the food after a failed force-feed do-after. /// public sealed class ForceFeedCancelledEvent : EntityEventArgs { public readonly FoodComponent Food; public ForceFeedCancelledEvent(FoodComponent food) { Food = food; } } /// /// Raised directed at the drink after a successful force-drink do-after. /// public sealed class DrinkEvent : EntityEventArgs { public readonly EntityUid User; public readonly DrinkComponent Drink; public readonly Solution DrinkSolution; public DrinkEvent(EntityUid user, DrinkComponent drink, Solution drinkSolution) { User = user; Drink = drink; DrinkSolution = drinkSolution; } } /// /// Raised directed at the food after a failed force-dink do-after. /// public sealed class DrinkCancelledEvent : EntityEventArgs { public readonly DrinkComponent Drink; public DrinkCancelledEvent(DrinkComponent drink) { Drink = drink; } }