Files
aevolution/include/evo/server/cellular_session_batch.hpp
T
dingo 0b85aa45c2
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (checks) (push) Failing after 40s
Foundation / checks (postgres) (push) Canceled after 0s
Foundation / checks (tsan) (push) Canceled after 0s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (client) (push) Canceled after 1m27s
Foundation / checks (ecs) (push) Canceled after 1m19s
Foundation / checks (network) (push) Canceled after 54s
Bind cellular actions to tick traces
2026-10-10 23:34:52 -04:00

33 lines
1.0 KiB
C++

#pragma once
#include "evo/network/intent_admission.hpp"
#include "evo/server/lifecycle/cellular_batch.hpp"
#include <cstdint>
#include <expected>
#include <span>
#include <vector>
namespace evo::server {
enum class CellularSessionBatchError : std::uint8_t {
tick,
intents,
action,
life,
duplicate_action
};
struct CellularSessionTick {
CellularTickIntents intents;
std::vector<CellularActionRecord> actions;
};
// Overlays authenticated v7 actions onto the scheduler's complete per-life input set.
// The scheduler owns all non-player and no-message behavior; this adapter only binds a
// durable action to the one live account-owned life and preserves its canonical bytes.
[[nodiscard]] std::expected<CellularSessionTick, CellularSessionBatchError>
prepare_cellular_session_tick(const CellularLives& state, std::uint64_t tick,
std::span<const CellularLifeIntent> baseline,
std::span<const network::CarriedAction> actions);
} // namespace evo::server