diff options
Diffstat (limited to 'src/server.h')
-rw-r--r-- | src/server.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/server.h b/src/server.h index b716a7df1..099be9e14 100644 --- a/src/server.h +++ b/src/server.h @@ -425,6 +425,12 @@ private: // When called, connection mutex should be locked RemoteClient* getClient(u16 peer_id); + // Gets a player from memory or creates one. + // Caller should check isClientConnected() and set it appropriately. + // + // Call with env and con locked. + Player *emergePlayer(const char *name, const char *password); + /* Update water pressure. This also adds suitable nodes to active_nodes. |