factor ClientGameData into Client to reduce data duplication

This commit is contained in:
Martin Michelsen
2023-12-07 12:23:08 -08:00
parent 072ebe81bf
commit 6d16f8095a
25 changed files with 1123 additions and 1150 deletions
+1 -1
View File
@@ -9,7 +9,7 @@
#include <string>
#include <variant>
#include "../Player.hh"
#include "../PlayerSubordinates.hh"
struct Lobby;
+1 -1
View File
@@ -16,7 +16,7 @@ Tournament::PlayerEntry::PlayerEntry(uint32_t serial_number, const string& playe
Tournament::PlayerEntry::PlayerEntry(shared_ptr<Client> c)
: serial_number(c->license->serial_number),
client(c),
player_name(c->game_data.character()->disp.name.decode(c->language())) {}
player_name(c->character()->disp.name.decode(c->language())) {}
Tournament::PlayerEntry::PlayerEntry(
shared_ptr<const COMDeckDefinition> com_deck)
+2 -2
View File
@@ -10,10 +10,10 @@
#include <unordered_set>
#include <vector>
#include "../Player.hh"
#include "DataIndexes.hh"
struct Lobby;
struct Client;
class Client;
struct ServerState;
namespace Episode3 {