2017-04-01 15:01:36 +00:00
|
|
|
#ifndef _LIB_NETWORK_FORMAT_SERIALIZER_H_
|
|
|
|
#define _LIB_NETWORK_FORMAT_SERIALIZER_H_
|
|
|
|
|
|
|
|
|
2017-04-06 10:01:18 +00:00
|
|
|
#define SGCA_PLANE 0x01
|
|
|
|
#define SGCA_VIEWTERM 0x02
|
|
|
|
#define SGCA_CTRLTERM 0x04
|
|
|
|
|
|
|
|
|
2017-04-01 15:01:36 +00:00
|
|
|
#include "../../header.h";
|
|
|
|
|
2017-04-06 10:01:18 +00:00
|
|
|
struct view{
|
|
|
|
int x;
|
|
|
|
int y;
|
|
|
|
int z;
|
|
|
|
int cap;
|
|
|
|
int speed;
|
|
|
|
|
|
|
|
char id[6];
|
|
|
|
}; // 26 bytes
|
2017-04-01 15:01:36 +00:00
|
|
|
|
2017-04-06 10:01:18 +00:00
|
|
|
struct ctrl{
|
|
|
|
int cap;
|
|
|
|
int speed;
|
|
|
|
int z;
|
|
|
|
}; // 12 bytes
|
2017-04-01 15:01:36 +00:00
|
|
|
|
2017-04-06 10:01:18 +00:00
|
|
|
struct netflow{
|
|
|
|
char type;
|
|
|
|
char flags;
|
|
|
|
char data[39];
|
|
|
|
} // 41 bytes
|
2017-04-01 15:01:36 +00:00
|
|
|
|
|
|
|
|
|
|
|
#endif
|