implement some bb guild card commands

This commit is contained in:
Martin Michelsen
2022-07-30 00:25:35 -07:00
parent 174c53d751
commit b901e8846d
8 changed files with 209 additions and 80 deletions
+18 -2
View File
@@ -276,12 +276,28 @@ GuildCardV3::GuildCardV3() noexcept
char_class(0) { }
GuildCardBB::GuildCardBB() noexcept
: serial_number(0),
: guild_card_number(0),
reserved1(1),
reserved2(1),
section_id(0),
char_class(0) { }
void GuildCardBB::clear() {
this->guild_card_number = 0;
this->name.clear();
this->team_name.clear();
this->description.clear();
this->reserved1 = 1;
this->reserved2 = 1;
this->section_id = 0;
this->char_class = 0;
}
void GuildCardEntryBB::clear() {
this->data.clear();
this->unknown_a1.clear();
}
void PlayerBank::load(const string& filename) {
@@ -506,7 +522,7 @@ PlayerBB ClientGameData::export_player_bb() {
ret.serial_number = this->serial_number;
ret.name = player->disp.name;
ret.team_name = account->team_name;
ret.guild_card_desc = player->guild_card_desc;
ret.guild_card_description = player->guild_card_description;
ret.reserved1 = 0;
ret.reserved2 = 0;
ret.section_id = player->disp.section_id;