diff options
| author | untodesu <kirill@untode.su> | 2025-06-29 22:24:42 +0500 |
|---|---|---|
| committer | untodesu <kirill@untode.su> | 2025-06-29 22:24:42 +0500 |
| commit | 6cd00aacfa22fed6a54a9b812f6b069ad16feec0 (patch) | |
| tree | b77f4e665da3dd235cdb01e7e6ea78c1c02ecf2e /game/server/status.cc | |
| parent | f440914e1ae453768d09383f332bc7844e0a700e (diff) | |
| download | voxelius-6cd00aacfa22fed6a54a9b812f6b069ad16feec0.tar.bz2 voxelius-6cd00aacfa22fed6a54a9b812f6b069ad16feec0.zip | |
Move game sources into src subdirectory
Diffstat (limited to 'game/server/status.cc')
| -rw-r--r-- | game/server/status.cc | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/game/server/status.cc b/game/server/status.cc deleted file mode 100644 index 6b64719..0000000 --- a/game/server/status.cc +++ /dev/null @@ -1,26 +0,0 @@ -#include "server/pch.hh" - -#include "server/status.hh" - -#include "core/config.hh" - -#include "shared/protocol.hh" -#include "shared/splash.hh" - -#include "server/globals.hh" -#include "server/sessions.hh" - -static void on_status_request_packet(const protocol::StatusRequest& packet) -{ - protocol::StatusResponse response; - response.version = protocol::VERSION; - response.max_players = sessions::max_players.get_value(); - response.num_players = sessions::num_players; - response.motd = splash::get(); - protocol::send(packet.peer, protocol::encode(response)); -} - -void status::init(void) -{ - globals::dispatcher.sink<protocol::StatusRequest>().connect<&on_status_request_packet>(); -} |
