From d176d048ae01443e3183aa1903d861740aa79f8b Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Sat, 6 May 2023 11:54:42 +0800 Subject: [PATCH] 1 --- server/gameserver/app.cc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/server/gameserver/app.cc b/server/gameserver/app.cc index 31b67d39..5493ab58 100644 --- a/server/gameserver/app.cc +++ b/server/gameserver/app.cc @@ -40,6 +40,8 @@ #include "tracemgr.h" #include "matchmgr.h" #include "selfchecker.h" +#include "hero_agent.h" +#include "android_agent.h" #include "skillhelper.h" #include "mt/MetaMgr.h" @@ -185,6 +187,18 @@ bool App::Init(int argc, char* argv[]) GGListener::Instance()->Init(); HttpProxy::Instance()->Init(); + #if 0 + for (int i = 0;i <1000; ++i) + { + auto agent_ = behaviac::Agent::Create(); + agent_->SetOwner(nullptr); + f8::BtMgr::Instance()->BtLoad(agent_, "android_attack"); + //f8::BtMgr::Instance()->BtSetCurrent(agent_, "android_pvp"); + f8::BtMgr::Instance()->BtDestory(agent_); + //agent_ = nullptr; + } + #endif + f8::UdpLog::Instance()->Info("gameserver starting instance_id:%d pid:%d debug_mode:%d channel:%d", { instance_id_,