1#ifndef NANOMMO_CLIENT_PREDICTED_BAG_H_
2#define NANOMMO_CLIENT_PREDICTED_BAG_H_
8#include "protocol/nanommo.pb.h"
27 protocol::Inventory
Shown(
const protocol::Inventory& server,
float seconds);
30 void Act(
const protocol::Inventory& server,
31 const protocol::ItemAction& action);
33 bool ahead()
const {
return ahead_.has_value(); }
37 std::optional<protocol::Inventory> ahead_;
39 uint32_t revision_ = 0;
static constexpr float kPatience
In seconds.
protocol::Inventory Shown(const protocol::Inventory &server, float seconds)
void Act(const protocol::Inventory &server, const protocol::ItemAction &action)
What the player asked for, done to the bag shown, if the rules allow it.
PredictedBag(const ItemTable &items)
The items in the items file, by id.