mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-04-14 00:23:50 +00:00
make a user friendly delete message
Signed-off-by: Pavel Okhlopkov <pavel.okhlopkov@flant.com>
This commit is contained in:
parent
5b47d034c5
commit
fe1dc5e02b
5 changed files with 62 additions and 10 deletions
|
|
@ -199,7 +199,7 @@ public:
|
|||
using CharCreateCallback = std::function<void(bool success, const std::string& message)>;
|
||||
void setCharCreateCallback(CharCreateCallback cb) { charCreateCallback_ = std::move(cb); }
|
||||
|
||||
using CharDeleteCallback = std::function<void(bool success)>;
|
||||
using CharDeleteCallback = std::function<void(bool success, const std::string& message)>;
|
||||
void setCharDeleteCallback(CharDeleteCallback cb) { charDeleteCallback_ = std::move(cb); }
|
||||
uint8_t getLastCharDeleteResult() const { return lastCharDeleteResult_; }
|
||||
|
||||
|
|
@ -3336,6 +3336,10 @@ private:
|
|||
CharDeleteCallback charDeleteCallback_;
|
||||
CharLoginFailCallback charLoginFailCallback_;
|
||||
uint8_t lastCharDeleteResult_ = 0xFF;
|
||||
bool pendingCharDeleteResponse_ = false;
|
||||
uint64_t pendingDeleteGuid_ = 0;
|
||||
float pendingDeleteTimer_ = 0.0f;
|
||||
bool pendingDeleteFallbackEnum_ = false;
|
||||
bool pendingCharCreateResult_ = false;
|
||||
bool pendingCharCreateSuccess_ = false;
|
||||
std::string pendingCharCreateMsg_;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue