2023-11-21 22:11:07 +00:00
|
|
|
#ifndef STRUCTS_H
|
|
|
|
#define STRUCTS_H
|
|
|
|
|
|
|
|
#include <SDL2/SDL_net.h>
|
|
|
|
|
|
|
|
struct connection {
|
|
|
|
int id;
|
|
|
|
TCPsocket socket;
|
|
|
|
};
|
|
|
|
|
2023-11-23 18:58:37 +00:00
|
|
|
struct map {
|
|
|
|
int width;
|
|
|
|
int height;
|
|
|
|
int *blocks;
|
2023-11-21 22:11:07 +00:00
|
|
|
};
|
|
|
|
|
2023-11-23 18:58:37 +00:00
|
|
|
struct map *generate_map(int width, int height);
|
|
|
|
|
2023-11-21 22:11:07 +00:00
|
|
|
#endif
|