X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fnetwork%2Fprotocol.cpp;h=f7a690997088b12d07fa831250a8265dfdc4d630;hb=3b37ee041af581e47646c2487e7e302c55bd8cd7;hp=ee0a1b07c5e9674f04aaa6649a8a4b4b1ae256fb;hpb=754ac497179474d0266b55e881a084fef7d5d6a1;p=r2c2.git diff --git a/source/network/protocol.cpp b/source/network/protocol.cpp index ee0a1b0..f7a6909 100644 --- a/source/network/protocol.cpp +++ b/source/network/protocol.cpp @@ -1,10 +1,3 @@ -/* $Id$ - -This file is part of R²C² -Copyright © 2009-2011 Mikkosoft Productions, Mikko Rasa -Distributed under the GPL -*/ - #include "packets.h" #include "protocol.h" @@ -21,6 +14,8 @@ Protocol::Protocol() (&TrainControlPacket::control) (&TrainControlPacket::value); add() (&TrainFunctionPacket::address) (&TrainFunctionPacket::functions); + add() (&TrainAIControlPacket::address) + (&TrainAIControlPacket::target_speed) (&TrainAIControlPacket::reverse); add() (&TrainStatusPacket::address) (&TrainStatusPacket::status); add() (&RouteInfoPacket::name);