aboutsummaryrefslogtreecommitdiff
path: root/src/libparsec/include/net_conf.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libparsec/include/net_conf.h')
-rw-r--r--src/libparsec/include/net_conf.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/src/libparsec/include/net_conf.h b/src/libparsec/include/net_conf.h
new file mode 100644
index 0000000..1bdb37b
--- /dev/null
+++ b/src/libparsec/include/net_conf.h
@@ -0,0 +1,48 @@
+/*
+ * PARSEC HEADER: net_conf.h
+ */
+
+#ifndef _NET_CONF_H_
+#define _NET_CONF_H_
+
+#ifdef PARSEC_SERVER
+
+ // flags
+ #define INTERPOLATE_PLAYER_ACTIONS
+ #define SEND_KILL_MESSAGES
+ //#define NO_PROJECTILE_KILL_MESSAGES
+ //#define DONT_SEND_EXTRA_CREATES
+ #define ENABLE_PACKET_RECORDING
+ #define ENABLE_PACKET_SWAPPING
+ //#define ENABLE_PACKETDROP_TESTING
+ //#define ENCRYPT_PACKETS
+
+ #ifdef DONT_SEND_EXTRA_CREATES
+ #define DSEXC(x) x
+ #else
+ #define DSEXC(x)
+ #endif
+
+#else // !PARSEC_SERVER
+
+ // flags
+ #define INTERPOLATE_PLAYER_ACTIONS
+ #define SEND_KILL_MESSAGES
+ #define NO_PROJECTILE_KILL_MESSAGES
+ //#define DONT_SEND_EXTRA_CREATES
+ #define ENABLE_PACKET_RECORDING
+ #define ENABLE_PACKET_SWAPPING
+ #define ENABLE_PACKETDROP_TESTING
+ //#define ENCRYPT_PACKETS
+
+ #ifdef DONT_SEND_EXTRA_CREATES
+ #define DSEXC(x) x
+ #else
+ #define DSEXC(x)
+ #endif
+
+#endif // !PARSEC_SERVER
+
+#endif // _NET_CONF_H_
+
+