Gas Condensers (#22436)

Co-authored-by: Kevin Zheng <kevinz5000@gmail.com>
This commit is contained in:
Nemanja
2023-12-13 22:35:44 -05:00
committed by GitHub
parent 0f2e9ef4df
commit 0917a9d380
21 changed files with 294 additions and 0 deletions

View File

@@ -374,6 +374,22 @@ public sealed partial class SolutionContainerSystem : EntitySystem
return acceptedQuantity == reagentQuantity.Quantity;
}
/// <summary>
/// Adds reagent of an Id to the container.
/// </summary>
/// <param name="targetUid"></param>
/// <param name="targetSolution">Container to which we are adding reagent</param>
/// <param name="prototype">The Id of the reagent to add.</param>
/// <param name="quantity">The amount of reagent to add.</param>
/// <returns>If all the reagent could be added.</returns>
[PublicAPI]
public bool TryAddReagent(EntityUid targetUid, Solution targetSolution, string prototype, FixedPoint2 quantity,
float? temperature = null, ReagentData? data = null)
{
var reagent = new ReagentQuantity(prototype, quantity, data);
return TryAddReagent(targetUid, targetSolution, reagent, out _, temperature);
}
/// <summary>
/// Adds reagent of an Id to the container.
/// </summary>