#pragma once #include "evo/biology/metabolism.hpp" #include #include namespace evo::biology { struct CellularUptakeProposal { accounting::Inventory patch_after; accounting::Inventory reserve_after; accounting::Inventory acquired; auto operator<=>(const CellularUptakeProposal&) const = default; }; enum class CellularUptakeError : std::uint8_t { unsupported_rate_period, overflow }; // Pure, channel-by-channel uptake proposal for one 50 ms tick from a patch // already confirmed in contact. The caller commits patch and reserve together. [[nodiscard]] std::expected propose_cellular_uptake(accounting::Inventory patch, accounting::Inventory reserve, const MetabolicBudget& budget) noexcept; } // namespace evo::biology