1
This commit is contained in:
parent
4ec177ee82
commit
1ba1679407
@ -33,6 +33,8 @@ public:
|
||||
behaviac::EBTStatus CoJoin();
|
||||
behaviac::EBTStatus CoUpdateGame();
|
||||
|
||||
void SetOwner(std::shared_ptr<Player> owner) { owner_ = owner; }
|
||||
|
||||
public:
|
||||
|
||||
private:
|
||||
|
@ -26,6 +26,7 @@ void Player::Init(int idx, const std::string& account_id)
|
||||
if (!agent_) {
|
||||
abort();
|
||||
}
|
||||
agent_->SetOwner(shared_from_this());
|
||||
f8::BtMgr::Instance()->BtLoad(agent_, "android/test");
|
||||
f8::BtMgr::Instance()->BtSetCurrent(agent_, "android/test");
|
||||
|
||||
|
@ -10,7 +10,7 @@ namespace a8
|
||||
}
|
||||
|
||||
class AndroidAgent;
|
||||
class Player
|
||||
class Player : public std::enable_shared_from_this<Player>
|
||||
{
|
||||
public:
|
||||
enum { HID = HID_Player };
|
||||
|
Loading…
x
Reference in New Issue
Block a user