aboutsummaryrefslogtreecommitdiff
path: root/dat.h
diff options
context:
space:
mode:
Diffstat (limited to 'dat.h')
-rw-r--r--dat.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/dat.h b/dat.h
index 40171cf..b4f7147 100644
--- a/dat.h
+++ b/dat.h
@@ -23,6 +23,10 @@ enum {
SCRHB = SCRH+2*Borderwidth
};
+enum {
+ Framesize = 4+4+4+2,
+};
+
typedef struct VModel VModel;
typedef struct Sprite Sprite;
typedef struct Particle Particle;
@@ -31,9 +35,11 @@ typedef struct Ship Ship;
typedef struct Star Star;
typedef struct Universe Universe;
typedef struct Derivative Derivative;
+
+typedef struct Frame Frame;
typedef struct Conn Conn;
-typedef struct Player Player;
typedef struct PInput PInput;
+typedef struct Player Player;
typedef struct Lobby Lobby;
typedef struct Party Party;
@@ -111,6 +117,16 @@ struct Derivative
Point2 dv; /* a */
};
+struct Frame
+{
+ Udphdr *udp;
+ uint seq;
+ uint ack;
+ uint id;
+ ushort len;
+ uchar data[];
+};
+
struct Conn
{
char dir[40];