using Robust.Shared.Prototypes; namespace Content.Shared.Cargo; /// /// A directed by-ref event fired on an entity when something needs to know its price. This value is not cached. /// [ByRefEvent] public record struct PriceCalculationEvent() { /// /// The total price of the entity. /// public double Price = 0; /// /// Whether this event was already handled. /// public bool Handled = false; } /// /// Raised broadcast for an entity prototype to determine its estimated price. /// /// The prototype to estimate the price for. [ByRefEvent] public record struct EstimatedPriceCalculationEvent(EntityPrototype Prototype) { /// /// The total price of the entity. /// public double Price = 0; /// /// Whether this event was already handled. /// public bool Handled = false; }