-using Content.Server.Cargo.Systems;
using Content.Shared.Anomaly.Components;
+using Content.Shared.Cargo;
using Robust.Shared.Timing;
namespace Content.Server.Anomaly.Effects;
-using Content.Server.Cargo.Systems;
using Content.Shared.Armor;
+using Content.Shared.Cargo;
using Robust.Shared.Prototypes;
using Content.Shared.Damage.Prototypes;
-using Content.Server.Cargo.Systems;
using Content.Server.Explosion.EntitySystems;
using Content.Shared.Atmos;
using Content.Shared.Atmos.Components;
using Content.Shared.Atmos.EntitySystems;
+using Content.Shared.Cargo;
using Content.Shared.Throwing;
using JetBrains.Annotations;
using Robust.Server.GameObjects;
using Content.Server.Atmos.EntitySystems;
using Content.Server.Atmos.Piping.Components;
-using Content.Server.Cargo.Systems;
using Content.Server.NodeContainer.EntitySystems;
using Content.Server.NodeContainer.NodeGroups;
using Content.Server.NodeContainer.Nodes;
using Content.Shared.Atmos.Components;
using Content.Shared.Atmos.Piping.Binary.Components;
using Content.Shared.Atmos.Piping.Unary.Systems;
+using Content.Shared.Cargo;
using Content.Shared.Database;
using Content.Shared.NodeContainer;
using GasCanisterComponent = Content.Shared.Atmos.Piping.Unary.Components.GasCanisterComponent;
using Content.Shared.Chemistry.EntitySystems;
using Content.Shared.Administration;
using Content.Shared.Body.Components;
+using Content.Shared.Cargo;
using Content.Shared.Chemistry.Components.SolutionManager;
using Content.Shared.Chemistry.Reagent;
using Content.Shared.Materials;
/// </summary>
public double GetEstimatedPrice(EntityPrototype prototype)
{
- var ev = new EstimatedPriceCalculationEvent()
- {
- Prototype = prototype,
- };
+ var ev = new EstimatedPriceCalculationEvent(prototype);
RaiseLocalEvent(ref ev);
return price;
}
}
-
-/// <summary>
-/// A directed by-ref event fired on an entity when something needs to know it's price. This value is not cached.
-/// </summary>
-[ByRefEvent]
-public record struct PriceCalculationEvent()
-{
- /// <summary>
- /// The total price of the entity.
- /// </summary>
- public double Price = 0;
-
- /// <summary>
- /// Whether this event was already handled.
- /// </summary>
- public bool Handled = false;
-}
-
-/// <summary>
-/// Raised broadcast for an entity prototype to determine its estimated price.
-/// </summary>
-[ByRefEvent]
-public record struct EstimatedPriceCalculationEvent()
-{
- public required EntityPrototype Prototype;
-
- /// <summary>
- /// The total price of the entity.
- /// </summary>
- public double Price = 0;
-
- /// <summary>
- /// Whether this event was already handled.
- /// </summary>
- public bool Handled = false;
-}
-using Content.Server.Cargo.Systems;
using Content.Server.Emp;
using Content.Server.Power.Components;
+using Content.Shared.Cargo;
using Content.Shared.Examine;
using Content.Shared.Rejuvenate;
-using Content.Shared.Timing;
using JetBrains.Annotations;
using Robust.Shared.Utility;
using Robust.Shared.Timing;
using Content.Server.Administration.Logs;
using Content.Server.Cargo.Systems;
using Content.Server.Storage.Components;
+using Content.Shared.Cargo;
using Content.Shared.Database;
using Content.Shared.Hands.EntitySystems;
using Content.Shared.Interaction.Events;
using Content.Server.Emp;
using Content.Server.Power.Components;
using Content.Server.Power.EntitySystems;
+using Content.Shared.Cargo;
using Content.Shared.Damage;
using Content.Shared.Destructible;
using Content.Shared.DoAfter;
using System.Linq;
using System.Numerics;
using Content.Server.Cargo.Systems;
-using Content.Server.Power.EntitySystems;
using Content.Server.Weapons.Ranged.Components;
+using Content.Shared.Cargo;
using Content.Shared.Damage;
using Content.Shared.Damage.Systems;
using Content.Shared.Database;
using Robust.Shared.Prototypes;
using Robust.Shared.Utility;
using Robust.Shared.Containers;
-using Content.Server.PowerCell;
namespace Content.Server.Weapons.Ranged.Systems;
-using Content.Server.Cargo.Systems;
+using Content.Shared.Cargo;
using Content.Shared.Xenoarchaeology.Artifact;
using Content.Shared.Xenoarchaeology.Artifact.Components;
--- /dev/null
+using Robust.Shared.Prototypes;
+
+namespace Content.Shared.Cargo;
+
+/// <summary>
+/// A directed by-ref event fired on an entity when something needs to know its price. This value is not cached.
+/// </summary>
+[ByRefEvent]
+public record struct PriceCalculationEvent()
+{
+ /// <summary>
+ /// The total price of the entity.
+ /// </summary>
+ public double Price = 0;
+
+ /// <summary>
+ /// Whether this event was already handled.
+ /// </summary>
+ public bool Handled = false;
+}
+
+/// <summary>
+/// Raised broadcast for an entity prototype to determine its estimated price.
+/// </summary>
+/// <param name="Prototype">The prototype to estimate the price for.</param>
+[ByRefEvent]
+public record struct EstimatedPriceCalculationEvent(EntityPrototype Prototype)
+{
+ /// <summary>
+ /// The total price of the entity.
+ /// </summary>
+ public double Price = 0;
+
+ /// <summary>
+ /// Whether this event was already handled.
+ /// </summary>
+ public bool Handled = false;
+}