server version check
[carveJwlIkooP6JGAAIwe30JlM.git] / network_msg.h
index 46aeab4115fe50ff970929e337085f7bb2e46b47..1cd3007ee2da1872e81ec56bef2a9a05a0679e1f 100644 (file)
 #pragma pack(push,1)
 
 typedef struct netmsg_blank netmsg_blank;
+enum{ k_inetmsg_blank = 0 };
 struct netmsg_blank{
    u16 inetmsg_id;
 };
-enum{ k_inetmsg_blank = 0 };
 
+/* send after version */
 typedef struct netmsg_auth netmsg_auth;
+enum{ k_inetmsg_auth = 1 };
 struct netmsg_auth
 {
    u16 inetmsg_id;
@@ -26,7 +28,14 @@ struct netmsg_auth
    u32 ticket_length;
    u8 ticket[];
 };
-enum{ k_inetmsg_auth = 1 };
+
+/* version should be sent before auth */
+typedef struct netmsg_version netmsg_version;
+enum{ k_inetmsg_version = 2 };
+struct netmsg_version{
+   u16 inetmsg_id;
+   u32 version;
+};
 
 /* server control 100 */
 
@@ -46,12 +55,7 @@ struct netmsg_playerframe{
       instance_id, sound_effects;
    u16 boundary_hash; /* used for animating correctly through gates, teleport..
                          msb is a flip flop for teleporting
-                         second msb is flip flop for gate 
-
-TODO: disable oblique clipping on cam mtx when rendering remote players
-      also render over the portal stencil? somehow.
-
-      detransform, interp, retransform. render in dest world. */
+                         second msb is flip flop for gate */
 
    u8 animdata[];
 };