This commit is contained in:
aozhiwei 2023-06-18 12:59:23 +08:00
parent ef58abcb27
commit dabecaffaf
2 changed files with 9 additions and 0 deletions

View File

@ -1,5 +1,7 @@
#include "precompile.h"
#include <f8/coroutine.h>
#include "player.h"
void Player::Update()
@ -14,8 +16,10 @@ void Player::Init()
void Player::CoNet(f8::Coroutine* co)
{
#if 0
co->Await(CoLogin);
co->Await(CoGame);
#endif
}
void Player::CoLogin(f8::Coroutine* co)

View File

@ -5,6 +5,11 @@ namespace a8
class WebSocketClient;
}
namespace f8
{
class Coroutine;
}
A8_DECLARE_ENUM(PlayerState_e,
Init = 0,
ConnectNet,