Allow solutions to store extra reagent data (#19323)

This commit is contained in:
Leon Friedrich
2023-09-05 09:55:10 +12:00
committed by GitHub
parent a6b81058d0
commit e4ca6f4fb9
52 changed files with 932 additions and 538 deletions

View File

@@ -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;
}