|
|
@ -8,7 +8,6 @@ |
|
|
#include <memory> |
|
|
#include <memory> |
|
|
#include <string> |
|
|
#include <string> |
|
|
#include <vector> |
|
|
#include <vector> |
|
|
#include <boost/serialization/vector.hpp> |
|
|
|
|
|
#include "common/announce_multiplayer_room.h" |
|
|
#include "common/announce_multiplayer_room.h" |
|
|
#include "common/common_types.h" |
|
|
#include "common/common_types.h" |
|
|
#include "network/room.h" |
|
|
#include "network/room.h" |
|
|
@ -35,17 +34,6 @@ struct WifiPacket { |
|
|
MacAddress transmitter_address; ///< Mac address of the transmitter. |
|
|
MacAddress transmitter_address; ///< Mac address of the transmitter. |
|
|
MacAddress destination_address; ///< Mac address of the receiver. |
|
|
MacAddress destination_address; ///< Mac address of the receiver. |
|
|
u8 channel; ///< WiFi channel where this frame was transmitted. |
|
|
u8 channel; ///< WiFi channel where this frame was transmitted. |
|
|
|
|
|
|
|
|
private: |
|
|
|
|
|
template <class Archive> |
|
|
|
|
|
void serialize(Archive& ar, const unsigned int) { |
|
|
|
|
|
ar& type; |
|
|
|
|
|
ar& data; |
|
|
|
|
|
ar& transmitter_address; |
|
|
|
|
|
ar& destination_address; |
|
|
|
|
|
ar& channel; |
|
|
|
|
|
} |
|
|
|
|
|
friend class boost::serialization::access; |
|
|
|
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
/// Represents a chat message. |
|
|
/// Represents a chat message. |
|
|
|