Menu Preparations
This commit is contained in:
parent
a014be2c5a
commit
c107f82abb
8 changed files with 327 additions and 206 deletions
|
@ -10,15 +10,36 @@
|
|||
|
||||
#define NETWORK_MAXPLAYERS UDS_MAXNODES
|
||||
|
||||
//packet type ids
|
||||
#define PACKET_REQUEST_MAPDATA 1
|
||||
#define PACKET_MAPDATA 2
|
||||
|
||||
//TODO: Every other packet struct should start with a u8 type to match this
|
||||
typedef struct {
|
||||
u8 type;
|
||||
} packetAnalyze;
|
||||
|
||||
typedef struct {
|
||||
u8 type;
|
||||
|
||||
u8 level;
|
||||
} packetRequestMapData;
|
||||
|
||||
typedef struct {
|
||||
u8 type;
|
||||
|
||||
u8 level;
|
||||
u8 offset; //-> data is at offset*128 to offset*128+127
|
||||
|
||||
u8 map[128];
|
||||
u8 data[128];
|
||||
} packetMapData;
|
||||
|
||||
typedef struct {
|
||||
union {
|
||||
packetAnalyze analyze;
|
||||
|
||||
packetRequestMapData requestMapData;
|
||||
packetMapData mapData;
|
||||
};
|
||||
} networkPacket;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue