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