|
| absl::Status | Take (std::string_view message) |
| | Files one of the server's messages, or returns why it isn't one.
|
| void | Add (const protocol::World &part) |
| | A part of the world that came on its own, as a datagram brings it.
|
| const protocol::World & | world () const |
| const std::deque< protocol::Chat > & | chat () const |
| | The newest lines said in the world, oldest first.
|
| int64_t | whole () const |
| const std::optional< protocol::Move > & | move () const |
| const protocol::Inventory & | inventory () const |
| const protocol::Quests & | quests () const |
| const protocol::Guild & | guild () const |
| const protocol::Trade & | trade () const |
| const protocol::Duel & | duel () const |
| std::vector< protocol::Event > | TakeEvents () |
| | The events since the last time, oldest first, handed over once.
|
| std::optional< protocol::GuildInvite > | TakeInvite () |
| | The guild that asked us to join since the last time, once.
|
What a world server has sent us, filed by kind, for the game to read each frame: the world, put together from its parts, and the chat, our bag, our quests, our guild, our trade, our duel, the moves and the events, which each come on their own. Whatever carries the messages, a socket on a computer or a WebSocket in a browser, hands them to one of these.
Definition at line 21 of file inbox.h.