1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-12-19 05:15:47 +01:00

Clean up client and server command sending / tables

This commit is contained in:
sfan5
2024-01-24 18:23:11 +01:00
parent 2b99dabdac
commit 397682a5b0
9 changed files with 79 additions and 119 deletions

View File

@@ -20,10 +20,10 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#pragma once
#include "server.h"
#include "networkprotocol.h"
class NetworkPacket;
class Server;
enum ToServerConnectionState {
TOSERVER_STATE_NOT_CONNECTED,
@@ -33,7 +33,7 @@ enum ToServerConnectionState {
};
struct ToServerCommandHandler
{
const std::string name;
const char *name;
ToServerConnectionState state;
void (Server::*handler)(NetworkPacket* pkt);
};