adding multiplayer

This commit is contained in:
2026-04-15 06:57:15 -07:00
parent af639e62c3
commit 3a91db6321
32 changed files with 938 additions and 174 deletions

View File

@@ -2,13 +2,23 @@
#define SERVER_H
#include "transactions.h"
#include <time.h>
typedef struct {
} client;
int sock;
int userId;
} s_game_client;
typedef struct {
} client_manager;
s_game_client clients[4];
int number_of_clients;
int sock;
struct timespec current_time;
int start_server();
} s_game_server;
int start_server(s_game_server* s);
int accept_client(s_game_server* s);
int server_update(s_game_server* gs);
int get_player_data(s_game_server* s, int client);
#endif // !SERVER_H