]> git.lizzy.rs Git - dragonblocks_alpha.git/blobdiff - src/server/server.h
Improve batch rendering: Use multiple OpenGL texture units
[dragonblocks_alpha.git] / src / server / server.h
index 9190d0945ae06abedf21f350a0231d8e46278814..f9a54c5c7acefd500140ec78232e29b899ef7e6c 100644 (file)
@@ -4,6 +4,7 @@
 #include <pthread.h>
 #include <netinet/in.h>
 #include "client/client_commands.h"
+#include "server/database.h"
 #include "server/server_commands.h"
 #include "list.h"
 #include "network.h"
@@ -16,6 +17,7 @@ typedef struct
        List clients;                                   // Client * -> NULL map with all connected clients
        pthread_rwlock_t players_rwlck; // lock to protect player list
        List players;                                   // char * -> Client * map with clients that have finished auth
+       sqlite3 *db;
        struct {
                u32 simulation_distance;        // perimeter of the cube that players can see blocks in is simulation_distance * 2 + 1
        } config;                                               // configuration, ToDo: read from config file