Allow solutions to store extra reagent data (#19323)
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
using Content.Server.Body.Systems;
|
||||
using Content.Server.Nutrition.EntitySystems;
|
||||
using Content.Shared.Chemistry.Components;
|
||||
using Content.Shared.Chemistry.Reagent;
|
||||
using Content.Shared.FixedPoint;
|
||||
using Content.Shared.Whitelist;
|
||||
|
||||
@@ -46,14 +48,12 @@ namespace Content.Server.Body.Components
|
||||
/// </summary>
|
||||
public sealed class ReagentDelta
|
||||
{
|
||||
public readonly string ReagentId;
|
||||
public readonly FixedPoint2 Quantity;
|
||||
public readonly ReagentQuantity ReagentQuantity;
|
||||
public float Lifetime { get; private set; }
|
||||
|
||||
public ReagentDelta(string reagentId, FixedPoint2 quantity)
|
||||
public ReagentDelta(ReagentQuantity reagentQuantity)
|
||||
{
|
||||
ReagentId = reagentId;
|
||||
Quantity = quantity;
|
||||
ReagentQuantity = reagentQuantity;
|
||||
Lifetime = 0.0f;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user