]> git.lizzy.rs Git - dragonblocks_alpha.git/blobdiff - src/server/server_commands.h
Improve batch rendering: Use multiple OpenGL texture units
[dragonblocks_alpha.git] / src / server / server_commands.h
index ba782783517c587a6389d75f5c7676c13b224a0f..35025d5ff690adde274b2b5f1292b3199600184a 100644 (file)
@@ -1,14 +1,17 @@
 #ifndef _SERVER_COMMANDS_H_
-#define _SCOMMANDS_H_
+#define _SERVER_COMMANDS_H_
+
+// this file must be included after client.h or server.h and before network.h
 
 typedef enum
 {
-       SERVER_COMMAND_NULL,
-       SC_DISCONNECT,
-       SC_AUTH,
-       SC_SETNODE,
-       SC_POS,
-       SERVER_COMMAND_COUNT,
+       SERVER_COMMAND_NULL,    // invalid command
+       SC_DISCONNECT,                  // client notifies server about disconnecting
+       SC_AUTH,                                // client wants to authentify [body: name (zero terminated string)]
+       SC_SETNODE,                             // player placed a node [body: pos (v3s32), node (MapNode)]
+       SC_POS,                                 // player moved [body: pos (v3f)]
+       SC_REQUEST_BLOCK,               // request to send a block [body: pos (v3s32)]
+       SERVER_COMMAND_COUNT,   // count of available commands
 } ServerCommand;
 
 #ifdef _CLIENT_H_