about summary refs log tree commit diff
path: root/src/engine/e_if_client.h
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2008-10-06 18:05:01 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2008-10-06 18:05:01 +0000
commit12472ef7f405f5e8eb620059cbf95926a458538a (patch)
tree712cc453e491ff46c96b48785a94093b1d17cb1f /src/engine/e_if_client.h
parentd1b55351ccc2252917ad494b74bb6ad562df34ce (diff)
downloadzcatch-12472ef7f405f5e8eb620059cbf95926a458538a.tar.gz
zcatch-12472ef7f405f5e8eb620059cbf95926a458538a.zip
major update. continued on ban support. added demo recording (client and server side). added demo player. added demo menu. demos have some quirks and file size optimizations havn't been done yet. some interface tweaks
Diffstat (limited to 'src/engine/e_if_client.h')
-rw-r--r--src/engine/e_if_client.h21
1 files changed, 20 insertions, 1 deletions
diff --git a/src/engine/e_if_client.h b/src/engine/e_if_client.h
index 08402ad1..7aef86e9 100644
--- a/src/engine/e_if_client.h
+++ b/src/engine/e_if_client.h
@@ -17,12 +17,14 @@ enum
 		CLIENTSTATE_CONNECTING - The client is trying to connect to a server.
 		CLIENTSTATE_LOADING - The client has connected to a server and is loading resources.
 		CLIENTSTATE_ONLINE - The client is connected to a server and running the game.
+		CLIENTSTATE_DEMOPLAYBACK - The client is playing a demo
 		CLIENTSTATE_QUITING - The client is quiting.
 	*/
 	CLIENTSTATE_OFFLINE=0,
 	CLIENTSTATE_CONNECTING,
 	CLIENTSTATE_LOADING,
 	CLIENTSTATE_ONLINE,
+	CLIENTSTATE_DEMOPLAYBACK,
 	CLIENTSTATE_QUITING,
 
 	/* Constants: Image Formats
@@ -541,6 +543,23 @@ enum
 
 void client_serverbrowse_set(NETADDR *addr, int type, int token, SERVER_INFO *info);
 
-
 int client_serverbrowse_refreshingmasters();
+
+
+typedef struct DEMOPLAYBACK_INFO
+{
+	int first_tick;
+	int last_tick;
+	int current_tick;
+	int paused;
+	float speed;
+} DEMOPLAYBACK_INFO;
+
+void client_demoplayer_play(const char *filename);
+const DEMOPLAYBACK_INFO *client_demoplayer_getinfo();
+void client_demoplayer_setpos(float percent);
+void client_demoplayer_setpause(int paused);
+void client_demoplayer_setspeed(float speed);
+const char *client_user_directory();
+
 #endif