implement trade window

This commit is contained in:
Martin Michelsen
2022-07-25 00:40:05 -07:00
parent 52a853092c
commit df80933f40
6 changed files with 180 additions and 16 deletions
+11
View File
@@ -83,6 +83,14 @@ struct PlayerBank { // 0xFA8 bytes
struct PendingItemTrade {
uint8_t other_client_id;
bool confirmed; // true if client has sent a D2 command
std::vector<ItemData> items;
};
struct PlayerDispDataBB;
// PC/GC player appearance and stats data
@@ -437,6 +445,9 @@ public:
// The following fields are not saved, and are only used in certain situations
// Null unless the client is within the trade sequence (D0-D4 commands)
std::unique_ptr<PendingItemTrade> pending_item_trade;
// Null unless the client is Episode 3 and has sent its config already
std::shared_ptr<Ep3Config> ep3_config;