|
nanoMMO 0.97.8
Building an MMO: The Engineering Series
|
#include <websocket_link.h>
Public Member Functions | |
| void | Poll () override |
| Takes in what's arrived, without waiting. | |
| void | Send (const protocol::Input &input) override |
| bool | connected () const override |
| const protocol::World & | world () const override |
| const std::deque< protocol::Chat > & | chat () const override |
| The newest lines said in the world, oldest first. | |
| int64_t | whole () const override |
| const std::optional< protocol::Move > & | move () const override |
| Where the world's instance told us to go, once it hands its players over. | |
| const protocol::Inventory & | inventory () const override |
| What we carry and wear, as the world last sent it. | |
| const protocol::Quests & | quests () const override |
| const protocol::Guild & | guild () const override |
| Our guild, with no name for none. | |
| const protocol::Trade & | trade () const override |
| Our trade, with nobody in it for none. | |
| const protocol::Duel & | duel () const override |
| Our duel, the same. | |
| std::vector< protocol::Event > | TakeEvents () override |
| std::optional< protocol::GuildInvite > | TakeInvite () override |
| The guild that asked us to join since the last time, once. | |
| Public Member Functions inherited from nanommo::Link | |
| virtual | ~Link ()=default |
Static Public Member Functions | |
| static absl::StatusOr< std::unique_ptr< WebSocketLink > > | Open (const std::string &url, const std::string &token) |
| Opens the world's url at the gateway, and says hello with the token. | |
A world server, through the gateway, over a browser's WebSocket: the same messages as over TLS on a computer, with the world over the same stream.
Definition at line 72 of file websocket_link.h.
|
inlineoverridevirtual |
The newest lines said in the world, oldest first.
Implements nanommo::Link.
Definition at line 82 of file websocket_link.h.
|
inlineoverridevirtual |
Implements nanommo::Link.
Definition at line 80 of file websocket_link.h.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Our guild, with no name for none.
Implements nanommo::Link.
Definition at line 93 of file websocket_link.h.
|
inlineoverridevirtual |
What we carry and wear, as the world last sent it.
Implements nanommo::Link.
Definition at line 89 of file websocket_link.h.
|
inlineoverridevirtual |
Where the world's instance told us to go, once it hands its players over.
Implements nanommo::Link.
Definition at line 86 of file websocket_link.h.
|
static |
Opens the world's url at the gateway, and says hello with the token.
Definition at line 136 of file websocket_link.cc.
|
overridevirtual |
Takes in what's arrived, without waiting.
Implements nanommo::Link.
Definition at line 150 of file websocket_link.cc.
|
inlineoverridevirtual |
Implements nanommo::Link.
Definition at line 92 of file websocket_link.h.
|
overridevirtual |
Implements nanommo::Link.
Definition at line 163 of file websocket_link.cc.
|
inlineoverridevirtual |
What happened near us since the last time, oldest first, which it hands over, as each event comes once.
Implements nanommo::Link.
Definition at line 96 of file websocket_link.h.
|
inlineoverridevirtual |
The guild that asked us to join since the last time, once.
Implements nanommo::Link.
Definition at line 99 of file websocket_link.h.
|
inlineoverridevirtual |
Our trade, with nobody in it for none.
Implements nanommo::Link.
Definition at line 94 of file websocket_link.h.
|
inlineoverridevirtual |
The newest world that's come whole, by when it was sent, for the server to leave out what hasn't changed since.
Implements nanommo::Link.
Definition at line 85 of file websocket_link.h.
|
inlineoverridevirtual |
Implements nanommo::Link.
Definition at line 81 of file websocket_link.h.