factor ClientGameData into Client to reduce data duplication
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
#include <string>
|
||||
#include <variant>
|
||||
|
||||
#include "../Player.hh"
|
||||
#include "../PlayerSubordinates.hh"
|
||||
|
||||
struct Lobby;
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user