update PlayerVisualConfigV4 struct to match client implementation
This commit is contained in:
@@ -170,7 +170,7 @@ std::string BattleRecord::serialize() const {
|
||||
void BattleRecord::add_player(
|
||||
const PlayerLobbyDataDCGC& lobby_data,
|
||||
const PlayerInventory& inventory,
|
||||
const PlayerDispDataDCPCV3& disp,
|
||||
const PlayerDispDataV123& disp,
|
||||
uint32_t level) {
|
||||
if (!this->is_writable) {
|
||||
throw std::logic_error("cannot write to battle record");
|
||||
|
||||
@@ -22,7 +22,7 @@ public:
|
||||
struct PlayerEntry {
|
||||
PlayerLobbyDataDCGC lobby_data;
|
||||
PlayerInventory inventory;
|
||||
PlayerDispDataDCPCV3 disp;
|
||||
PlayerDispDataV123 disp;
|
||||
le_uint32_t level;
|
||||
|
||||
void print(FILE* stream) const;
|
||||
@@ -85,7 +85,7 @@ public:
|
||||
void add_player(
|
||||
const PlayerLobbyDataDCGC& lobby_data,
|
||||
const PlayerInventory& inventory,
|
||||
const PlayerDispDataDCPCV3& disp,
|
||||
const PlayerDispDataV123& disp,
|
||||
uint32_t level);
|
||||
void delete_player(uint8_t client_id);
|
||||
void add_command(Event::Type type, const void* data, size_t size);
|
||||
|
||||
@@ -905,7 +905,7 @@ struct PlayerConfig {
|
||||
/* 2270:211C */ be_uint32_t unknown_t3;
|
||||
// This visual config is copied to the player's main visual config when the player's name or proportions have
|
||||
// changed, or when certain buttons on the controller (L, R, X, Y) are held at game start time.
|
||||
/* 2274:2120 */ PlayerVisualConfig backup_visual;
|
||||
/* 2274:2120 */ PlayerVisualConfigV123 backup_visual;
|
||||
/* 22C4:2170 */ parray<uint8_t, 0x8C> unknown_a14;
|
||||
/* 2350:21FC */
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ Tournament::PlayerEntry::PlayerEntry(uint32_t account_id, const std::string& pla
|
||||
Tournament::PlayerEntry::PlayerEntry(std::shared_ptr<Client> c)
|
||||
: account_id(c->login->account->account_id),
|
||||
client(c),
|
||||
player_name(c->character_file()->disp.name.decode(c->language())) {}
|
||||
player_name(c->character_file()->disp.visual.name.decode(c->language())) {}
|
||||
|
||||
Tournament::PlayerEntry::PlayerEntry(std::shared_ptr<const COMDeckDefinition> com_deck)
|
||||
: account_id(0), com_deck(com_deck) {}
|
||||
|
||||
Reference in New Issue
Block a user