]> git.tdb.fi Git - r2c2.git/blobdiff - source/network/packets.h
Export AI control parameters over the network
[r2c2.git] / source / network / packets.h
index 0cd56dc8de828e66461a2871628f8b3eb24f0a92..1982eea5966525e07d4978b45e182daf0ab41af8 100644 (file)
@@ -1,10 +1,3 @@
-/* $Id$
-
-This file is part of R²C²
-Copyright © 2009  Mikkosoft Productions, Mikko Rasa
-Distributed under the GPL
-*/
-
 #ifndef R2C2_NET_PACKETS_H_
 #define R2C2_NET_PACKETS_H_
 
@@ -43,6 +36,13 @@ struct TrainFunctionPacket
        unsigned functions;
 };
 
+struct TrainAIControlPacket
+{
+       unsigned address;
+       float target_speed;
+       char reverse;
+};
+
 struct TrainStatusPacket
 {
        unsigned address;