about summary refs log tree commit diff
path: root/src/game/g_protocol.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/g_protocol.h')
-rw-r--r--src/game/g_protocol.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/game/g_protocol.h b/src/game/g_protocol.h
index b0d84916..f7d26900 100644
--- a/src/game/g_protocol.h
+++ b/src/game/g_protocol.h
@@ -12,6 +12,7 @@ enum
 	OBJTYPE_PLAYER_INFO,
 	OBJTYPE_PLAYER_CHARACTER, // use this if you are searching for the player entity
 	OBJTYPE_PROJECTILE,
+	OBJTYPE_LASER,
 	OBJTYPE_POWERUP,
 	OBJTYPE_FLAG,
 	EVENT_EXPLOSION,
@@ -136,12 +137,19 @@ struct obj_game
 
 struct obj_projectile
 {
-	int type;
 	int x, y;
 	int vx, vy; // should be an angle instead
+	int type;
 	int start_tick;
 };
 
+struct obj_laser
+{
+	int x, y;
+	int from_x, from_y;
+	int eval_tick;
+};
+
 struct obj_powerup
 {
 	int x, y;