1
This commit is contained in:
parent
749e0f19cb
commit
c22f7b1c7d
@ -6,3 +6,23 @@ void Player::Update()
|
|||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Player::Init()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void Player::CoNet(f8::Coroutine* co)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void Player::CoLogin(f8::Coroutine* co)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void Player::CoGame(f8::Coroutine* co)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
@ -6,7 +6,10 @@ namespace a8
|
|||||||
}
|
}
|
||||||
|
|
||||||
A8_DECLARE_ENUM(PlayerState_e,
|
A8_DECLARE_ENUM(PlayerState_e,
|
||||||
INIT = 0,
|
Init = 0,
|
||||||
|
ConnectNet,
|
||||||
|
Login,
|
||||||
|
Game
|
||||||
);
|
);
|
||||||
|
|
||||||
class Player
|
class Player
|
||||||
@ -15,15 +18,22 @@ class Player
|
|||||||
|
|
||||||
void Update();
|
void Update();
|
||||||
|
|
||||||
|
void Init();
|
||||||
template <typename T>
|
template <typename T>
|
||||||
void SendNotifyMsg(T& msg)
|
void SendNotifyMsg(T& msg)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
int GetSocketId() { return socket_id_; }
|
int GetSocketId() { return socket_id_; }
|
||||||
|
|
||||||
|
private:
|
||||||
|
|
||||||
|
void CoNet(f8::Coroutine* co);
|
||||||
|
void CoLogin(f8::Coroutine* co);
|
||||||
|
void CoGame(f8::Coroutine* co);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
int socket_id_ = 0;
|
int socket_id_ = 0;
|
||||||
PlayerState_e state_ = PlayerState_e::INIT;
|
PlayerState_e state_ = PlayerState_e::Init;
|
||||||
std::string account_id_;
|
std::string account_id_;
|
||||||
std::string session_id_;
|
std::string session_id_;
|
||||||
std::string remote_ip_;
|
std::string remote_ip_;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user