-/* $Id$
-
-This file is part of R²C²
-Copyright © 2009 Mikkosoft Productions, Mikko Rasa
-Distributed under the GPL
-*/
-
#include "packets.h"
#include "protocol.h"
Protocol::Protocol()
{
+ add<DriverStatePacket>() (&DriverStatePacket::power)
+ (&DriverStatePacket::halt);
+ add<EmergencyPacket>() (&EmergencyPacket::message);
add<TrainInfoPacket>() (&TrainInfoPacket::address)
(&TrainInfoPacket::loco_type) (&TrainInfoPacket::name);
add<TrainControlPacket>() (&TrainControlPacket::address)