From 39989d56da3955538eebd9288b281ae3216addb8 Mon Sep 17 00:00:00 2001 From: azw Date: Sat, 19 Aug 2023 00:04:40 +0800 Subject: [PATCH] 1 --- server/robotserver/player.cc | 33 ++++++++++----------------------- third_party/a8 | 2 +- third_party/f8 | 2 +- 3 files changed, 12 insertions(+), 25 deletions(-) diff --git a/server/robotserver/player.cc b/server/robotserver/player.cc index 00e7b40b..f07d024d 100644 --- a/server/robotserver/player.cc +++ b/server/robotserver/player.cc @@ -8,26 +8,6 @@ #include "player.h" -class ConnectedPromise : public a8::Promise -{ -protected: - - virtual void DoAwait() override - { - } - -}; - -class JoinSuccessPromise : public a8::Promise -{ -protected: - - virtual void DoAwait() override - { - } - -}; - void Player::Update() { @@ -51,9 +31,16 @@ void Player::Init(int idx, void Player::CoLogin(f8::Coroutine* co) { - auto a = struct{}{}; - co->CoAwait(std::make_shared()); - co->CoAwait(std::make_shared()); + co->CoAwait + ([] (std::shared_ptr awaiter) + { + + }); + co->CoAwait + ([] (std::shared_ptr awaiter) + { + + }); } void Player::CoGame(f8::Coroutine* co) diff --git a/third_party/a8 b/third_party/a8 index 0d5c381b..88827576 160000 --- a/third_party/a8 +++ b/third_party/a8 @@ -1 +1 @@ -Subproject commit 0d5c381b38618310d7b438a03c8942b14c0e0725 +Subproject commit 888275763feaf537f01c190b23402325ebe1f9da diff --git a/third_party/f8 b/third_party/f8 index 4384bc7a..8eb3db11 160000 --- a/third_party/f8 +++ b/third_party/f8 @@ -1 +1 @@ -Subproject commit 4384bc7ac05ef6bad5e1dfe94b7d4211b81930c0 +Subproject commit 8eb3db11139b9a4d9b9056e2cd3412f7ebb48718