From c835fbb13c371f856ece734f17cf87de07ee8a71 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Fri, 27 Oct 2023 17:51:35 +0800 Subject: [PATCH] 1 --- server/gameserver/creature.h | 2 ++ server/gameserver/mt/Map.h | 2 ++ server/tools/protobuild/cs_proto.proto | 1 + 3 files changed, 5 insertions(+) diff --git a/server/gameserver/creature.h b/server/gameserver/creature.h index 781bacba..c72ca59a 100644 --- a/server/gameserver/creature.h +++ b/server/gameserver/creature.h @@ -131,6 +131,8 @@ class Creature : public MoveableEntity a8::XTimerWp craze_mode_timer; a8::XTimerWp nature_recover_hp_idle_timer; + int side = 0; + Creature(); virtual ~Creature() override; virtual void Initialize() override; diff --git a/server/gameserver/mt/Map.h b/server/gameserver/mt/Map.h index 529a2065..2c6ef159 100644 --- a/server/gameserver/mt/Map.h +++ b/server/gameserver/mt/Map.h @@ -36,6 +36,8 @@ namespace mt std::vector> _world_objects; std::map>> _group_world_objects; MapCollider* collider_info = nullptr; + std::vector>> moba_born_points; + std::vector>> moba_path_points; std::string RandTemplate() const; int GetCarLimit(int car_id) const; diff --git a/server/tools/protobuild/cs_proto.proto b/server/tools/protobuild/cs_proto.proto index 11228499..f6963e34 100755 --- a/server/tools/protobuild/cs_proto.proto +++ b/server/tools/protobuild/cs_proto.proto @@ -1661,6 +1661,7 @@ message SMMapInfo optional int32 match_mode = 13; //比赛模式 0: pvp 1:排位赛(只有吃鸡模式下该字段才有意义) optional int32 pve_instance_id = 16; //pve副本id optional int32 mapid = 17; //地图id之后会删除,目前只给老版本用 + optional int32 side = 18; //moba模式出生点 0:无 1:左侧 2:右侧 } //帧事件