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:
@@ -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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user