1 #ifndef _SERVER_COMMANDS_H_
2 #define _SERVER_COMMANDS_H_
4 // this file must be included after client.h or server.h and before network.h
8 SERVER_COMMAND_NULL, // invalid command
9 SC_DISCONNECT, // client notifies server about disconnecting
10 SC_AUTH, // client wants to authentify [body: name (zero terminated string)]
11 SC_SETNODE, // player placed a node [body: pos (v3s32), node (Node)]
12 SC_POS, // player moved [body: pos (v3f)]
13 SC_REQUEST_BLOCK, // request to send a block [body: pos (v3s32)]
14 SERVER_COMMAND_COUNT, // count of available commands
18 typedef ServerCommand RemoteCommand;
22 typedef ServerCommand HostCommand;
23 #define HOST_COMMAND_COUNT SERVER_COMMAND_COUNT