X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fnetwork%2Fprotocol.cpp;h=f7a690997088b12d07fa831250a8265dfdc4d630;hb=f7ab597d035a053311c1a8c5baa51b090262f045;hp=f688b486442d38a2d51f9ee3a520ba6a7485ac08;hpb=fadc35133b1ebbd98af948c1fa529dcde6fddcfd;p=r2c2.git diff --git a/source/network/protocol.cpp b/source/network/protocol.cpp index f688b48..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 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);