Compare commits

...

27 Commits
master ... mm

Author SHA1 Message Date
aozhiwei
d20b0413d5 1 2023-11-04 09:26:28 +08:00
aozhiwei
6fbfc760f8 1 2023-11-04 09:04:13 +08:00
aozhiwei
46bb061f2b 1 2023-11-04 08:54:52 +08:00
aozhiwei
d1291a6e44 1 2023-11-04 08:14:25 +08:00
aozhiwei
c7343f79ee 1 2023-11-03 19:40:18 +08:00
aozhiwei
4aab4266c0 1 2023-11-03 19:21:45 +08:00
aozhiwei
afd66ab2e7 1 2023-11-03 19:16:46 +08:00
azw
00541385d1 1 2023-06-06 10:06:15 +00:00
aozhiwei
7b501d3991 1 2023-05-06 14:15:43 +08:00
aozhiwei
368b6d357e 1 2023-05-06 14:05:17 +08:00
aozhiwei
f810b71997 1 2023-05-06 14:03:58 +08:00
aozhiwei
faa6633869 1 2023-05-06 11:59:57 +08:00
aozhiwei
0020a8fcf6 1 2023-05-06 11:55:20 +08:00
aozhiwei
d176d048ae 1 2023-05-06 11:54:42 +08:00
aozhiwei
ab182b36ab 1 2023-05-05 17:53:42 +08:00
aozhiwei
edb2ce7bc4 1 2023-05-05 10:35:41 +08:00
aozhiwei
9cbda99228 1 2023-05-05 10:35:07 +08:00
aozhiwei
b7c3b9cbc7 1 2023-05-05 10:34:34 +08:00
aozhiwei
20854df140 1 2023-05-04 17:26:59 +08:00
aozhiwei
615466a157 1 2023-05-04 16:06:01 +08:00
aozhiwei
dd13708e6e 1 2023-05-04 15:27:45 +08:00
aozhiwei
9b9b497ed2 1 2023-04-28 19:14:49 +08:00
aozhiwei
4564dca5a6 1 2023-04-28 18:06:32 +08:00
aozhiwei
e870538895 1 2023-04-28 17:35:38 +08:00
aozhiwei
646a6644e0 1 2023-04-28 17:28:37 +08:00
aozhiwei
6de09d12c6 1 2023-04-28 16:12:52 +08:00
aozhiwei
e8981f141c 1 2023-04-28 15:59:18 +08:00
9 changed files with 37 additions and 10 deletions

View File

@ -146,6 +146,13 @@ if (CMAKE_BUILD_TYPE STREQUAL "Debug")
gameserver${GAME_ID}
behaviac_gcc_debug
)
else()
if (${ASAN})
target_link_libraries(
gameserver${GAME_ID}
#tcmalloc
behaviac_gcc_release
)
else()
target_link_libraries(
gameserver${GAME_ID}
@ -153,3 +160,4 @@ else()
behaviac_gcc_release
)
endif()
endif()

View File

@ -189,6 +189,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<AndroidAgent>();
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_,

View File

@ -67,7 +67,6 @@ static void _GMOpsTerminate(std::shared_ptr<f8::JsonHttpRequest> request)
App::Instance()->Terminate();
}
static void _GMStatGetRealTimeOnline(std::shared_ptr<f8::JsonHttpRequest> request)
{
request->resp_xobj->SetVal("errcode", 0);

View File

@ -34,6 +34,7 @@ namespace mt
std::map<int, int> car_num_limit_;
std::vector<int> safearea_list;
std::vector<std::shared_ptr<WorldObject>> _world_objects;
std::shared_ptr<MapCollider> collider_info;
std::map<int, std::vector<std::shared_ptr<WorldObject>>> _group_world_objects;
std::shared_ptr<MapCollider> collider_info = nullptr;
std::vector<std::tuple<std::shared_ptr<WorldObject>, int>> moba_born_points;

View File

@ -33,7 +33,7 @@ namespace mt
"main3d_map.colliders.json"
};
for (auto& filename : files) {
MapCollider* p = new MapCollider();
std::shared_ptr<MapCollider> p = std::make_shared<MapCollider>();
p->Load(filename);
p->LoadTerrain("map4_terrain.bin");
raw_list.push_back(p);

View File

@ -192,6 +192,11 @@ void Room::UnInit()
f8::BtMgr::Instance()->BtDestory(room_agent_);
room_agent_ = nullptr;
team_hash_.clear();
for (auto& pair : discard_team_hash_) {
delete pair.second;
}
discard_team_hash_.clear();
task_hash_.clear();
A8_SAFE_DELETE(frame_event_data);
PerfMonitor::Instance()->alive_count -= alive_count_;
}
@ -2102,8 +2107,9 @@ void Room::RandRemoveAndroid()
}
}
if (hum) {
if (hum->team_id != 0) {
team_hash_.erase(hum->team_id);
if (hum->GetTeam()) {
team_hash_.erase(hum->GetTeam()->GetTeamId());
discard_team_hash_[hum->GetTeam()->GetTeamId()] = hum->GetTeam();
}
if (hum->born_point) {
DecBornPointHumanNum(hum->born_point, hum);

View File

@ -392,6 +392,7 @@ private:
std::set<int> refreshed_robot_set_;
std::map<int, Team*> team_hash_;
std::map<int, Team*> combineable_team_hash_;
std::map<int, Team*> discard_team_hash_;
std::map<std::string, Player*> accountid_hash_;
std::map<int, MoveableEntity*> moveable_hash_;
std::map<int, Entity*> uniid_hash_;

2
third_party/f8 vendored

@ -1 +1 @@
Subproject commit 7fb9c9083275fd35c2bb4456999673444dcfe986
Subproject commit f856de73d2a3087289495690e3ea9bd7b1aa79ef