Implement M6.5c persisted environmental community and bounded writers

This commit is contained in:
dingo
2026-09-27 13:07:35 -04:00
parent e9ea388cef
commit 364c090bc8
16 changed files with 970 additions and 42 deletions
+8
View File
@@ -8,6 +8,9 @@
#include <memory>
#include <span>
namespace evo::processes {
class EnvironmentalCommunity;
}
namespace evo::world {
struct OrganismResourceId {
std::uint64_t value{};
@@ -91,6 +94,11 @@ class EnvironmentalTransfers {
std::uint64_t current_tick);
private:
friend class evo::processes::EnvironmentalCommunity;
[[nodiscard]] bool process_checkpoint(std::uint64_t tick,
const std::array<std::uint64_t, 10>& environment,
const std::array<std::uint64_t, 10>& producer,
const std::array<std::uint64_t, 10>& consumer) noexcept;
struct History {
EnvironmentalReceipt receipt{};
std::array<EnvironmentalLeg, max_legs> legs{};