Implement M6.5c persisted environmental community and bounded writers
This commit is contained in:
@@ -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{};
|
||||
|
||||
Reference in New Issue
Block a user