2021-02-27 04:12:09 +01:00
|
|
|
|
#nullable enable
|
|
|
|
|
|
using Content.Shared.Chemistry;
|
2021-02-11 01:13:03 -08:00
|
|
|
|
using Robust.Shared.GameObjects;
|
|
|
|
|
|
using Robust.Shared.Serialization;
|
2019-11-21 17:24:19 -05:00
|
|
|
|
|
|
|
|
|
|
namespace Content.Shared.Interfaces.Chemistry
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Metabolism behavior for a reagent.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public interface IMetabolizable : IExposeData
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Metabolize the attached reagent. Return the amount of reagent to be removed from the solution.
|
|
|
|
|
|
/// You shouldn't remove the reagent yourself to avoid invalidating the iterator of the metabolism
|
|
|
|
|
|
/// organ that is processing it's reagents.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="solutionEntity">The entity containing the solution.</param>
|
|
|
|
|
|
/// <param name="reagentId">The reagent id</param>
|
|
|
|
|
|
/// <param name="tickTime">The time since the last metabolism tick in seconds.</param>
|
|
|
|
|
|
/// <returns>The amount of reagent to be removed. The metabolizing organ should handle removing the reagent.</returns>
|
2020-04-05 11:36:12 +02:00
|
|
|
|
ReagentUnit Metabolize(IEntity solutionEntity, string reagentId, float tickTime);
|
2019-11-21 17:24:19 -05:00
|
|
|
|
}
|
|
|
|
|
|
}
|