1
This commit is contained in:
parent
0d6e388f3b
commit
f005fd9362
@ -128,6 +128,8 @@ void Room::Init()
|
|||||||
batch_sync_ = std::make_shared<BatchSync>(this);
|
batch_sync_ = std::make_shared<BatchSync>(this);
|
||||||
room_agent_ = behaviac::Agent::Create<RoomAgent>();
|
room_agent_ = behaviac::Agent::Create<RoomAgent>();
|
||||||
room_agent_->SetRoom(this);
|
room_agent_->SetRoom(this);
|
||||||
|
f8::BtMgr::Instance()->BtLoad(room_agent_, "npc/room");
|
||||||
|
f8::BtMgr::Instance()->BtSetCurrent(room_agent_, "npc/room");
|
||||||
|
|
||||||
CreateSpawnPoints();
|
CreateSpawnPoints();
|
||||||
CreateWorldObjects();
|
CreateWorldObjects();
|
||||||
@ -212,6 +214,7 @@ void Room::Update(int delta_time)
|
|||||||
long long begin_tick = a8::XGetTickCount();
|
long long begin_tick = a8::XGetTickCount();
|
||||||
long long end_tick = a8::XGetTickCount();
|
long long end_tick = a8::XGetTickCount();
|
||||||
#endif
|
#endif
|
||||||
|
room_agent_->Exec();
|
||||||
UpdateFrameCall();
|
UpdateFrameCall();
|
||||||
if (GetFrameNo() % 2 == 0) {
|
if (GetFrameNo() % 2 == 0) {
|
||||||
UpdateGas();
|
UpdateGas();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user