diff options
Diffstat (limited to 'src/common/announce_multiplayer_room.h')
| -rw-r--r-- | src/common/announce_multiplayer_room.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/common/announce_multiplayer_room.h b/src/common/announce_multiplayer_room.h index 0ad9da2be..cb004e0eb 100644 --- a/src/common/announce_multiplayer_room.h +++ b/src/common/announce_multiplayer_room.h | |||
| @@ -8,12 +8,11 @@ | |||
| 8 | #include <string> | 8 | #include <string> |
| 9 | #include <vector> | 9 | #include <vector> |
| 10 | #include "common/common_types.h" | 10 | #include "common/common_types.h" |
| 11 | #include "common/socket_types.h" | ||
| 11 | #include "web_service/web_result.h" | 12 | #include "web_service/web_result.h" |
| 12 | 13 | ||
| 13 | namespace AnnounceMultiplayerRoom { | 14 | namespace AnnounceMultiplayerRoom { |
| 14 | 15 | ||
| 15 | using MacAddress = std::array<u8, 6>; | ||
| 16 | |||
| 17 | struct GameInfo { | 16 | struct GameInfo { |
| 18 | std::string name{""}; | 17 | std::string name{""}; |
| 19 | u64 id{0}; | 18 | u64 id{0}; |
| @@ -24,7 +23,7 @@ struct Member { | |||
| 24 | std::string nickname; | 23 | std::string nickname; |
| 25 | std::string display_name; | 24 | std::string display_name; |
| 26 | std::string avatar_url; | 25 | std::string avatar_url; |
| 27 | MacAddress mac_address; | 26 | Network::IPv4Address fake_ip; |
| 28 | GameInfo game; | 27 | GameInfo game; |
| 29 | }; | 28 | }; |
| 30 | 29 | ||
| @@ -75,10 +74,7 @@ public: | |||
| 75 | const bool has_password, const GameInfo& preferred_game) = 0; | 74 | const bool has_password, const GameInfo& preferred_game) = 0; |
| 76 | /** | 75 | /** |
| 77 | * Adds a player information to the data that gets announced | 76 | * Adds a player information to the data that gets announced |
| 78 | * @param nickname The nickname of the player | 77 | * @param member The player to add |
| 79 | * @param mac_address The MAC Address of the player | ||
| 80 | * @param game_id The title id of the game the player plays | ||
| 81 | * @param game_name The name of the game the player plays | ||
| 82 | */ | 78 | */ |
| 83 | virtual void AddPlayer(const Member& member) = 0; | 79 | virtual void AddPlayer(const Member& member) = 0; |
| 84 | 80 | ||