This commit is contained in:
2026-09-24 15:30:45 -03:00
commit a5af824c91
306 changed files with 58603 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
#ifndef MAPS_H
#define MAPS_H
#include <Server.h>
typedef struct
{
const char* name;
struct
{
bool (*init)(Server*);
bool (*tick)(Server*);
bool (*tcp_msg)(PeerData*, Packet*);
bool (*left)(PeerData*);
} cb;
uint8_t spawn_red_rings;
uint8_t ring_count;
} Map;
#define MAP_COUNT 20
#define MAP_FART_ZONE MAP_COUNT
extern Map g_mapList[MAP_COUNT + 1];
bool map_init (Server* server);
bool map_tick (Server* server);
bool map_tcpmsg (PeerData* v, Packet* packet);
bool map_left (PeerData* v);
bool map_time (Server* server, double seconds, float mul);
bool map_ring (Server* server, int ringcoff);
#endif